[!WARNING] This model needs Trust Remote Code. Its tokenizer and chat rendering run Python code shipped in this repository, so turn on Trust Remote Code for this model before loading it.
| Loading mode | Weights in memory |
|---|---|
| N-gram table in memory (default) | 35.2 GB / 32.8 GiB |
| SSD N-gram Offload on | 22.4 GB / 20.9 GiB |
The 12.8 GB n-gram table can stay on SSD with the SSD N-gram Offload model setting in oMLX, which reads only the rows each token needs. KV cache and runtime buffers come on top of these numbers.
This model was quantized using oQ (oMLX v0.8.5) mixed-precision quantization with improved oQe (jundot/omlx#4930) and oQe rounding refinement (jundot/omlx#5292).
A mixed-precision MLX checkpoint of Qwen/Qwen4-35B-A3B, a mixture-of-experts vision-language model with 35B parameters and 3B activated, plus a 20B n-gram embedding and a 2B MTP module, that pairs Gated DeltaNet with Qwen Sparse Attention (QSA) and uses Gated Residual streams. It includes the language model, the n-gram embedding, the vision encoder and the multi-token prediction (MTP) head.
Quantization scales and biases and the remaining unquantized tensors, including the vision encoder, are stored in BF16.
The effective average is 4.797 bits/weight for the language backbone and 4.958 bits/weight for the complete checkpoint.
oQ4e allocates bits by measured layer sensitivity, then rounds each group with an importance matrix (1024 samples x 512 tokens) and a weighted least-squares refit of its scale and bias. The n-gram table is quantized by its own policy, at no less than 4 bits, outside the bit budget of the resident weights.
| Storage format | Logical weights | Share of total | Tensor storage | Effective bits/weight |
|---|---|---|---|---|
| Affine 4-bit, group 64 | 33.018B | 58.106% | 17.297 GiB | 4.50 |
| Affine 6-bit, group 64 | 0.509B | 0.895% | 0.385 GiB | 6.50 |
| Affine 8-bit, group 128 | 0.129B | 0.227% | 0.124 GiB | 8.25 |
| Affine 8-bit, group 64 | 2.218B | 3.903% | 2.195 GiB | 8.50 |
| I64 | 0.000B | 0.000% | 0.000 GiB | 64.00 |
| BF16 | 0.470B | 0.827% | 0.875 GiB | 16.00 |
| N-gram affine 4-bit, group 32 | 20.480B | 36.042% | 11.921 GiB | 5.00 |
| Total | 56.823B | 100% | 32.797 GiB | 4.958 |
| Component | Logical weights | Storage |
|---|---|---|
| Language backbone | 35.038B | 21.012 GB / 19.569 GiB |
| N-gram embedding | 20.480B | 12.800 GB / 11.921 GiB |
| Vision encoder | 0.447B | 0.893 GB / 0.832 GiB |
| MTP head | 0.859B | 0.510 GB / 0.475 GiB |
| Total | 56.823B | 35.215 GB / 32.797 GiB |
Apache 2.0, following the source model.
model-00006-of-00007.safetensors 4.8 GiBmodel-00005-of-00007.safetensors 4.8 GiBmodel-00004-of-00007.safetensors 4.8 GiBmodel-00003-of-00007.safetensors 4.7 GiBmodel-00002-of-00007.safetensors 4.7 GiBmodel-00001-of-00007.safetensors 4.7 GiBmodel-00007-of-00007.safetensors 4.5 GiBQwen/Qwen4-35B-A3B