IQ2_S, 2.75 bpw) drops GPU VRAM weights to 11.88 GB (11.06 GiB) at 96.8% BF16 recovery, while IQ3_XXS (3.25 bpw, 14.03 GB / 13.07 GiB on GPU) retains 99.6% of full-precision reasoning accuracy.
Why it matters for buyers: Two days ago, standard
ggml-org builds measured 27.9 GB (Q2_K) to 32.9 GB (Q4_K_M), forcing 12GB–16GB GPU owners into CPU expert offloading (--cpu-moe) and shutting out sub-32GB desktops. GSQ-RCO moves the full GPU-resident floor down into mainstream 12GB and 16GB cards—provided your host PC still supplies enough system RAM and NVMe space for Qwen4's separate n-gram table.
What ISTA-DASLab actually built: GSQ + RCO, explained without hype
Standard GGUF quantization is blunt: apply a largely uniform bit budget across layers and hope fragile attention or routing weights survive. On a sparse Mixture-of-Experts (MoE) architecture like Qwen4-35B-A3B—which packs 34.53 billion quantized weights across 40 layers (30 Gated DeltaNet linear-attention layers + 10 Qwen Sparse Attention layers, 256 routed experts with 8 active per token, 1 shared expert, and a 1M-token context window)—uniform 2-to-3-bit quantization wastes precious bits on low-sensitivity experts while starving sensitive dense projections.
ISTA-DASLab researchers (Alireza Dadgarnia, Soroush Tabesh, Mahdi Nikdan, Michael Helcig, Eldar Kurtić, Maximilian Kleinegger, and Dan Alistarh) attack that problem in two sequential stages, outputting standard llama.cpp-compatible GGUF files:
- GSQ — Gumbel-Softmax Quantization (arXiv:2604.18556, code): Replaces heuristic rounding with a differentiable Gumbel-Softmax relaxation that jointly optimizes per-coordinate grid assignments and per-group scales. It approaches vector-quantization accuracy at 2–3 bits while staying inside standard scalar GGUF formats that existing GPU kernels already run at full speed.
- RCO — Riemannian Constrained Optimization (arXiv:2605.00649, code): Solves the global mixed-precision allocation puzzle directly on task loss under an exact model-size budget. Across 161 discrete per-tensor decisions per build (routed
ffn_gate_exps/ffn_up_exps, routedffn_down_exps, linear/sparse attention projections, andoutput.weight), RCO formulates the size constraint as a smooth Riemannian manifold in logit space and allocates bits where loss sensitivity is highest.
The published tensor histograms in ISTA-DASLab’s reproducibility artifacts (tensor-allocation/*.rco-allocation.txt) reveal exactly how RCO spends its budget:
- Routed experts (32.2B of the 34.53B weights) absorb almost all aggressive compression, drawing from
Q1_0throughIQ3_S—and at every single size tier, down projections (ffn_down_exps) receive significantly more bits than gate and up projections. ForIQ3_XXS, 30 of 40 down-projection layers stay atIQ3_S, versus 18 of 40 for gate/up. - Dense path (attention +
output.weight) draws from a completely separate high-precision ladder (IQ4_XSthroughQ8_0). InIQ3_XXS, 47 of 81 dense tensors remain atQ5_KorQ6_K. - Critical invariants stay high precision: shared experts and hyper-connection projections remain at
Q8_0across all four builds; sparse-attention key/value projections, indexers, and n-gram projections remain atBF16orF32.
Verified benchmark audit: 96.8% under 12GB, 99.6% at 3.25 bpw
All scores below come directly from the ISTA-DASLab model card, evaluated against base Qwen/Qwen4-35B-A3B (BF16) at reasoning effort xhigh across AIME25 (10-run average), GPQA-Diamond (3-run average), and LiveCodeBench v6 (3-run average), using the BF16 n-gram table and open GSQ-RCO-eval harness. Because GPU VRAM is sold in binary GiB while Hugging Face reports decimal GB (10^9 bytes), we list both.
| Variant | Avg bpw | On GPU (GB) | On GPU (GiB) | Shard 1 file size | AIME25 | GPQA-D | LCB v6 | Task avg | BF16 recovery |
|---|---|---|---|---|---|---|---|---|---|
Base (BF16) |
16.00 | 69.06 GB | 64.32 GiB | — | 95.33 | 88.72 | 70.86 | 84.97 | 100.0% |
GSQ-RCO IQ2_S |
2.75 | 11.88 GB | 11.06 GiB | 13.39 GB (12.47 GiB) | 92.33 | 86.03 | 68.38 | 82.25 | 96.8% |
GSQ-RCO Q2_K_XL |
3.00 | 12.96 GB | 12.07 GiB | 14.46 GB (13.47 GiB) | 92.67 | 87.54 | 68.95 | 83.05 | 97.7% |
GSQ-RCO IQ3_XXS |
3.25 | 14.03 GB | 13.07 GiB | 15.54 GB (14.47 GiB) | 95.00 | 87.54 | 71.24 | 84.59 | 99.6% |
GSQ-RCO IQ3_S |
3.50 | 15.11 GB | 14.07 GiB | 16.61 GB (15.47 GiB) | 94.33 | 86.20 | 72.19 | 84.24 | 99.1% |
Two statistical nuances in ISTA’s own notes deserve emphasis:
IQ3_XXS(99.6%) vs.IQ3_S(99.1%) is within benchmark noise. The 0.35-point gap between 84.59 and 84.24 is roughly one AIME25 question (worth 0.33 points), and standard errors on AIME25 and GPQA-Diamond run around 2 points. ISTA explicitly recommendsIQ3_Swhen you have the extra 1.08 GB of VRAM headroom, andIQ3_XXSwhen saving ~1.1 GB matters—which makesIQ3_XXSthe clear default for 16GB consumer cards running real context windows.- Even the sub-12GB
IQ2_Sbuild avoids collapse. At 2.75 bpw, it stays within 3.00 points of BF16 on AIME25 (92.33 vs. 95.33) and 2.48 points on LiveCodeBench v6 (68.38 vs. 70.86), preserving 96.8% of the base task average inside 11.06 GiB of VRAM.
The zero-VRAM trick—and the 41 GB disk catch
Why does a 55B+ total-parameter model (35B MoE + 20.5B n-gram embedding + MTP layer) put only 11.88 GB to 15.11 GB in GPU VRAM?
In llama.cpp (with Qwen4 support from PR #33626), two large lookup tables are always pinned to CPU / system memory, regardless of -ngl 99:
- Token embedding (
token_embd.weight):1.02 GB(0.95 GiB) kept at exact BF16 inside Shard 1. Because each token only reads one row—never a matrix multiplication—quantizing it saves zero VRAM and gives zero speed gain. - 20.5B N-gram table (Shard 2, shared across all builds): Stored separately in
ngram/as eitherQwen4-35B-A3B-ngram-BF16.gguf(40.96 GB / 38.15 GiB, exact checkpoint precision used for all published scores) orQwen4-35B-A3B-ngram-Q8_0.gguf(21.76 GB / 20.27 GiB, for tighter disks—note ISTA has not benchmarked the Q8_0 table).llama.cppmemory-maps (mmap) the file from disk and reads one row per token, so it consumes 0 GB of VRAM. - Optional extras: Each build embeds the Q4_K multi-token-prediction (MTP) draft layer (
0.49 GB), which is only loaded into VRAM if you explicitly pass--spec-type draft-mtp --spec-draft-n-max 3. Vision input requires the separatemmproj-Qwen4-35B-A3B-BF16.gguf(0.90 GB).
Hardware fit audit: 12GB GPUs vs. 16GB GPUs vs. 16GB Mac Mini & laptops
This is where headline social posts (“under 12GB!”) collide with real operating systems, binary GiB arithmetic, and unified memory architecture. Compare your exact target hardware against both GPU VRAM headroom and host memory pressure before downloading:
| Hardware tier | Official memory & bandwidth | Best GSQ-RCO fit | GPU weights (GiB) | Free VRAM / pool headroom | Practical verdict |
|---|---|---|---|---|---|
| RTX 4070 (12GB) | 12 GiB GDDR6X · 504 GB/s | IQ2_S (2.75 bpw) |
11.06 GiB | ~0.94 GiB | Fits all-GPU for short context (-ctk q8_0 -ctv q8_0); offload 1–2 layers for long context |
| RTX 5070 (12GB) | 12 GiB GDDR7 · 672 GB/s | IQ2_S (2.75 bpw) |
11.06 GiB | ~0.94 GiB | Same tight 12 GiB ceiling as 4070, with +33% memory bandwidth on the 3B active weights |
| RTX 5060 Ti (16GB) | 16 GiB GDDR7 · 448 GB/s | IQ3_XXS (3.25 bpw) |
13.07 GiB | ~2.93 GiB | Best value 99.6% rig—holds weights + KV cache + optional 0.49 GB MTP entirely in VRAM |
| RTX 5070 Ti (16GB) | 16 GiB GDDR7 · 896 GB/s | IQ3_XXS / IQ3_S |
13.07 / 14.07 GiB | ~2.93 / ~1.93 GiB | Fast 896 GB/s GDDR7 + full VRAM residency for near-lossless 3.25–3.50 bpw builds |
| 16GB Mac Mini (M4 / M6) & 16GB laptops | 16 GiB unified · 120–170 GB/s | Borderline (IQ2_S only) |
11.06 GiB (+ 0.95 GiB embd) | < 4.0 GiB total for OS + KV + n-gram pages | Tight warning: Unified RAM must hold OS + 12.01 GiB weights/embd + mmap pages simultaneously |
| 24GB–32GB Mac Mini / 32GB Mini PC | 24–32 GiB unified · 153–170+ GB/s | IQ3_XXS (3.25 bpw) |
13.07 GiB (+ 0.95 GiB embd) | ~10–18 GiB for OS + KV + n-gram cache | Massive upgrade over official ggml-org builds (which forced 32GB down to 26.0 GiB Q2_K) |
What this changes versus our earlier Qwen4 hardware guides
- 12GB consumer GPUs (RTX 4070 / RTX 5070) unlock full-GPU Qwen4 without CPU offload. In our December 5 llama.cpp Qwen4 GPU audit, the official 32.9 GB
ggml-orgQ4_K_Mfile forced 12GB and 16GB cards to spill MoE experts onto CPU RAM via--cpu-moe. With GSQ-RCOIQ2_S(11.06 GiBon GPU), a desktop pairing a 12GB card with 32GB of system RAM and an NVMe SSD keeps all 40 layers on the GPU. Keep expectations grounded:0.94 GiBof spare VRAM leaves room for CUDA buffers and modest context (use quantized KV cache-ctk q8_0 -ctv q8_0), not a 128K context window or the 0.90 GB BF16 vision projector simultaneously. - 16GB discrete GPUs become the clear price-to-performance winner. Stepping from 12GB to 16GB VRAM adds the exact ~2–3 GiB needed to run
IQ3_XXS(99.6% BF16 recovery,13.07 GiBon GPU) with2.93 GiBleft for KV cache and speculative decoding—skipping the steep jump to 24GB or 32GB flagship silicon. Check live US street availability and $/GB ratios across 12GB and 16GB cards on The Benchmarque Market Tracker, and model your exact VRAM + KV cache + system RAM budget in Can It Run. - 16GB Mac minis and 16GB laptops still face unified-memory physics—while 24GB/32GB machines win big. In our Mini PC Qwen4 memory guide, zero official
ggml-orgfiles fit inside 16GB (the smallest was 26.0 GiBQ2_K), and 32GB machines had only 6.0 GiB left. GSQ-RCO slashes the GPU+embedding footprint in half, yet on a 16GB unified-memory Mac mini or Windows laptop,IQ2_Sstill needs12.01 GiB(11.06 GiBweights +0.95 GiBBF16token_embd) before the OS, Metal’s default ~75% wired GPU memory cap, KV cache, and activemmappages from the 21.76 GB–40.96 GB n-gram file. Expect heavy SSD paging on 16GB unified rigs. On 24GB or 32GB unified machines, however,IQ3_XXS(14.02 GiBcombined weights + embedding) turns a formerly cramped 2-bit squeeze into a comfortable 99.6% fidelity local workstation.
What is NOT yet verified
- Consumer GPU tokens-per-second: ISTA-DASLab did not publish tok/s runs for RTX 4070, RTX 5070, RTX 5060 Ti, or Apple Silicon. The only throughput measurement in the model card is a brief H200 speculative-decoding check on
IQ3_XXS(three prompts, greedy decoding), which saw 34%–55% MTP draft acceptance and 1.1x–1.3x faster generation. - Q8_0 n-gram accuracy: While the smaller
21.76 GBQ8_0 n-gram table cuts download and SSD size almost in half compared to the40.96 GBBF16 table, ISTA notes it has not benchmarked whether Q8_0 changes AIME25, GPQA-Diamond, or LiveCodeBench scores.
Verified llama.cpp quickstart (copy-paste setup)
Remember that GSQ-RCO ships as a two-shard split where Shard 2 is the shared n-gram table. On a 16GB GPU (IQ3_XXS), download both pieces and symlink (or copy on Windows without symlink privileges) the n-gram file as 00002-of-00002—or pass --ple on newer llama.cpp builds:
# 1. Download IQ3_XXS (15.54 GB) + recommended BF16 n-gram table (40.96 GB)
# Swap *IQ3_XXS* for *IQ2_S* (13.39 GB) on a 12GB GPU
hf download ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF \
--include "*IQ3_XXS*.gguf" "ngram/*BF16*" --local-dir .
# 2. Link the shared n-gram table as shard 2 of 2 (or use --ple on newer llama.cpp)
ln -s ngram/Qwen4-35B-A3B-ngram-BF16.gguf \
Qwen4-35B-A3B-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf
# 3. Serve with full GPU offload and quantized KV cache headroom
llama-server -m Qwen4-35B-A3B-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf \
-ngl 99 -ctk q8_0 -ctv q8_0 --reasoning-effort xhigh
If you enable MTP speculative decoding on NVIDIA CUDA (--spec-type draft-mtp), verify whether your llama.cpp build includes the fix for open CUDA depth-2+ synchronization issue #33673, or cap --spec-draft-n-max 1 until confirmed stable.
The verdict
- Own a 12GB GPU (RTX 4070 / RTX 5070) with 32GB+ host RAM? Pull
IQ2_S(2.75 bpw, 11.88 GB / 11.06 GiB on GPU). It is the first verified build of Qwen4-35B-A3B that loads all 40 layers inside 12GB VRAM while retaining 96.8% of BF16 task quality. Keep context tight or quantize the KV cache. - Shopping for a local AI GPU right now? Target a 16GB card (RTX 5060 Ti 16GB or RTX 5070 Ti) rather than paying flagship 24GB/32GB premiums. At
14.03 GB(13.07 GiB) on GPU,IQ3_XXSdelivers 99.6% of full BF16 performance with nearly 3 GiB of VRAM left over. Compare live GPU street value on The Benchmarque Market and run your exact context math on Can It Run. - Running a 16GB Mac mini or 16GB laptop? Do not assume “11.88 GB on GPU” means effortless 16GB unified-memory operation. Once macOS/Windows, the 1.02 GB BF16 token embedding, KV cache, and active n-gram pages share the same 16 GiB, headroom evaporates; step up to 24GB or 32GB unified memory if you want smooth daily
IQ3_XXSinference.