Inkling-2-Mini GSQ-RCO GGUF

Mixed-precision GSQ-RCO GGUF quantizations of thinkingmachines/Inkling-2-Mini for llama.cpp.
- Architecture: Looped Sparse MoE (
26.1Btotal ·3.4Braw /5.4Beffective active ·128expertstop-8· Vision + Text) - Context Window: Up to
1Mtokens (hybrid sliding-window + global attention) - Recommended Sampling:
temperature = 1.0·top_p = 1.0·top_k = 0·min_p = 0.0(--jinja)
GGUF Files
| File | bpw | Size | Mean KLD ↓ | Same Top Token ↑ |
|---|---|---|---|---|
| Inkling-2-Mini-GSQ-RCO-IQ2_XS.gguf | 2.60 |
8.48 GB |
0.0651 |
91.5% |
| Inkling-2-Mini-GSQ-RCO-IQ3_XS.gguf (Recommended) | 3.55 |
11.64 GB |
0.0199 |
95.1% |
| Inkling-2-Mini-GSQ-RCO-IQ4_XS.gguf | 4.15 |
13.58 GB |
0.0088 |
96.9% |
KLD & Same Top Token averaged across WikiText-2, Code+Math, and Tool/Agentic (120 × 512 chunks vs official BF16, llama.cpp b12717). Full breakdown in Benchmarks.
Optional Add-ons (Vision & Speculative Decoding)
| File | Type | Size | Notes |
|---|---|---|---|
| mmproj-Inkling-2-Mini-BF16.gguf | Vision (--mmproj) |
642 MB |
Recommended · ~9× faster GPU image encoding |
| mmproj-Inkling-2-Mini-Q8_0.gguf | Vision (--mmproj) |
346 MB |
Compact vision projector |
| dspark-Inkling-2-Mini-Q8_0.gguf | DSpark (-md) |
504 MB |
Recommended · mainline llama.cpp, lossless BF16 Markov head |
| dspark-Inkling-2-Mini-BF16.gguf | DSpark (-md) |
749 MB |
Full BF16 mainline drafter |
Benchmarks
All models evaluated under identical settings (llama.cpp b12717, -fa on, -ctk f16 -ctv f16, --jinja, --reasoning-format auto, temp=1.0, top_p=1.0, reasoning_effort=high, zero-salvage on truncated outputs). Overall score is the equal-weight macro average across all 5 tasks (5 × 20 = 100).
| Model | bpw | Size | IFEval | 32k/64k Needle | HumanEval+ | BFCL Multiple | MMLU-Pro | Overall | vs BF16 |
|---|---|---|---|---|---|---|---|---|---|
BF16 (Reference) |
16.00 |
52.23 GB |
92.0%(92/100) |
100.0%(24/24) |
93.3%(153/164) |
84.5%(169/200) |
68.5%(137/200) |
87.66 |
100.0% |
IQ4_XS |
4.15 |
13.58 GB |
89.0%(89/100) |
100.0%(24/24) |
94.5%(155/164) |
87.0%(174/200) |
69.5%(139/200) |
88.00 |
100.4% |
IQ3_XS (Recommended) |
3.55 |
11.64 GB |
95.0%(95/100) |
100.0%(24/24) |
94.5%(155/164) |
82.0%(164/200) |
67.5%(135/200) |
87.80 |
100.2% |
IQ2_XS |
2.60 |
8.48 GB |
91.0%(91/100) |
95.8%(23/24) |
92.1%(151/164) |
78.5%(157/200) |
62.5%(125/200) |
83.98 |
95.8% |
Per-Domain Fidelity Breakdown (KLD, Same Top Token, Perplexity & 48-Pass Router Overlap)
| Model | Size | Wiki KLD ↓ (Top-1 / PPL) | Code+Math KLD ↓ (Top-1 / PPL) | Tool KLD ↓ (Top-1 / PPL) | 48-Pass Router Overlap ↑ |
|---|---|---|---|---|---|
IQ4_XS |
13.58 GB |
0.0159 (94.90% / 6.86) |
0.0052 (97.85% / 2.32) |
0.0052 (98.01% / 1.95) |
83.69% |
IQ3_XS |
11.64 GB |
0.0336 (92.28% / 6.96) |
0.0134 (96.63% / 2.35) |
0.0126 (96.43% / 1.96) |
82.76% |
IQ2_XS |
8.48 GB |
0.1178 (86.15% / 7.49) |
0.0382 (94.39% / 2.42) |
0.0393 (93.96% / 1.98) |
80.15% |
- KLD: KL divergence against official
BF16logits (40 × 512chunks per domain; lower is better). - Top-1 (Same Top Token): Percentage of tokens where the top-1 prediction matches
BF16. - PPL: Perplexity on the evaluation set (lower is better).
- 48-Pass Router Overlap:
top-8MoE expert selection agreement withBF16across all 48 looped layer passes.
Quickstart
Choose Your Quant
| Hardware | Recommended File | 128k KV Cache |
-ub |
Measured 128k VRAM |
|---|---|---|---|---|
| 12 GB VRAM / 16 GB Mac | IQ2_XS (8.48 GB) |
q4_0 |
96 |
11.0 GiB |
| 16 GB VRAM / 24 GB Mac | IQ3_XS (11.64 GB) |
q8_0 |
96 |
14.9 GiB |
| 24 GB VRAM / 32 GB Mac | IQ4_XS (13.58 GB) |
q8_0 |
256 |
16.7 GiB |
llama.cpp — 128k Context in < 12 GB VRAM (IQ2_XS)
llama-server \
-hf abenzerps/Inkling-2-Mini-GSQ-RCO-GGUF:IQ2_XS \
--jinja --reasoning-format auto \
-ngl 99 -fa on -np 1 -c 131072 -b 2048 -ub 96 \
-ctk q4_0 -ctv q4_0 \
--temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --port 8080
Fits 128k context in 11.0 GiB VRAM (< 12 GB). Swap :IQ2_XS with :IQ3_XS (13.9 GiB q4_0 / 14.9 GiB q8_0) or :IQ4_XS (15.6 GiB q4_0 / 16.7 GiB q8_0) on 16–24 GB GPUs, or use -m <file>.gguf for local files.
Ollama
ollama run hf.co/abenzerps/Inkling-2-Mini-GSQ-RCO-GGUF:IQ3_XS
LM Studio / GUI Clients
- Sampling:
Temperature = 1.0,Top-P = 1.0,Top-K = 0,Min-P = 0.0 - Memory & Long Context (
128k+): Enable Flash Attention, match K/V Cache (Q8_0/Q8_0orQ4_0/Q4_0), and keep Evaluation Batch Size (-ub) at64–128(scales compute buffer linearly with context length;-bdoes not).
Vision (--mmproj) — Complete Command
llama-server \
-m Inkling-2-Mini-GSQ-RCO-IQ3_XS.gguf \
--mmproj mmproj-Inkling-2-Mini-BF16.gguf \
--jinja --reasoning-format auto \
-ngl 99 -fa on -np 1 -c 131072 -b 2048 -ub 64 \
-ctk q4_0 -ctv q4_0 \
--temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --port 8080
Add --no-mmproj-offload on tight VRAM to keep the vision projector on CPU (~0.1 GB VRAM).
Speculative Decoding (DSpark · mainline llama.cpp) — Complete Command
llama-server \
-m Inkling-2-Mini-GSQ-RCO-IQ3_XS.gguf \
-md dspark-Inkling-2-Mini-Q8_0.gguf \
--spec-type draft-dspark --spec-draft-n-max 3 -ngld 99 \
-ctkd q8_0 -ctvd q8_0 \
--jinja --reasoning-format auto \
-ngl 99 -fa on -np 1 -c 131072 -b 2048 -ub 64 \
-ctk q4_0 -ctv q4_0 \
--temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 --port 8080
Requires a mainline llama.cpp build with Inkling-2 DSpark support (PR #32218).
Technical Details
Method Summary & Tensor Precision Map (GSQ + RCO + NVFP4)
Inkling-2-Mini runs its middle 12 layers (blk.6–17) three times per token (48 effective passes). Each quant combines:
- Looped Backbone Shield: Routers (
ffn_gate_inp),attn_sink_proj, globalattn_k/v_conv_proj, loop controllers, and norms stay inF32/BF16; global attention (blk.5, 11, 17, 23) stays inQ8_0. - GSQ (
C=4): All3,072sparse experts (24 × 128,100%coverage with3×looped Hessian weighting) are refined directly in native GGUF quantization space (NVFP4,IQ4_NL, full-HessianQ2_0). - RCO Allocation: Riemannian coordinate optimization allocates exact mixed-precision budgets across all
48expert matrices, concentratingNVFP4inside the looped core. - 48-Pass Global KL Polish (
IQ2_XS): Full-trajectory scale distillation recovers logit and routing fidelity at2.60 bpw.
| Tensor Group | IQ2_XS (8.48 GB) |
IQ3_XS (11.64 GB) |
IQ4_XS (13.58 GB) |
|---|---|---|---|
| Routers, Loop Controllers & Norms | F32 / BF16 |
F32 / BF16 |
F32 / BF16 |
Global Attention (blk.5, 11, 17, 23) |
Q8_0 |
Q8_0 |
Q8_0 |
| Local Attention Projections | Q6_K / Q8_0 |
Q6_K / Q8_0 |
Q6_K / Q8_0 |
| Embeddings & LM Head | Q4_K / Q5_K |
Q4_K / Q5_K |
Q5_K / Q5_K |
ffn_gate_up_exps (24 layers) |
IQ2_XXS–IQ2_S (0 IQ1_S) |
IQ2_XXS–IQ3_XXS |
IQ3_XXS / IQ3_S / NVFP4 |
ffn_down_exps (24 layers) |
Q2_0 (GSQ) + 3× NVFP4 + 1× IQ4_NL |
20× NVFP4 + 4× IQ4_NL |
20× NVFP4 + 4× IQ4_NL |
Credits & License
- Methodology: Foundational GSQ (arXiv:2604.18556) and RCO (arXiv:2605.00649) frameworks by ISTA-DASLab.
- Base Model: thinkingmachines/Inkling-2-Mini (Apache 2.0).