IsValorum commited on
Commit
17a98fa
Β·
verified Β·
1 Parent(s): 7ccc2fb

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +6 -6
README.md CHANGED
@@ -33,7 +33,7 @@ Most existing community quantizations are generated by automated bots that apply
33
 
34
  ## <a id="quick-navigation"></a>⚑ Quick Navigation Index
35
  - [πŸ“¦ Model Files & Specifications](#model-specifications)
36
- - [πŸ”¬ Comparative Quantization Analysis (vs. Flat Quants & Mudler APEX)](#comparative-analysis)
37
  - [πŸ‘οΈ Bundled Q8_0 High-Precision Vision Projector](#vision-projector)
38
  - [πŸ’» Everyday Laptop Benchmarks (23–26+ tok/s on DDR4)](#laptop-benchmarks)
39
  - [πŸ”₯ The 24GB Miracle: Full 256K Context Runs In VRAM!](#context-scaling)
@@ -57,17 +57,17 @@ Most existing community quantizations are generated by automated bots that apply
57
  ---
58
 
59
  <a id="comparative-analysis"></a>
60
- ## πŸ”¬ Comparative Quantization Analysis (vs. Flat Quants & Mudler APEX)
61
 
62
- The table below breaks down the surgical choices in **APEX-I-MiniPlus** compared directly against standard community automated quants (such as flat bartowski releases) and Mudler's standard APEX-I-Mini recipe:
63
 
64
- | Architectural Component | Flat Community Quants (e.g., bartowski `Q3_K_S` / `IQ3_S`) | Mudler APEX-I-Mini (Standard Recipe) | Our Handcrafted APEX-I-MiniPlus (IsValorum) | Perceived Quality & Real-World Impact |
65
  | :--- | :--- | :--- | :--- | :--- |
66
  | **Output Head (`output.weight`)** | Flat **`IQ3_S` / `Q3_K_S`** (~3.44 BPW) | **`Q4_K`** or profile default (~4.5 BPW) | **`Q6_K`** (~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. |
67
  | **Expert Routers (`ffn_gate_inp.weight`)** | Blindly quantized to 3-bit / unoptimized | Tier-quantized or standard linear/Q4 | **`F32` uncompressed** (32.0 BPW, 2 MB/layer) | **Zero Router Drift:** In 256 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 (~80 MB total). |
68
  | **Shared Foundation Expert (`ffn_*_shexp`)** | Flat **`IQ3_S` / `Q3_K_S`** (3.44 BPW) | **`Q3_K` / `IQ3_S`** (3.44 BPW) | **`IQ4_NL`** (4.50 BPW non-linear codebook) | **Foundational Knowledge Armor:** The shared expert executes for 100% of tokens. Crushing it to 3 bits degrades common-sense and domain reasoning. `IQ4_NL` maintains high representational fidelity on the universal pathway. |
69
- | **Core MoE Layers (Middle: 10–29)** | Flat **`IQ3_S` / `Q3_K_S`** (uniform bit-rate across all layers) | Aggressive **`IQ2_S` (2.5 BPW)** | **`IQ3_XXS` (3.06 BPW) + calibrated `imatrix`** | **Above the Quality Threshold:** Mudler's 2-bit `IQ2_S` drops 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. |
70
- | **Edge MoE Layers (Layers 0–9 & 30–39)** | Flat **`IQ3_S` / `Q3_K_S`** (no layer-wise gradient) | `IQ3_S` (limited to first/last 5 layers only) | **`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 an armored envelope, preventing initial prompt misunderstanding and final token degeneration during multi-turn generation. |
71
  | **Attention Gates (`attn_gate.weight`)** | Blindly compressed to 3-bit | Unoptimized / tier default | **`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. |
72
  | **Attention Output & QKV (`attn_output`, `attn_qkv`)** | Flat **`IQ3_S` / `Q3_K_S`** | Tier default | **`Q6_K` for `attn_output`**, **`IQ3_S` for `attn_qkv`** | **Contextual Retrieval Precision:** Preserves high dynamic range in self-attention projections, ensuring flawless needle-in-a-haystack retrieval across deep 128k–256k context windows. |
73
  | **Multimodal Vision (`mmproj`)** | Often omitted, or left as uncompressed **`FP16` (~900 MB)** | Often omitted or separate uncompressed `FP16` | **Bundled `Q8_0` (582 MB)** with **27 critical F32/F16 fallbacks** | **Saves ~320 MB VRAM with Zero Loss:** Handcrafted quantization preserves normalization and bias tensors in F32/F16, ensuring razor-sharp OCR, DOM viewport reading, and coordinate detection without visual noise. |
 
33
 
34
  ## <a id="quick-navigation"></a>⚑ Quick Navigation Index
35
  - [πŸ“¦ Model Files & Specifications](#model-specifications)
36
+ - [πŸ”¬ Comparative Quantization Analysis (vs. Flat Quants & Generic APEX)](#comparative-analysis)
37
  - [πŸ‘οΈ Bundled Q8_0 High-Precision Vision Projector](#vision-projector)
38
  - [πŸ’» Everyday Laptop Benchmarks (23–26+ tok/s on DDR4)](#laptop-benchmarks)
39
  - [πŸ”₯ The 24GB Miracle: Full 256K Context Runs In VRAM!](#context-scaling)
 
57
  ---
58
 
59
  <a id="comparative-analysis"></a>
60
+ ## πŸ”¬ Comparative Quantization Analysis (vs. Flat Quants & Generic APEX)
61
 
62
+ The table below breaks down the surgical choices in **APEX-I-MiniPlus** compared directly against generic automated community quants (uniform flat recipes) and generic APEX baseline recipes:
63
 
64
+ | Architectural Component | Generic Automated Quants (Flat `Q3_K_S` / `IQ3_S`) | Generic APEX-I-Mini (Baseline Recipe) | Our Handcrafted APEX-I-MiniPlus (IsValorum) | Perceived Quality & Real-World Impact |
65
  | :--- | :--- | :--- | :--- | :--- |
66
  | **Output Head (`output.weight`)** | Flat **`IQ3_S` / `Q3_K_S`** (~3.44 BPW) | **`Q4_K`** or profile default (~4.5 BPW) | **`Q6_K`** (~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. |
67
  | **Expert Routers (`ffn_gate_inp.weight`)** | Blindly quantized to 3-bit / unoptimized | Tier-quantized or standard linear/Q4 | **`F32` uncompressed** (32.0 BPW, 2 MB/layer) | **Zero Router Drift:** In 256 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 (~80 MB total). |
68
  | **Shared Foundation Expert (`ffn_*_shexp`)** | Flat **`IQ3_S` / `Q3_K_S`** (3.44 BPW) | **`Q3_K` / `IQ3_S`** (3.44 BPW) | **`IQ4_NL`** (4.50 BPW non-linear codebook) | **Foundational Knowledge Armor:** The shared expert executes for 100% of tokens. Crushing it to 3 bits degrades common-sense and domain reasoning. `IQ4_NL` maintains high representational fidelity on the universal pathway. |
69
+ | **Core MoE Layers (Middle: 10–29)** | Flat **`IQ3_S` / `Q3_K_S`** (uniform bit-rate across all layers) | Aggressive **`IQ2_S` (2.5 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. |
70
+ | **Edge MoE Layers (Layers 0–9 & 30–39)** | Flat **`IQ3_S` / `Q3_K_S`** (no layer-wise gradient) | `IQ3_S` (limited to first/last 5 layers only in generic recipes) | **`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 an armored envelope, preventing initial prompt misunderstanding and final token degeneration during multi-turn generation. |
71
  | **Attention Gates (`attn_gate.weight`)** | Blindly compressed to 3-bit | Unoptimized / tier default | **`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. |
72
  | **Attention Output & QKV (`attn_output`, `attn_qkv`)** | Flat **`IQ3_S` / `Q3_K_S`** | Tier default | **`Q6_K` for `attn_output`**, **`IQ3_S` for `attn_qkv`** | **Contextual Retrieval Precision:** Preserves high dynamic range in self-attention projections, ensuring flawless needle-in-a-haystack retrieval across deep 128k–256k context windows. |
73
  | **Multimodal Vision (`mmproj`)** | Often omitted, or left as uncompressed **`FP16` (~900 MB)** | Often omitted or separate uncompressed `FP16` | **Bundled `Q8_0` (582 MB)** with **27 critical F32/F16 fallbacks** | **Saves ~320 MB VRAM with Zero Loss:** Handcrafted quantization preserves normalization and bias tensors in F32/F16, ensuring razor-sharp OCR, DOM viewport reading, and coordinate detection without visual noise. |