IsValorum commited on
Commit
5ca4c3e
·
verified ·
1 Parent(s): 8790fef

Clarify external benchmark attribution

Browse files
Files changed (1) hide show
  1. README.md +196 -196
README.md CHANGED
@@ -1,196 +1,196 @@
1
- ---
2
- base_model: Kwaipilot/KAT-Coder-V2.5-Dev
3
- library_name: gguf
4
- tags:
5
- - gguf
6
- - apex
7
- - custom-quantization
8
- - unsloth-studio
9
- - moe
10
- - coding
11
- - agentic
12
- - code
13
- - llama.cpp
14
- - qwen35moe
15
- - quantized
16
- - quantization
17
- license: apache-2.0
18
- language:
19
- - en
20
- - zh
21
- - es
22
- - fr
23
- - de
24
- - pt
25
- - it
26
- - ru
27
- - ja
28
- - ko
29
- - vi
30
- - th
31
- - ar
32
- pipeline_tag: text-generation
33
- quantized_by: IsValorum
34
- ---
35
-
36
- > [!NOTE]
37
- > ### ARCHITECTURE SELECTION GUIDE — MINIPLUS V2 & V2.1 EDITIONS
38
- > This repository hosts the **MiniPlus V2** edition of **KAT-Coder-V2.5-Dev**. Our releases are precision-engineered for specific hardware budgets and memory topologies. **V2 is NOT obsolete or "worse"; each edition serves distinct inference requirements:**
39
- >
40
- > - **MiniPlus V2 (High Theoretical Layer Protection):** On paper, V2 provides extra protective envelopes on edge layers (10 layers in `IQ3_S` + `IQ4_NL` shared experts + `Q8_0` attention gates). However, **in practical inference benchmarks—even across extreme long-context windows exceeding +160K tokens—there is virtually NO perceptible difference in quality or reasoning compared to V2.1.**
41
- > - **MiniPlus V2.1 (System RAM Streaming Specialist with Deep Context):** Specially prepared to run **totally or partially in system RAM (DDR4/DDR5)** across large codebase contexts (up to 256k tokens). By replacing non-linear codebooks with linear `Q3_K` edge experts, keeping `Q8_0` attention gates, and upgrading shared foundation experts to `Q5_K` across all 40 layers, **it completely eliminates AVX2 CPU dequantization stalls (+24 to 28+ tok/s streaming)**. Depending on your processor and memory bandwidth (DDR4/DDR5), **streaming generation in system RAM can be almost as fast as having everything in VRAM**, while supporting deep context reserving GPU VRAM for the codebase KV cache while model weights stream from system RAM. It provides this massive RAM streaming acceleration for **only approx. 100 MB more**, which is completely negligible in system RAM.
42
- >
43
- > **Which one should you choose? (Official Recommendation: V2.1)**
44
- > - **⭐ PRIMARY RECOMMENDATION — [KAT-Coder-V2.5-Dev APEX-I-MiniPlus V2.1](https://huggingface.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF):** For virtually all users and deployments, **V2.1 is the strictly recommended release**. Empirically verified on WikiText-2, V2.1 achieves an outstanding **Perplexity of 5.5045 ± 0.1330** (ΔPPL ≈ +0.06 from unquantized baseline (approx. 5.44)), matching the token fidelity of **Q5_K / Q6_K** class quantizations while weighing only **approx. 14.7 GB** (same footprint as Q3_K_M). Furthermore, it completely eliminates AVX2 CPU stalls, providing blistering **+24 to 28+ tok/s streaming** under system RAM offload.
45
- > - **MiniPlus V2 Legacy:** Maintained for architectural transparency and users seeking specialized configurations for their workflow.
46
- >
47
- > *Both editions are handcrafted and vastly outperform flat 3-bit quants and generic community APEX-I-Mini releases.*
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
60
- - [Model Files & Technical Specifications](#model-specifications)
61
- - [Comparative Quantization Analysis (vs. Flat Quants & Generic APEX)](#comparative-analysis)
62
- - [Independent Benchmark of the APEX-I-MiniPlus Family (Occamy V2 Reference)](#independent-benchmark)
63
- - [Everyday Laptop Benchmarks (DDR4 / DDR5 RAM)](#laptop-benchmarks)
64
- - [The 24GB Miracle: Full 256K Context Runs In VRAM!](#context-scaling)
65
- - [Hardware Throughput & Offload Benchmarks (RTX 30 / 40 / 50)](#throughput-projections)
66
- - [Recommended Generation Parameters (Creator Official)](#generation-parameters)
67
- - [Model Inherent Behavior vs. Quantization Fidelity Notice](#quantization-fidelity)
68
- ---
69
-
70
- <a id="independent-benchmark"></a>
71
- ### 🏅 Independent Benchmark of the APEX-I-MiniPlus Family (Occamy V2 Reference)
72
-
73
-
74
- > [!NOTE]
75
- > The benchmark below was performed on **Occamy-1.0 APEX-I-MiniPlus V2**, not on this specific model. It is included as independent evidence of the broader MiniPlus quantization approach.
76
-
77
- The **APEX-I-MiniPlus** quantization architecture powering this model was subjected to an extensive independent evaluation by Japanese AI researcher and evaluator [zephel01 (CoolZero)](https://note.com/zephel01/n/n71d3d7e6b70c?hl=en) on an **NVIDIA RTX 5090 (32GB)** workstation running `llama.cpp` CUDA `b11027` with FlashAttention (`-fa on -ctk q8_0 -ctv q8_0 -ngl 99`).
78
-
79
- The evaluation tested the APEX-I hybrid MoE engine across **348 unseeded trials** on SWE-bench style multi-file Python bug-fixing tasks with hidden `pytest` suites (`llmbench`):
80
-
81
- - **L6 Multi-File Code Generation (60 tasks):**
82
- - **Context 32,768 (32K):** **93.3% Resolved** (46/60 tasks passed 5/5 consecutive trials; 20/20 on Easy–Hard).
83
- - **Context 65,536 (65K):** **90.0% Resolved** (45/60 tasks passed 5/5 consecutive trials).
84
- - **Match with 25–28 GB Models:** Matches or exceeds the resolution rate of full 25–28 GB models (such as `Ornith-1.5` and `Tiel-Coder` 35B-A3B) while consuming **over 10 GB less VRAM** (14.6 GB vs approx. 26 GB).
85
- - **Extreme Context VRAM Scaling (The Hybrid DeltaNet SSM Advantage):**
86
- - **32K Context:** **14.6 GB** total VRAM allocation.
87
- - **65K Context:** **15.1 GB** total VRAM allocation (only **+0.5 GB VRAM** added when doubling context!).
88
- - *Architectural Explanation:* Because 30 of the 40 layers utilize Linear Attention / DeltaNet SSM ($O(1)$ constant recurrence memory), only the 10 full-attention anchor layers expand the KV cache. This proves empirically that **65,536 context runs 100% in VRAM on consumer 16GB GPUs (RTX 4080 / RTX 5080)** without offloading to system RAM.
89
- - **Measured Real-World Throughput:** Sustained single-stream generation of **approx. 247 – 251 tok/s** on NVIDIA RTX 5090.
90
-
91
- ---
92
-
93
- <a id="model-specifications"></a>
94
- ## Model Files & Technical Specifications
95
-
96
- | File Name | File Size | Memory Footprint | BPW | Description |
97
- | :--- | :--- | :--- | :--- | :--- |
98
- | **`KAT-Coder-V2.5-Dev.APEX-I-MiniPlus-V2.gguf`** | **`14.64 GB` (`13.64 GiB`)** | `13.64 GiB` | **3.38 BPW** | Core agentic code synthesis, syntax verification, refactoring & logic |
99
-
100
- - **Base Architecture:** `Qwen3_5MoeForConditionalGeneration` (40 layers, 256 fine-grained micro-experts with intermediate dimension 512, 8 active per token).
101
- - **Active Parameters:** **approx. 3.2B active parameters per token** (delivering small-model throughput with 35B-scale reasoning).
102
- - **Quantization Profile:** Armored boundary layers (`IQ3_S` / `IQ4_NL`), deep core expert compression (`IQ3_XXS` + `imatrix`), uncompressed router gates (`F32`), and high-precision syntax output head (`Q6_K`).
103
- - **Memory Footprint:** Ultracompact 13.64 GiB footprint engineered specifically to avoid Out-Of-Memory (OOM) crashes on 16GB and 24GB VRAM hardware.
104
-
105
- ---
106
-
107
- <a id="comparative-analysis"></a>
108
- ## Comparative Quantization Analysis (vs. Flat Quants & Generic APEX)
109
-
110
- Also, don't confuse **APEX-I-MiniPlus-V2** with a generic baseline APEX-I-Mini. Traditional APEX-I-Mini drops core experts aggressively to 2-bit `IQ2_S` and leaves `output.weight` at 3-bit `Q3_K_M`, which creates a noticeable perplexity hit on complex reasoning tasks. V2 was specifically re-engineered to avoid that quality floor (keeping core experts at calibrated `IQ3_XXS`, output in `Q6_K`, shared expert in non-linear `IQ4_NL`, and routers in `F32`).
111
-
112
- To put the numbers in perspective: this cuts nearly **2 GB off a flat 3-bit quant** (approx. 15.6 GB), and weighs only about **approx. 1 GB more than a generic APEX-I-Mini** (approx. 12.5 GB). For that single extra gigabyte of VRAM, you get a massive jump in reasoning and syntactic stability.
113
-
114
- Take a look at the tensor-by-tensor comparison table below to inspect the exact architectural differences and see why this specific allocation is optimal. That's specifically what this was built for:
115
-
116
- | Architectural Component | Generic Automated Quants (Flat `Q3_K_S` / `IQ3_S`) | Generic APEX-I-Mini (Baseline Recipe) | Our Handcrafted APEX-I-MiniPlus-V2 (IsValorum) | Perceived Quality & Real-World Impact |
117
- | :--- | :--- | :--- | :--- | :--- |
118
- | **Output Head (`output.weight`)** | Flat **`IQ3_S` / `Q3_K_S`** (approx. 3.44 BPW) | Inherits base type **`Q3_K_M`** (approx. 3.44 BPW unarmored) | **`Q6_K`** (approx. 6.56 BPW uncompromised) | **Eliminates Syntax & Vocabulary Hallucinations:** Low-bit output heads cause tokenizer classification noise, breaking code indentation, brackets (`{}`, `[]`), math symbols, and domain terms. `Q6_K` preserves near-FP16 output classification. |
119
- | **Expert Routers (`ffn_gate_inp.weight`)** | Blindly quantized to 3-bit / unoptimized | Inherits base type **`Q3_K_M`** (approx. 3.44 BPW compressed) | **`F32` uncompressed** (32.0 BPW, 2 MB/layer) | **Zero Router Drift:** In micro-expert models, even minuscule quantization errors in router logits misdirect tokens to wrong experts. Retaining uncompressed `F32` guarantees 100% routing fidelity with virtually zero memory overhead (approx. 80 MB total). |
120
- | **Attention & Language (`attn_output`, `attn_qkv`)** | Flat **`IQ3_S` / `Q3_K_S`** | **`Q3_K`** on 34 middle layers (L3–36), **`Q4_K`** on 6 edge layers | **`Q6_K` for `attn_output`**, **`IQ3_S` for `attn_qkv`** | **Contextual Retrieval Precision:** Generic APEX reduces attention and language projections to `Q3_K` across 85% of layers. Our V2 build protects attention output in high-precision `Q6_K` and uses calibrated non-linear `IQ3_S`, ensuring flawless needle-in-a-haystack retrieval across deep 128k–256k context windows. |
121
- | **Attention Gates (`attn_gate.weight`)** | Blindly compressed to 3-bit | Compressed to **`Q3_K`** (middle) / **`Q4_K`** (edges) | **`Q8_0`** (8.50 BPW) | **Attention Head Stability:** Attention gates modulate query-key routing across hybrid attention layers. Keeping them in 8-bit prevents attention crosstalk and hallucination over long contexts. |
122
- | **Shared Foundation Expert (`ffn_*_shexp`)** | Flat **`IQ3_S` / `Q3_K_S`** (3.44 BPW) | Linear **`Q4_K`** (middle) / **`Q5_K`** (edges) | **`IQ4_NL`** (4.50 BPW non-linear codebook) | **Foundational Knowledge Armor:** The shared expert executes for 100% of tokens. In 256 micro-expert models, `IQ4_NL` non-linear codebooks preserve heavy-tailed outlier representations far better than standard linear quantization. |
123
- | **Core MoE Layers (Middle: 10–29)** | Flat **`IQ3_S` / `Q3_K_S`** (uniform bit-rate across all layers) | Aggressive **`IQ2_S` (2.50 BPW)** | **`IQ3_XXS` (3.06 BPW) + calibrated `imatrix`** | **Above the Quality Threshold:** Generic 2-bit `IQ2_S` baselines drop below the critical quality floor for 35B MoEs, resulting in perplexity spikes on reasoning tasks. Our `IQ3_XXS` with imatrix achieves deep compression (272 MiB → 98 MiB per block) without sacrificing logic. |
124
- | **Edge MoE Layers (Layers 0–9 & 30–39)** | Flat **`IQ3_S` / `Q3_K_S`** (no layer-wise gradient) | `Q3_K` (limited to first/last 5 layers only: L0–4, L35–39) | **`IQ3_S` (expanded to 10 input & 10 output layers)** | **Protected Ingestion & Synthesis:** Half of the model's layers (10 at input, 10 at output) form a non-linear armored envelope, preventing prompt misunderstanding and token degeneration across 256 micro-experts. |
125
- | **Normalization & Biases** | Often degraded | Standard | **`F32` uncompressed** | **Numerical Stability:** Prevents cumulative floating-point underflow/overflow across deep 40-layer computation. |
126
-
127
- ---
128
-
129
- <a id="laptop-benchmarks"></a>
130
- ## Everyday Laptop Benchmarks (DDR4 / DDR5 RAM)
131
- ### *Estimated Projections on Consumer Hardware*
132
-
133
- You do not need an expensive workstation to run a cutting-edge 35B Mixture-of-Experts coding model. Estimated throughput projections on a standard consumer laptop (Intel Core i5 / AMD Ryzen, 4GB/6GB Laptop GPU, 32GB DDR4/DDR5 RAM):
134
-
135
- - **GPU VRAM Allocation:** Uses only **approx. 3.8 GB VRAM** (fits effortlessly on budget 4GB/6GB laptop GPUs such as RTX 3050, 4050, or 2060).
136
- - **System Memory Offload:** Standard 32GB system RAM accommodates the remaining layers.
137
- - **Estimated Document / Code Ingestion (Prefill):** **300 to 450+ tokens/second** sustained across long prompt files.
138
- - **Estimated Streaming Generation:** **20 to 24+ tokens/second** sustained output across system RAM!
139
-
140
- > [!TIP]
141
- > **Pro Tip for Consumer Laptop Users:**
142
- > Because the bulk of the model runs from system memory in partial offload mode, standard autoregressive generation streams seamlessly at **20 to 24+ tokens/second** across everyday DDR4/DDR5 memory buses, perfectly sufficient for real-time IDE pair programming!
143
-
144
- ---
145
-
146
- <a id="context-scaling"></a>
147
- ## The 24GB Miracle: Full 256K Context Runs In VRAM!
148
-
149
- For developers running 24GB GPUs (RTX 3090, RTX 4090, or professional workstations), standard community 3-bit or 4-bit quants weigh 15.8 to 19.5 GiB in weights alone. When combined with KV cache and compute buffers for large codebases, they trigger immediate CUDA Out-Of-Memory crashes.
150
-
151
- **KAT-Coder APEX-I-MiniPlus-V2 fits massive contexts entirely within 24GB VRAM:**
152
-
153
- | Context Length | Model Weights (Est.) | KV Cache (q8_0, 4 slots) | Compute Buffers | **Total GPU VRAM (Est.)** | Hardware Feasibility |
154
- | :--- | :--- | :--- | :--- | :--- | :--- |
155
- | **32,768 (32k)** | `13.64 GiB` | `0.58 GiB` | `1.80 GiB` | **`16.02 GiB`** | Full offload on 24GB; partial on 16GB |
156
- | **65,536 (64k)** | `13.64 GiB` | `0.92 GiB` | `1.95 GiB` | **`16.51 GiB`** | Effortless fit on 24GB GPUs |
157
- | **131,072 (128k)**| `13.64 GiB` | `1.58 GiB` | `2.22 GiB` | **`17.44 GiB`** | Effortless fit on 24GB GPUs |
158
- | **262,144 (256k)**| `13.64 GiB` | `2.92 GiB` | `2.80 GiB` | **`19.36 GiB`** | **FULL 256K CODE REPO IN VRAM!** |
159
-
160
- *Note: Projections estimate approx. 4.64 GiB of headroom remaining on 24GB cards for system display buffers and tooling.*
161
-
162
- ---
163
-
164
- <a id="throughput-projections"></a>
165
- ## Hardware Throughput Projections (RTX 30 / 40 / 50)
166
-
167
- When running with full GPU offload (`-ngl 99`), KAT-Coder's fine-grained MoE architecture (approx. 3.2B active parameters) unlocks extraordinary generation throughput:
168
-
169
- | Hardware Target | Offload Mode | Generation Speed (Est.) | Prompt Prefill Speed (Est.) | Engineering Highlights |
170
- | :--- | :--- | :---: | :---: | :--- |
171
- | **NVIDIA RTX 5080 / 5090 (Blackwell)** | Full GPU (`-ngl 99`) | **approx. 247 – 251 tok/s** | **2,800 – 3,900+ tok/s** | Empirically verified on RTX 5090 by zephel01 (Occamy V2 Reference) |
172
- | **NVIDIA RTX 4090 (24GB GDDR6X)** | Full GPU (`-ngl 99`) | **80 – 105+ tok/s** | **1,800 – 2,600+ tok/s** | Near-instantaneous code completion & refactoring |
173
- | **NVIDIA RTX 3090 (24GB GDDR6)** | Full GPU (`-ngl 99`) | **65 – 80+ tok/s** | **1,400 – 2,000+ tok/s** | Full 256k repository context in dedicated VRAM |
174
- | **NVIDIA RTX 4080 / 5070 (16GB)** | Partial offload (approx. 30 layers) | **35 – 45+ tok/s** | **800 – 1,200+ tok/s** | High-efficiency local coding assistant |
175
- | **Consumer Laptop (4GB GPU + 32GB RAM)**| Hybrid Offload | **20 – 24+ tok/s** | **300 – 450+ tok/s** | Smooth streaming from system DDR4/DDR5 RAM |
176
-
177
- <a id="generation-parameters"></a>
178
- ### ⚙️ Recommended Generation Parameters (Kwaipilot Official)
179
-
180
- Official sampling hyperparameters specified by [Kwaipilot](https://huggingface.co/Kwaipilot/KAT-Coder-V2.5-Dev) across benchmark evaluation tracks:
181
-
182
- | Evaluation Track / Workload | Temperature | Top-P | Top-K | Presence Penalty | Max Tokens | Thinking Mode |
183
- | :--- | :---: | :---: | :---: | :---: | :---: | :---: |
184
- | **SWE-bench & Agent Coding (Official)** | `1.00` | `0.95` | `20` | `1.50` | `81,920` | `enable_thinking: true` |
185
- | **Terminal-Bench & Direct Code Execution** | `0.70` | `1.00` | `20` | `1.50` | `32,768` | `enable_thinking: false` |
186
- | **PinchBench & SciCode Scientific Logic** | `0.60 – 0.70` | `1.00` | `20` | `1.50` | `32,768` | `preserve_thinking: true` |
187
-
188
- > [!IMPORTANT]
189
- > <a id="quantization-fidelity"></a>
190
- > ### 🔍 Model Inherent Behavior vs. Quantization Fidelity Notice
191
- > Any behavioral nuances, stylistic tendencies, domain-specific habits, or zero-shot edge-case oversights **stem entirely from the original unquantized checkpoint weights and fine-tuning distribution, NOT from the APEX-I quantization process.**
192
- > Handcrafted APEX-I-MiniPlus strictly preserves mathematical tensor fidelity—keeping 100% of expert routing matrices (`gate_inp`) in uncompressed `F32` (zero router drift), armoring the token output head in `Q6_K`, and safeguarding attention gates in `Q8_0`. Empirical verification confirms near-zero perplexity loss (ΔPPL ≈ +0.06), ensuring that token logits, routing decisions, and reasoning trajectories are mathematically faithful to the original base model.
193
-
194
- > [!TIP]
195
- > ### 💡 Developer Tip for Autonomous Coding & CI Agents (Import Discipline)
196
- > In independent evaluations of the APEX-I-MiniPlus architecture (Occamy V2 reference), reasoning and code generation scored a remarkable 90%–93.3% resolution rate on multi-file SWE benchmarks. When deploying autonomous coding agents in production, best practices include specifying in your system prompt: *"Always declare complete, explicit import statements at the beginning of the file"* or pairing with an automated linter (`ruff`) to guarantee clean, zero-shot execution.
 
1
+ ---
2
+ base_model: Kwaipilot/KAT-Coder-V2.5-Dev
3
+ library_name: gguf
4
+ tags:
5
+ - gguf
6
+ - apex
7
+ - custom-quantization
8
+ - unsloth-studio
9
+ - moe
10
+ - coding
11
+ - agentic
12
+ - code
13
+ - llama.cpp
14
+ - qwen35moe
15
+ - quantized
16
+ - quantization
17
+ license: apache-2.0
18
+ language:
19
+ - en
20
+ - zh
21
+ - es
22
+ - fr
23
+ - de
24
+ - pt
25
+ - it
26
+ - ru
27
+ - ja
28
+ - ko
29
+ - vi
30
+ - th
31
+ - ar
32
+ pipeline_tag: text-generation
33
+ quantized_by: IsValorum
34
+ ---
35
+
36
+ > [!NOTE]
37
+ > ### ARCHITECTURE SELECTION GUIDE — MINIPLUS V2 & V2.1 EDITIONS
38
+ > This repository hosts the **MiniPlus V2** edition of **KAT-Coder-V2.5-Dev**. Our releases are precision-engineered for specific hardware budgets and memory topologies. **V2 is NOT obsolete or "worse"; each edition serves distinct inference requirements:**
39
+ >
40
+ > - **MiniPlus V2 (High Theoretical Layer Protection):** On paper, V2 provides extra protective envelopes on edge layers (10 layers in `IQ3_S` + `IQ4_NL` shared experts + `Q8_0` attention gates). However, **in practical inference benchmarks—even across extreme long-context windows exceeding +160K tokens—there is virtually NO perceptible difference in quality or reasoning compared to V2.1.**
41
+ > - **MiniPlus V2.1 (System RAM Streaming Specialist with Deep Context):** Specially prepared to run **totally or partially in system RAM (DDR4/DDR5)** across large codebase contexts (up to 256k tokens). By replacing non-linear codebooks with linear `Q3_K` edge experts, keeping `Q8_0` attention gates, and upgrading shared foundation experts to `Q5_K` across all 40 layers, **it completely eliminates AVX2 CPU dequantization stalls (+24 to 28+ tok/s streaming)**. Depending on your processor and memory bandwidth (DDR4/DDR5), **streaming generation in system RAM can be almost as fast as having everything in VRAM**, while supporting deep context reserving GPU VRAM for the codebase KV cache while model weights stream from system RAM. It provides this massive RAM streaming acceleration for **only approx. 100 MB more**, which is completely negligible in system RAM.
42
+ >
43
+ > **Which one should you choose? (Official Recommendation: V2.1)**
44
+ > - **⭐ PRIMARY RECOMMENDATION — [KAT-Coder-V2.5-Dev APEX-I-MiniPlus V2.1](https://huggingface.co/IsValorum/KAT-Coder-V2.5-Dev-APEX-I-MiniPlus-V2.1-GGUF):** For virtually all users and deployments, **V2.1 is the strictly recommended release**. Empirically verified on WikiText-2, V2.1 achieves an outstanding **Perplexity of 5.5045 ± 0.1330** (ΔPPL ≈ +0.06 from unquantized baseline (approx. 5.44)), matching the token fidelity of **Q5_K / Q6_K** class quantizations while weighing only **approx. 14.7 GB** (same footprint as Q3_K_M). Furthermore, it completely eliminates AVX2 CPU stalls, providing blistering **+24 to 28+ tok/s streaming** under system RAM offload.
45
+ > - **MiniPlus V2 Legacy:** Maintained for architectural transparency and users seeking specialized configurations for their workflow.
46
+ >
47
+ > *Both editions are handcrafted and vastly outperform flat 3-bit quants and generic community APEX-I-Mini releases.*
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
60
+ - [Model Files & Technical Specifications](#model-specifications)
61
+ - [Comparative Quantization Analysis (vs. Flat Quants & Generic APEX)](#comparative-analysis)
62
+ - [Independent Benchmark of the APEX-I-MiniPlus Family (Occamy V2 Reference)](#independent-benchmark)
63
+ - [Everyday Laptop Benchmarks (DDR4 / DDR5 RAM)](#laptop-benchmarks)
64
+ - [The 24GB Miracle: Full 256K Context Runs In VRAM!](#context-scaling)
65
+ - [Hardware Throughput & Offload Benchmarks (RTX 30 / 40 / 50)](#throughput-projections)
66
+ - [Recommended Generation Parameters (Creator Official)](#generation-parameters)
67
+ - [Model Inherent Behavior vs. Quantization Fidelity Notice](#quantization-fidelity)
68
+ ---
69
+
70
+ <a id="independent-benchmark"></a>
71
+ ### 🏅 Independent Benchmark of the APEX-I-MiniPlus Family (Occamy V2 Reference)
72
+
73
+
74
+ > [!NOTE]
75
+ > **External report:** [zephel01 independently benchmarked Occamy V2](https://note.com/zephel01/n/n71d3d7e6b70c?hl=en). The benchmark below was performed on **Occamy-1.0 APEX-I-MiniPlus V2**, not on this specific model. It is included as independent evidence of the broader MiniPlus quantization approach.
76
+
77
+ The **APEX-I-MiniPlus** quantization architecture powering this model was subjected to an extensive independent evaluation by Japanese AI researcher and evaluator [zephel01 (CoolZero)](https://note.com/zephel01/n/n71d3d7e6b70c?hl=en) on an **NVIDIA RTX 5090 (32GB)** workstation running `llama.cpp` CUDA `b11027` with FlashAttention (`-fa on -ctk q8_0 -ctv q8_0 -ngl 99`).
78
+
79
+ The evaluation tested the APEX-I hybrid MoE engine across **348 unseeded trials** on SWE-bench style multi-file Python bug-fixing tasks with hidden `pytest` suites (`llmbench`):
80
+
81
+ - **L6 Multi-File Code Generation (60 tasks):**
82
+ - **Context 32,768 (32K):** **93.3% Resolved** (46/60 tasks passed 5/5 consecutive trials; 20/20 on Easy–Hard).
83
+ - **Context 65,536 (65K):** **90.0% Resolved** (45/60 tasks passed 5/5 consecutive trials).
84
+ - **Match with 25–28 GB Models:** Matches or exceeds the resolution rate of full 25–28 GB models (such as `Ornith-1.5` and `Tiel-Coder` 35B-A3B) while consuming **over 10 GB less VRAM** (14.6 GB vs approx. 26 GB).
85
+ - **Extreme Context VRAM Scaling (The Hybrid DeltaNet SSM Advantage):**
86
+ - **32K Context:** **14.6 GB** total VRAM allocation.
87
+ - **65K Context:** **15.1 GB** total VRAM allocation (only **+0.5 GB VRAM** added when doubling context!).
88
+ - *Architectural Explanation:* Because 30 of the 40 layers utilize Linear Attention / DeltaNet SSM ($O(1)$ constant recurrence memory), only the 10 full-attention anchor layers expand the KV cache. This proves empirically that **65,536 context runs 100% in VRAM on consumer 16GB GPUs (RTX 4080 / RTX 5080)** without offloading to system RAM.
89
+ - **Measured Real-World Throughput:** Sustained single-stream generation of **approx. 247 – 251 tok/s** on NVIDIA RTX 5090.
90
+
91
+ ---
92
+
93
+ <a id="model-specifications"></a>
94
+ ## Model Files & Technical Specifications
95
+
96
+ | File Name | File Size | Memory Footprint | BPW | Description |
97
+ | :--- | :--- | :--- | :--- | :--- |
98
+ | **`KAT-Coder-V2.5-Dev.APEX-I-MiniPlus-V2.gguf`** | **`14.64 GB` (`13.64 GiB`)** | `13.64 GiB` | **3.38 BPW** | Core agentic code synthesis, syntax verification, refactoring & logic |
99
+
100
+ - **Base Architecture:** `Qwen3_5MoeForConditionalGeneration` (40 layers, 256 fine-grained micro-experts with intermediate dimension 512, 8 active per token).
101
+ - **Active Parameters:** **approx. 3.2B active parameters per token** (delivering small-model throughput with 35B-scale reasoning).
102
+ - **Quantization Profile:** Armored boundary layers (`IQ3_S` / `IQ4_NL`), deep core expert compression (`IQ3_XXS` + `imatrix`), uncompressed router gates (`F32`), and high-precision syntax output head (`Q6_K`).
103
+ - **Memory Footprint:** Ultracompact 13.64 GiB footprint engineered specifically to avoid Out-Of-Memory (OOM) crashes on 16GB and 24GB VRAM hardware.
104
+
105
+ ---
106
+
107
+ <a id="comparative-analysis"></a>
108
+ ## Comparative Quantization Analysis (vs. Flat Quants & Generic APEX)
109
+
110
+ Also, don't confuse **APEX-I-MiniPlus-V2** with a generic baseline APEX-I-Mini. Traditional APEX-I-Mini drops core experts aggressively to 2-bit `IQ2_S` and leaves `output.weight` at 3-bit `Q3_K_M`, which creates a noticeable perplexity hit on complex reasoning tasks. V2 was specifically re-engineered to avoid that quality floor (keeping core experts at calibrated `IQ3_XXS`, output in `Q6_K`, shared expert in non-linear `IQ4_NL`, and routers in `F32`).
111
+
112
+ To put the numbers in perspective: this cuts nearly **2 GB off a flat 3-bit quant** (approx. 15.6 GB), and weighs only about **approx. 1 GB more than a generic APEX-I-Mini** (approx. 12.5 GB). For that single extra gigabyte of VRAM, you get a massive jump in reasoning and syntactic stability.
113
+
114
+ Take a look at the tensor-by-tensor comparison table below to inspect the exact architectural differences and see why this specific allocation is optimal. That's specifically what this was built for:
115
+
116
+ | Architectural Component | Generic Automated Quants (Flat `Q3_K_S` / `IQ3_S`) | Generic APEX-I-Mini (Baseline Recipe) | Our Handcrafted APEX-I-MiniPlus-V2 (IsValorum) | Perceived Quality & Real-World Impact |
117
+ | :--- | :--- | :--- | :--- | :--- |
118
+ | **Output Head (`output.weight`)** | Flat **`IQ3_S` / `Q3_K_S`** (approx. 3.44 BPW) | Inherits base type **`Q3_K_M`** (approx. 3.44 BPW unarmored) | **`Q6_K`** (approx. 6.56 BPW uncompromised) | **Eliminates Syntax & Vocabulary Hallucinations:** Low-bit output heads cause tokenizer classification noise, breaking code indentation, brackets (`{}`, `[]`), math symbols, and domain terms. `Q6_K` preserves near-FP16 output classification. |
119
+ | **Expert Routers (`ffn_gate_inp.weight`)** | Blindly quantized to 3-bit / unoptimized | Inherits base type **`Q3_K_M`** (approx. 3.44 BPW compressed) | **`F32` uncompressed** (32.0 BPW, 2 MB/layer) | **Zero Router Drift:** In micro-expert models, even minuscule quantization errors in router logits misdirect tokens to wrong experts. Retaining uncompressed `F32` guarantees 100% routing fidelity with virtually zero memory overhead (approx. 80 MB total). |
120
+ | **Attention & Language (`attn_output`, `attn_qkv`)** | Flat **`IQ3_S` / `Q3_K_S`** | **`Q3_K`** on 34 middle layers (L3–36), **`Q4_K`** on 6 edge layers | **`Q6_K` for `attn_output`**, **`IQ3_S` for `attn_qkv`** | **Contextual Retrieval Precision:** Generic APEX reduces attention and language projections to `Q3_K` across 85% of layers. Our V2 build protects attention output in high-precision `Q6_K` and uses calibrated non-linear `IQ3_S`, ensuring flawless needle-in-a-haystack retrieval across deep 128k–256k context windows. |
121
+ | **Attention Gates (`attn_gate.weight`)** | Blindly compressed to 3-bit | Compressed to **`Q3_K`** (middle) / **`Q4_K`** (edges) | **`Q8_0`** (8.50 BPW) | **Attention Head Stability:** Attention gates modulate query-key routing across hybrid attention layers. Keeping them in 8-bit prevents attention crosstalk and hallucination over long contexts. |
122
+ | **Shared Foundation Expert (`ffn_*_shexp`)** | Flat **`IQ3_S` / `Q3_K_S`** (3.44 BPW) | Linear **`Q4_K`** (middle) / **`Q5_K`** (edges) | **`IQ4_NL`** (4.50 BPW non-linear codebook) | **Foundational Knowledge Armor:** The shared expert executes for 100% of tokens. In 256 micro-expert models, `IQ4_NL` non-linear codebooks preserve heavy-tailed outlier representations far better than standard linear quantization. |
123
+ | **Core MoE Layers (Middle: 10–29)** | Flat **`IQ3_S` / `Q3_K_S`** (uniform bit-rate across all layers) | Aggressive **`IQ2_S` (2.50 BPW)** | **`IQ3_XXS` (3.06 BPW) + calibrated `imatrix`** | **Above the Quality Threshold:** Generic 2-bit `IQ2_S` baselines drop below the critical quality floor for 35B MoEs, resulting in perplexity spikes on reasoning tasks. Our `IQ3_XXS` with imatrix achieves deep compression (272 MiB → 98 MiB per block) without sacrificing logic. |
124
+ | **Edge MoE Layers (Layers 0–9 & 30–39)** | Flat **`IQ3_S` / `Q3_K_S`** (no layer-wise gradient) | `Q3_K` (limited to first/last 5 layers only: L0–4, L35–39) | **`IQ3_S` (expanded to 10 input & 10 output layers)** | **Protected Ingestion & Synthesis:** Half of the model's layers (10 at input, 10 at output) form a non-linear armored envelope, preventing prompt misunderstanding and token degeneration across 256 micro-experts. |
125
+ | **Normalization & Biases** | Often degraded | Standard | **`F32` uncompressed** | **Numerical Stability:** Prevents cumulative floating-point underflow/overflow across deep 40-layer computation. |
126
+
127
+ ---
128
+
129
+ <a id="laptop-benchmarks"></a>
130
+ ## Everyday Laptop Benchmarks (DDR4 / DDR5 RAM)
131
+ ### *Estimated Projections on Consumer Hardware*
132
+
133
+ You do not need an expensive workstation to run a cutting-edge 35B Mixture-of-Experts coding model. Estimated throughput projections on a standard consumer laptop (Intel Core i5 / AMD Ryzen, 4GB/6GB Laptop GPU, 32GB DDR4/DDR5 RAM):
134
+
135
+ - **GPU VRAM Allocation:** Uses only **approx. 3.8 GB VRAM** (fits effortlessly on budget 4GB/6GB laptop GPUs such as RTX 3050, 4050, or 2060).
136
+ - **System Memory Offload:** Standard 32GB system RAM accommodates the remaining layers.
137
+ - **Estimated Document / Code Ingestion (Prefill):** **300 to 450+ tokens/second** sustained across long prompt files.
138
+ - **Estimated Streaming Generation:** **20 to 24+ tokens/second** sustained output across system RAM!
139
+
140
+ > [!TIP]
141
+ > **Pro Tip for Consumer Laptop Users:**
142
+ > Because the bulk of the model runs from system memory in partial offload mode, standard autoregressive generation streams seamlessly at **20 to 24+ tokens/second** across everyday DDR4/DDR5 memory buses, perfectly sufficient for real-time IDE pair programming!
143
+
144
+ ---
145
+
146
+ <a id="context-scaling"></a>
147
+ ## The 24GB Miracle: Full 256K Context Runs In VRAM!
148
+
149
+ For developers running 24GB GPUs (RTX 3090, RTX 4090, or professional workstations), standard community 3-bit or 4-bit quants weigh 15.8 to 19.5 GiB in weights alone. When combined with KV cache and compute buffers for large codebases, they trigger immediate CUDA Out-Of-Memory crashes.
150
+
151
+ **KAT-Coder APEX-I-MiniPlus-V2 fits massive contexts entirely within 24GB VRAM:**
152
+
153
+ | Context Length | Model Weights (Est.) | KV Cache (q8_0, 4 slots) | Compute Buffers | **Total GPU VRAM (Est.)** | Hardware Feasibility |
154
+ | :--- | :--- | :--- | :--- | :--- | :--- |
155
+ | **32,768 (32k)** | `13.64 GiB` | `0.58 GiB` | `1.80 GiB` | **`16.02 GiB`** | Full offload on 24GB; partial on 16GB |
156
+ | **65,536 (64k)** | `13.64 GiB` | `0.92 GiB` | `1.95 GiB` | **`16.51 GiB`** | Effortless fit on 24GB GPUs |
157
+ | **131,072 (128k)**| `13.64 GiB` | `1.58 GiB` | `2.22 GiB` | **`17.44 GiB`** | Effortless fit on 24GB GPUs |
158
+ | **262,144 (256k)**| `13.64 GiB` | `2.92 GiB` | `2.80 GiB` | **`19.36 GiB`** | **FULL 256K CODE REPO IN VRAM!** |
159
+
160
+ *Note: Projections estimate approx. 4.64 GiB of headroom remaining on 24GB cards for system display buffers and tooling.*
161
+
162
+ ---
163
+
164
+ <a id="throughput-projections"></a>
165
+ ## Hardware Throughput Projections (RTX 30 / 40 / 50)
166
+
167
+ When running with full GPU offload (`-ngl 99`), KAT-Coder's fine-grained MoE architecture (approx. 3.2B active parameters) unlocks extraordinary generation throughput:
168
+
169
+ | Hardware Target | Offload Mode | Generation Speed (Est.) | Prompt Prefill Speed (Est.) | Engineering Highlights |
170
+ | :--- | :--- | :---: | :---: | :--- |
171
+ | **NVIDIA RTX 5080 / 5090 (Blackwell)** | Full GPU (`-ngl 99`) | **approx. 247 – 251 tok/s** | **2,800 – 3,900+ tok/s** | Empirically verified on RTX 5090 by zephel01 (Occamy V2 Reference) |
172
+ | **NVIDIA RTX 4090 (24GB GDDR6X)** | Full GPU (`-ngl 99`) | **80 – 105+ tok/s** | **1,800 – 2,600+ tok/s** | Near-instantaneous code completion & refactoring |
173
+ | **NVIDIA RTX 3090 (24GB GDDR6)** | Full GPU (`-ngl 99`) | **65 – 80+ tok/s** | **1,400 – 2,000+ tok/s** | Full 256k repository context in dedicated VRAM |
174
+ | **NVIDIA RTX 4080 / 5070 (16GB)** | Partial offload (approx. 30 layers) | **35 – 45+ tok/s** | **800 – 1,200+ tok/s** | High-efficiency local coding assistant |
175
+ | **Consumer Laptop (4GB GPU + 32GB RAM)**| Hybrid Offload | **20 – 24+ tok/s** | **300 – 450+ tok/s** | Smooth streaming from system DDR4/DDR5 RAM |
176
+
177
+ <a id="generation-parameters"></a>
178
+ ### ⚙️ Recommended Generation Parameters (Kwaipilot Official)
179
+
180
+ Official sampling hyperparameters specified by [Kwaipilot](https://huggingface.co/Kwaipilot/KAT-Coder-V2.5-Dev) across benchmark evaluation tracks:
181
+
182
+ | Evaluation Track / Workload | Temperature | Top-P | Top-K | Presence Penalty | Max Tokens | Thinking Mode |
183
+ | :--- | :---: | :---: | :---: | :---: | :---: | :---: |
184
+ | **SWE-bench & Agent Coding (Official)** | `1.00` | `0.95` | `20` | `1.50` | `81,920` | `enable_thinking: true` |
185
+ | **Terminal-Bench & Direct Code Execution** | `0.70` | `1.00` | `20` | `1.50` | `32,768` | `enable_thinking: false` |
186
+ | **PinchBench & SciCode Scientific Logic** | `0.60 – 0.70` | `1.00` | `20` | `1.50` | `32,768` | `preserve_thinking: true` |
187
+
188
+ > [!IMPORTANT]
189
+ > <a id="quantization-fidelity"></a>
190
+ > ### 🔍 Model Inherent Behavior vs. Quantization Fidelity Notice
191
+ > Any behavioral nuances, stylistic tendencies, domain-specific habits, or zero-shot edge-case oversights **stem entirely from the original unquantized checkpoint weights and fine-tuning distribution, NOT from the APEX-I quantization process.**
192
+ > Handcrafted APEX-I-MiniPlus strictly preserves mathematical tensor fidelity—keeping 100% of expert routing matrices (`gate_inp`) in uncompressed `F32` (zero router drift), armoring the token output head in `Q6_K`, and safeguarding attention gates in `Q8_0`. Empirical verification confirms near-zero perplexity loss (ΔPPL ≈ +0.06), ensuring that token logits, routing decisions, and reasoning trajectories are mathematically faithful to the original base model.
193
+
194
+ > [!TIP]
195
+ > ### 💡 Developer Tip for Autonomous Coding & CI Agents (Import Discipline)
196
+ > In independent evaluations of the APEX-I-MiniPlus architecture (Occamy V2 reference), reasoning and code generation scored a remarkable 90%–93.3% resolution rate on multi-file SWE benchmarks. When deploying autonomous coding agents in production, best practices include specifying in your system prompt: *"Always declare complete, explicit import statements at the beginning of the file"* or pairing with an automated linter (`ruff`) to guarantee clean, zero-shot execution.