Inkling-2-Mini GSQ-RCO GGUF: Sub-3.5-Bit MoE Quantization Guide

ISTA-DASLab's Inkling-2-Mini-GSQ-RCO-GGUF compresses the 26.4B looped 128-expert MoE model into 2.75-3.50 bpw non-uniform GGUF files (8.05-10.50 GB VRAM). Combining Gumbel-Softmax Quantization (GSQ) with Riemannian Constrained Optimization (RCO), the 3.50 bpw IQ3_S build retains 99.2% of base accuracy across AIME25, GPQA-Diamond, and LiveCodeBench v6.
Inkling-2-Mini GSQ-RCO GGUF: Sub-3.5-Bit MoE Quantization Guide: ISTA-DASLab's Inkling-2-Mini-GSQ-RCO-GGUF compresses the 26.4B looped 128-expert MoE model into 2.75-3.50 bpw non-uniform GGUF files (8.05-10.50 GB VRAM). Combining Gumbel-Softmax Quantization (GSQ) with Riemannian Constrained Optimization (RCO), the 3.50 bpw IQ3_S build retains 99.2% of base accuracy across AIME25, GPQA-Diamond, and LiveCodeBench v6. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- 99.2% Accuracy Recovery at 3.50 bpw: IQ3_S retains 98.33 on AIME25, 86.20 on GPQA-Diamond, and 79.05 on LiveCodeBench v6 inside 10.50 GB VRAM.
- Two-Stage GSQ + RCO Search: Learns scalar quantization grids via Gumbel-Softmax and solves exact size budgets on a Riemannian logit manifold.
- Separate Dense vs. Expert Ladders: Keeps attention and output.weight at IQ4_XS-Q8_0 while compressing routed experts down to IQ1_S-IQ3_S.
- Zero-VRAM BF16 Lookup Embeddings: Leaves `token_embd.weight` (0.93 GB) in BF16 because `llama.cpp` maps input embeddings to host RAM regardless of `-ngl`.
- DSpark Speculative Drafting + Vision: Pairs cleanly with `dspark-Inkling-2-Mini-Q8_0.gguf` (0.40 GB) and `mmproj-Inkling-2-Mini-BF16.gguf` (0.64 GB).
import { createAgent } from "@smoke-monkey/harness";const localQuantAgent = createAgent({agentId: "inkling-gsq-rco-local-coder",provider: "openai",baseUrl: "http://127.0.0.1:8080/v1",model: "Inkling-2-Mini-GSQ-RCO-IQ3_S",workspacePath: process.cwd(),permissions: {read_file: "allow",write_file: "allow",run_command: "ask",},});async function runSpeculativeLocalEval() {const result = await localQuantAgent.run("Connect to local llama-server running Inkling-2-Mini-GSQ-RCO-IQ3_S.gguf " +"with dspark-Inkling-2-Mini-Q8_0.gguf draft, reasoning_effort=high, " +"and refactor src/router.ts with full Vitest regression coverage.");console.log("[GSQ-RCO Agent] Completed:", result.summary);}runSpeculativeLocalEval().catch(console.error);
Watch: Related Video Guides
Reverse-engineering GGUF | Post-Training Quantization
GGUF Quantization Tutorial: Run Fine-Tuned LLMs on CPU with llama.cpp
How GSQ-RCO Compresses a 26.4B Looped 128-Expert MoE Below 3.5 bpw
ISTA-DASLab's GSQ-RCO pipeline converts thinkingmachines/Inkling-2-Mini—a 26.4B looped sparse MoE (24 layers with the middle 12 looped 3x, 128 routed experts with 8 active per token, 1M context)—into non-uniform GGUF files from 2.75 to 3.50 bits per weight. Rather than applying one uniform quantizer to every layer, GSQ-RCO assigns an optimal GGUF type to each of 169 tensor groups under an exact size budget.
First, Gumbel-Softmax Quantization (GSQ) builds a per-tensor database across candidate scalar GGUF formats by jointly optimizing coordinate grid assignments and group scales. Second, Riemannian Constrained Optimization (RCO) formulates the file-size constraint as a smooth manifold in logit space and runs gradient search directly against task loss—assigning higher precision (Q5_K–Q8_0) to sensitive attention matrices and output.weight, while pushing 48 routed expert matrices (ffn_gate_up_exps, ffn_down_exps) down to IQ1_S–IQ3_S and Q2_0–IQ4_NL.
Every build keeps token_embd.weight (201,024 x 2,304 = 0.93 GB) in native BF16. Because llama.cpp executes token embeddings as CPU table lookups in system memory regardless of -ngl, quantizing embeddings would save zero VRAM while degrading first-layer activations.
VRAM Footprint & Benchmark Recovery (AIME25, GPQA-Diamond, LiveCodeBench v6)
Evaluated at reasoning_effort=xhigh against the NVFP4/MXFP8 base model across AIME25 (10-run average), GPQA-Diamond (3 runs), and LiveCodeBench v6 (3 runs), the IQ3_S build achieves 99.2% task-average recovery inside 10.50 GB VRAM, while Q2_K_XL hits 98.0% in 8.86 GB VRAM:
| GGUF Build | Average bpw | GPU VRAM | Host Emb | Total Size | AIME25 ↑ | GPQA-D ↑ | LCB v6 ↑ | Task Avg (Recovery) |
|---|---|---|---|---|---|---|---|---|
| Base (NVFP4 / MXFP8) | n/a | — | — | — | 99.33 | 86.87 | 79.62 | 88.61 (100.0%) |
| GSQ-RCO IQ3_S | 3.50 | 10.50 GB | 0.93 GB | 11.43 GB | 98.33 | 86.20 | 79.05 | 87.86 (99.2%) |
| GSQ-RCO IQ3_XXS | 3.25 | 9.68 GB | 0.93 GB | 10.61 GB | 96.00 | 85.86 | 77.90 | 86.59 (97.7%) |
| GSQ-RCO Q2_K_XL | 3.00 | 8.86 GB | 0.93 GB | 9.79 GB | 97.00 | 86.53 | 76.95 | 86.83 (98.0%) |
| GSQ-RCO IQ2_S | 2.75 | 8.05 GB | 0.93 GB | 8.98 GB | 92.33 | 84.34 | 73.90 | 83.52 (94.3%) |
Inspecting tensor distributions explains why IQ3_S preserves coding and math: out of 121 dense attention and output tensors, IQ3_S places 49 at Q6_K, 11 at Q8_0, 29 at Q5_K, and 22 at Q4_K, while compressing ffn_down_exps (21 IQ4_NL, 3 Q2_0) and ffn_gate_up_exps across IQ1_S–IQ3_S.
Running Inkling-2-Mini GGUF + DSpark Speculative Decoding in llama.cpp
These non-uniform GGUF files require llama.cpp build b12611 or newer (or b12720+ when pairing with the optional dspark-Inkling-2-Mini-Q8_0.gguf speculative draft model, which adds 0.40 GB VRAM and achieves ~65% token acceptance on tested prompts):
# 1. Download the recommended 3.50 bpw IQ3_S build + DSpark Q8_0 draft + mmproj
hf download ISTA-DASLab/Inkling-2-Mini-GSQ-RCO-GGUF \
--include "*IQ3_S.gguf" "dspark-*Q8_0.gguf" "mmproj-*" --local-dir ./models
# 2. Launch llama-server on an 12 GB or 16 GB GPU with speculative decoding & xhigh reasoning
llama-server \
-m ./models/Inkling-2-Mini-GSQ-RCO-IQ3_S.gguf \
-md ./models/dspark-Inkling-2-Mini-Q8_0.gguf \
--mmproj ./models/mmproj-Inkling-2-Mini-BF16.gguf \
-ngl 99 -ngld 99 --reasoning-effort xhigh --port 8080
# 3. Optional: CLI smoke test for 8.05 GB VRAM (12 GB / 10 GB cards) using IQ2_S
llama-cli -m ./models/Inkling-2-Mini-GSQ-RCO-IQ2_S.gguf \
-p "Explain mixed-precision quantization." -ngl 99Deploying Sub-3.5-Bit MoE Models in Smoke Monkey Harness
For 12 GB GPUs (RTX 3060/4070) or 16 GB Apple Silicon unified memory, Inkling-2-Mini-GSQ-RCO-IQ3_S delivers frontier-tier coding (79.05 LiveCodeBench v6) and math (98.33 AIME25) via an OpenAI-compatible local llama-server endpoint with zero cloud token spend.
When wiring llama-server into Smoke Monkey Harness, set "reasoning_effort": "medium" or "high" for fast tool-call iterations and reserve "xhigh" for deep architectural planning or multi-file refactors—preventing excessive hidden reasoning loops during routine file edits.
Choose Q2_K_XL for 10 GB GPUs, IQ3_S for 12 GB+ GPUs
Q2_K_XL (8.86 GB VRAM) beats IQ3_XXS (9.68 GB VRAM) on both GPQA-Diamond (86.53 vs 85.86) and AIME25 (97.00 vs 96.00) while saving 0.82 GB of VRAM—making it the best sub-10 GB pick.
Frequently Asked Questions
Q:How much VRAM does Inkling-2-Mini GSQ-RCO GGUF require?
On GPU with -ngl 99, IQ2_S uses 8.05 GB, Q2_K_XL uses 8.86 GB, IQ3_XXS uses 9.68 GB, and IQ3_S uses 10.50 GB. The 0.93 GB BF16 token embedding stays in host system RAM.
Q:Why does GSQ-RCO keep token_embd.weight in BF16 instead of quantizing it?
llama.cpp always places token_embd.weight on CPU system memory and reads one row per token as a lookup rather than a matrix multiply. Quantizing it saves zero VRAM and hurts input precision.
Q:Which llama.cpp version is required for Inkling-2-Mini-GSQ-RCO-GGUF?
Standard execution requires llama.cpp release b12611 (November 21, 2026) or newer. Speculative decoding with the DSpark draft checkpoints requires b12720 (November 25, 2026) or newer.
Q:How accurate is IQ3_S compared to the original Inkling-2-Mini checkpoint?
At 3.50 bpw, IQ3_S retains 99.2% of the NVFP4/MXFP8 base model's task average (87.86 vs. 88.61), scoring 98.33 on AIME25, 86.20 on GPQA-Diamond, and 79.05 on LiveCodeBench v6.
Q:Can I use multimodal vision and speculative decoding together in llama-server?
Yes. Pass --mmproj mmproj-Inkling-2-Mini-BF16.gguf (0.64 GB) alongside -md dspark-Inkling-2-Mini-Q8_0.gguf (0.40 GB) and -ngl 99 -ngld 99 to run both.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.