IsValorum commited on
Commit
edfbfe8
Β·
verified Β·
1 Parent(s): 086644f

docs: add warning clarifying APEX-I-MiniPlus (all versions) vs generic community APEX-I-Mini

Browse files
Files changed (1) hide show
  1. README.md +6 -54
README.md CHANGED
@@ -48,6 +48,12 @@ quantized_by: IsValorum
48
  > πŸ‘‰ To explore or download the **V2.1** edition of KAT-Coder-V2.5-Dev optimized for system RAM streaming, visit:
49
  > **[IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF](https://huggingface.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF)**
50
 
 
 
 
 
 
 
51
  ---
52
 
53
  ## <a id="quick-navigation"></a>⚑ Quick Navigation Index
@@ -146,57 +152,3 @@ When running with full GPU offload (`-ngl 99`), KAT-Coder's fine-grained MoE arc
146
  | **NVIDIA RTX 4080 / 5070 (16GB)** | Partial offload (approx. 30 layers) | **35 – 45+ tok/s** | **800 – 1,200+ tok/s** | High-efficiency local coding assistant |
147
  | **Consumer Laptop (4GB GPU + 32GB RAM)**| Hybrid Offload | **20 – 24+ tok/s** | **300 – 450+ tok/s** | Smooth streaming from system DDR4/DDR5 RAM |
148
 
149
- > [!NOTE]
150
- > ### πŸ”¬ Empirical Testbed Architecture & Desktop/Server Scaling
151
- > - **Empirical Benchmark Hardware:** The hybrid offload and system RAM streaming figures documented above were measured on a consumer laptop powered by an **Intel 12th Gen Alder Lake architecture featuring a hybrid design of Performance Cores (P-Cores) and Efficient Cores (E-Cores)** paired with dual-channel system RAM and constrained laptop power/thermal envelopes.
152
- > - **Thread Scheduling & E-Core Contention:** In hybrid architectures like Alder Lake, OS thread scheduling across background E-Cores and lower single-core mobile power limits introduce memory bandwidth and thread synchronization overhead during CPU dequantization.
153
- > - **Dramatic Scaling on Higher-End Processors:** When running on desktop or server processors (such as modern AMD Ryzen 7000 / 9000 Zen 4/5 series or high-TDP Intel desktop platforms with dedicated performance cores, large L3 caches, and high-bandwidth dual- or quad-channel DDR5 running at 6000+ MT/s), **streaming generation speeds and prefill throughput will scale dramatically higher**, substantially exceeding these measured mobile numbers.
154
-
155
- ---
156
-
157
- <a id="speed-vs-precision"></a>
158
- ## βš–οΈ The Speed vs. Precision Trade-off
159
-
160
- Why does KAT-Coder settle at 20–24 tok/s on DDR4 laptops while crude flat MoE quants reach 23–26 tok/s?
161
- - **The Dequantization Cost:** Non-linear `IQ` codebooks require table lookups during CPU dequantization, compared to single-cycle AVX2 instructions used by linear `Q_K` blocks.
162
- - **Why It Is Essential for KAT-Coder:** In a 256 micro-expert model, linear blocks cause router drift and degrade narrow experts. By trading approx. 2 tok/s on CPU memory, KAT-Coder retains **flawless syntax, intact indentation logic, and zero code hallucination**.
163
-
164
- ---
165
-
166
- <a id="tensor-map"></a>
167
- ## πŸ› οΈ Surgical Tensor Quantization Map
168
-
169
- | Tensor Pattern | Layer Scope | Quant Type | BPW | Engineering Rationale |
170
- | :--- | :--- | :--- | :--- | :--- |
171
- | **`output.weight`** | Vocabulary Head | **`Q6_K`** | 6.56 | Uncompromised 6-bit precision across 248k tokens for exact syntax & operators |
172
- | **`token_embd.weight`** | Embedding | **`High-Prec`** | High | Preserves semantic token embeddings without imatrix distortion |
173
- | **`ffn_gate_inp.weight`** | Expert Routers | **`F32`** | 32.0 | Uncompressed full-precision routers preventing micro-expert misrouting |
174
- | **`attn_gate.weight`** | Attention Gates | **`Q8_0`** | 8.50 | High-precision 8-bit gating for attention routing dynamics |
175
- | **`ffn_*_shexp`** | Shared Experts | **`IQ4_NL`** | 4.50 | 4-bit non-linear codebook for the 100% active shared foundational expert |
176
- | **`ffn_down/up/gate`** | Edges (0–9, 30–39) | **`IQ3_S`** | 3.44 | Armored boundary layers protecting prompt ingest and final code generation |
177
- | **`ffn_down/up/gate`** | Core (10–29) | **`IQ3_XXS`** | 3.06 | Deep compression (272 MiB β†’ 98 MiB per block) calibrated via code imatrix |
178
- | **`attn_qkv`, `attn_output`** | Attention Projections| **`IQ3_S` / `Q6_K`** | Multi | High-fidelity attention heads preventing contextual cross-talk |
179
- | **Norms & Biases** | All Layers | **`F32`** | 32.0 | Absolute numerical stability across deep 40-layer computation |
180
-
181
- ---
182
-
183
- <a id="recommended-setup"></a>
184
- ## πŸ“– Recommended Configuration & Setup
185
-
186
- ### Unsloth Studio:
187
- 1. Load **`KAT-Coder-V2.5-Dev.APEX-I-MiniPlus-V2.gguf`**.
188
- 2. Configure KV Cache Dtype to **`q8_0`** and Context Checkpoints to **`1`**.
189
- 3. Set GPU Offload to **100%** (`-ngl 99`) on 24GB GPUs, or allocate 30–34 layers on 16GB GPUs.
190
- 4. Expand context up to **128k – 256k** for full repository inspection.
191
-
192
- ### llama.cpp CLI:
193
- ```bash
194
- llama-cli -m KAT-Coder-V2.5-Dev.APEX-I-MiniPlus-V2.gguf \
195
- -ngl 99 \
196
- -c 32768
197
- ```
198
-
199
- ### LM Studio / Ollama:
200
- 1. Import the `.gguf` file into your local library.
201
- 2. Maximize GPU acceleration to offload all layers.
202
- 3. Configure template with Qwen 2.5 / 3.5 chat format.
 
48
  > πŸ‘‰ To explore or download the **V2.1** edition of KAT-Coder-V2.5-Dev optimized for system RAM streaming, visit:
49
  > **[IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF](https://huggingface.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF)**
50
 
51
+ > [!WARNING]
52
+ > ### ⚠️ DO NOT CONFUSE APEX-I-MINIPLUS WITH GENERIC COMMUNITY APEX-I-MINI!
53
+ > **Regardless of release version (whether V1, V2, or V2.1), NEVER confuse handcrafted APEX-I-MiniPlus builds with generic community APEX-I-Mini releases:**
54
+ > - **Generic Community APEX-I-Mini:** Uniformly compresses all core MoE experts down to aggressive 2-bit `IQ2_S` (dropping below the critical quality floor), leaves the sensitive token output head unarmored at 3-bit `Q3_K_M`, and compresses attention projections down to `Q3_K`. In deep reasoning models, this triggers severe perplexity spikes, syntax errors, and broken code brackets.
55
+ > - **Handcrafted APEX-I-MiniPlus (All Editions by IsValorum):** Every single MiniPlus releaseβ€”from V1 and V2 to V2.1β€”is a custom tensor-by-tensor architecture that preserves uncompressed `F32` router gates, armors the token output head in high-precision `Q6_K`, safeguards attention gates in `Q8_0`, and keeps core reasoning experts at or above calibrated 3-bit (`IQ3_XXS`/`IQ3_S`). Even our earlier builds vastly outperform generic community APEX recipes and flat 3-bit quants.
56
+
57
  ---
58
 
59
  ## <a id="quick-navigation"></a>⚑ Quick Navigation Index
 
152
  | **NVIDIA RTX 4080 / 5070 (16GB)** | Partial offload (approx. 30 layers) | **35 – 45+ tok/s** | **800 – 1,200+ tok/s** | High-efficiency local coding assistant |
153
  | **Consumer Laptop (4GB GPU + 32GB RAM)**| Hybrid Offload | **20 – 24+ tok/s** | **300 – 450+ tok/s** | Smooth streaming from system DDR4/DDR5 RAM |
154