Groot-19B-A3B — Custom IK Quants (The "APEX Poly-Trellis" Sorcery)
This is a highly engineered suite of ik_llama.cpp quants for Groot-19B-A3B-261023 (18.99B total / ~3B active parameters, 128 experts with 8 active, 41 layers, hybrid Gated DeltaNet + Full Attention + NextN/MTP head + Vision).
Naive uniform quantization wrecks sparse 128-expert routing and drifts output probabilities on a 248,320-token vocabulary. We fixed that. We replaced synthetic analytic estimates with a full activation-calibrated imatrix, reinforced the outer layers and final MoE block (blk.40) with Integer Trellis (IQ*_KT), and packed attention/DeltaNet projections into _R4 layouts so a 19B multimodal MoE runs fast on 16GB RAM laptops.
⚠️ Requires
ik_llama.cpp. These files use customIQ*_KT(Integer Trellis) andIQ*_R4(Row-Repacked) tensors and will not load in stockllama.cpp, Ollama, or LM Studio.
🥔 The "APEX Poly-Trellis" Ladder (V2)
We bypassed standard uniform quantization. We pin the embedding (Q5_K) and output head (Q6_K), elevate the edge blocks (blk.0–3, blk.36–39) and final MoE block (blk.40), and compress the middle routed experts with Trellis quantization to keep active memory tiny without lobotomizing the model.
| Quant | File | Size (BPW) | Mean KLD | Vibe Check |
|---|---|---|---|---|
| HQ-v2 (Tier 3) | Groot-19B-A3B-APEX-PolyTrellis-HQ-v2.gguf | 8.63 GiB (3.90) | 0.0342 | The Purist. 90.54% top-p match with BF16. Near-lossless reasoning & vision. |
| Balanced-v2 (Tier 2) | Groot-19B-A3B-APEX-PolyTrellis-Balanced-v2.gguf | 7.35 GiB (3.33) | 0.0692 | The Daily Driver. The 16GB RAM sweet spot. Cut V1 PPL error by 44% for +75 MiB. |
| Lite-v2 (Tier 1) | Groot-19B-A3B-APEX-PolyTrellis-Lite-v2.gguf | 6.81 GiB (3.08) | 0.0878 | The Minimalist. Beats V1 Balanced while saving ~480 MiB for huge KV contexts. |
| Vision Projector | mmproj-Groot-19B-A3B-261023-BF16.gguf | 903 MiB (16.0) | — | The Eyes. Unquantized BF16 projector for multimodal image input. |
🧠 The Methodology (Why this doesn't suck)
- Real Activation Imatrix (
98 MB.dat): V1 used analytic estimates; V2 switched to full activation-calibrated statistics (GrootTeam_Groot-19B-A3B-261023-imatrix.dat, included in this repo) so the Viterbi trellis solver protects true MoE expert activation spikes. - Poly-Trellis (
IQ*_KT) Magic: Sensitive edge blocks (blk.0–3,blk.36–39) and the final MoE block (blk.40) runIQ4_KT/IQ3_KTto prevent residual drift right before the LM head, while bulk middle experts pack down toIQ3_KT/IQ2_KT. - Row-Repacking (
_R4): Shared attention projections, DeltaNet gates, and dense tensors useIQ5_K_R4andIQ4_KS_R4(weights interleaved in groups of 4 rows) for fast AVX2 / AVX-VNNI / CUDA-MMQ prefill. - Head Guardrails:
output.weightis pinned toQ6_Kandtoken_embd.weighttoQ5_Kacross all tiers to keep token selection sharp across the 248K vocabulary.
🧪 Validation: KLD Against BF16
Measured via ik_llama.cpp's llama-perplexity --kl-divergence directly against the 35.39 GiB BF16 ground truth (PPL = 13.0048 ± 0.8185 on wikitext-2-raw):
- HQ-v2:
1.0164xBF16 PPL |0.0342Mean KLD (0.0178Median) | 90.54% Same top-p - Balanced-v2:
1.0336xBF16 PPL |0.0692Mean KLD (0.0374Median) | 85.39% Same top-p - Lite-v2:
1.0558xBF16 PPL |0.0878Mean KLD (0.0489Median) | 84.76% Same top-p
🚀 Quick Start (Pure CPU / Potato Mode)
Because this is ik_llama.cpp and only ~3B parameters activate per token, it flies on CPU—even on thin-and-light laptops. Quantize your KV cache (q8_0) and enable Flash Attention (-fa on) to keep a 32K context window comfortably inside 16GB RAM:
# 1A. Text + Speculative Decoding (MTP head)
./llama-server -m Groot-19B-A3B-APEX-PolyTrellis-Balanced-v2.gguf \
-c 32768 -ctk q8_0 -ctv q8_0 \
-b 512 -ub 512 -fa on \
--draft-max 3 --jinja --port 8080
# 1B. Multimodal (Text + Vision via mmproj)
./llama-server -m Groot-19B-A3B-APEX-PolyTrellis-Balanced-v2.gguf \
--mmproj mmproj-Groot-19B-A3B-261023-BF16.gguf \
-c 32768 -ctk q8_0 -ctv q8_0 \
-b 512 -ub 512 -fa on \
--jinja --port 8080
# 2. Hit the API
curl -s http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"messages": [{"role": "user", "content": "Write a lock-free SPSC ring buffer in C++20. Output only code."}], "temperature": 0.6, "top_p": 0.95, "top_k": 20, "max_tokens": 2048}' | jq -r .choices[0].message.content
📜 License & Credits
- Base Model: GrootTeam/Groot-19B-A3B-261023
- Quantization Engine: ik_llama.cpp
- Philosophy: Hegelian Dialectics (Thesis: FP16 -> Antithesis: Quantization -> Synthesis: True APEX).
“Use the right tool, min-max the hell out of it, and write assembly if you truly care.” — The Potato Gang