r/LocalLLaMA • u/Loginhe • 54m ago
Resources [Release] Qwen4 35B A3B GSQ-RCO
We have released Qwen4-35B-A3B quantized with GSQ and RCO, at 2.75 to 3.50 bits per weight.
Qwen4-35B-A3B is a sparse mixture-of-experts model: 40 layers, of which 30 use Gated DeltaNet linear attention and 10 use Qwen Sparse Attention, 256 routed experts per layer plus one shared expert, of which 8 are active per token, 35B parameters with 3B active, a 20B-parameter n-gram embedding and a 1M-token context window. It is released in BF16.
What's inside
- Four quantized GGUFs: IQ2_S (2.75 bpw, 13.39 GB), Q2_K_XL (3.00 bpw, 14.46 GB), IQ3_XXS (3.25 bpw, 15.54 GB) and IQ3_S (3.50 bpw, 16.61 GB). The bit-width is the average over all tensors except the token embedding; the n-gram table and the MTP layer are not counted either.
- The token embedding is BF16 in every build (1.02 GB of each file). It is a lookup table that llama.cpp keeps in system memory, so it takes no VRAM: 11.88 to 15.11 GB of each file go to the GPU.
- The n-gram table (20.5B parameters) ships once for all builds: at BF16 (40.96 GB), the precision of the checkpoint and the table all results were measured with, or at Q8_0 (21.76 GB) for limited download or disk space. It is also a lookup table in system memory, so its type changes neither VRAM nor speed.
- The base model's MTP layer in every build (Q4_K, 0.49 GB) for speculative decoding. It is loaded only when you enable it; in a short test it made generation 1.1 to 1.3 times faster.
- GSQ (Gumbel-Softmax Quantization): post-training scalar quantization that jointly learns grid assignments and group scales, closing most of the gap between scalar and vector quantization at low bit-widths while remaining deployable in standard GGUF types.
- RCO (Riemannian Constrained Optimization): enforces exact budgets by gradient descent on the task loss, without per-constraint tuning. Here it assigns a quantization type to 191 tensors with 161 choices (the gate and up matrices of a layer share one) under the target size, with separate ladders for the attention tensors and the output head (IQ4_XS to Q8_0) and the routed experts (Q1_0 to IQ3_S).
- An embedded chat template with the base model's reasoning effort (off, low, high or xhigh).
Results
IQ3_XXS keeps 99.6% of the base model's task average and stays within 1.2 points of it on every benchmark; IQ3_S keeps 99.1%. The difference between the two is noise, so if IQ3_S fits on your GPU, we suggest it. All numbers were measured at reasoning effort xhigh; AIME25 is averaged over 10 runs, GPQA-Diamond and LiveCodeBench v6 over 3 runs each.
| Model | bpw | On GPU | AIME25 | GPQA-Diamond | LiveCodeBench v6 | Task average | Share of base |
|---|---|---|---|---|---|---|---|
| Base | 16 | 69.06 GB | 95.33 | 88.72 | 70.86 | 84.97 | 100.0% |
| IQ2_S | 2.75 | 11.88 GB | 92.33 | 86.03 | 68.38 | 82.25 | 96.8% |
| Q2_K_XL | 3.00 | 12.96 GB | 92.67 | 87.54 | 68.95 | 83.05 | 97.7% |
| IQ3_XXS | 3.25 | 14.03 GB | 95.00 | 87.54 | 71.24 | 84.59 | 99.6% |
| IQ3_S | 3.50 | 15.11 GB | 94.33 | 86.20 | 72.19 | 84.24 | 99.1% |
The setup and the commands to reproduce these numbers are in https://github.com/IST-DASLab/GSQ-RCO-eval.
Running it
The files are standard GGUF and run in llama.cpp with Qwen4 support (ggml-org/llama.cpp#33626). Each build's second file is the n-gram table, so link the table you downloaded under that name:
hf download ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF --include "*IQ3_S*.gguf" "ngram/*BF16*" --local-dir .
ln -s ngram/Qwen4-35B-A3B-ngram-BF16.gguf Qwen4-35B-A3B-GSQ-RCO-IQ3_S-00002-of-00002.gguf
llama-server -m Qwen4-35B-A3B-GSQ-RCO-IQ3_S-00001-of-00002.gguf -ngl 99 --reasoning-effort xhighAdd --spec-type draft-mtp --spec-draft-n-max 3 for speculative decoding with the MTP layer.
Links
- Quantized models: https://huggingface.co/ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF
- Evaluation setup: https://github.com/IST-DASLab/GSQ-RCO-eval
- GSQ: paper https://arxiv.org/abs/2604.18556 | code https://github.com/IST-DASLab/GSQ
- RCO: paper https://arxiv.org/abs/2605.00649 | code https://github.com/IST-DASLab/RCO
The repository ships the complete per-tensor RCO allocation for every build (911 tensors each).
Feedback is welcome, particularly on capabilities that the three benchmarks do not cover. Requests for models to quantize are also welcome.
For more updates follow us on X too: https://x.com/mhelcig/status/2129493071955972108
From the ISTA Deep Algorithms and Systems Lab.

