[!IMPORTANT] This is an oQh checkpoint. It needs oMLX 0.8.0 or later with oQh support. Earlier oMLX versions cannot load it.
This model was quantized using oQ mixed-precision quantization in the oQh format (jundot/omlx#5317).
A mixed-precision MLX checkpoint of zai-org/GLM-5.3-Flash, the first natively multimodal model in the GLM-5 series, with 320B total parameters and 18B active. It combines sparse and linear attention with Manifold-Constrained Hyper-Connections. It includes the language model, the vision encoder and the multi-token prediction (MTP) head.
The effective average is 2.675 bits/weight for the language backbone and 2.744 bits/weight for the complete checkpoint.
oQe already gives high quality and is the recommended setting in oMLX. It uses the standard MLX format, so any MLX engine that supports the model can run it. oQh is built for oMLX to push quality further at low bits.
oQh rotates the expert weights with a Hadamard transform before quantizing them. Rotated weights need fewer scales, and oQh spends the saved space on extra bits where they help most. The file stays the same size as oQe.
KL divergence from the original FP8 model, lower is better. oQe and oQh at the same level are the same size. FLORES+ and Aya are prompts in 7 languages, and code is Python source. The sizes below leave out the MTP head.
| Level | Size | FLORES+ KL, oQe -> oQh | Aya KL, oQe -> oQh | Code KL, oQe -> oQh |
|---|---|---|---|---|
| oQ2 | 98.6 GiB | 0.34 -> 0.24 (-28%) | 0.80 -> 0.69 (-14%) | 0.25 -> 0.19 (-24%) |
| oQ3 | 134.1 GiB | 0.13 -> 0.11 (-15%) | 0.41 -> 0.37 (-10%) | 0.10 -> 0.11 (+5%) |
| oQ4 | 169.4 GiB | 0.069 -> 0.070 (+2%) | 0.25 -> 0.25 (-1%) | 0.068 -> 0.057 (-16%) |
The gain is largest at oQ2. At oQ3 oQh is 5% above oQe on code, and at oQ4 FLORES+ and Aya are on par while code is 16% lower.
oQ2h starts from the oQ2 budget and spends the bytes saved on per-group scales on one more bit for the narrowest and most sensitive routed tensors. Attention, the shared experts, the token embedding and the output head stay in 8-bit affine groups, the routed experts of the MTP head in 4-bit affine groups, and the vision encoder in BF16.
| Storage format | Logical weights | Share of total | Tensor storage | Effective bits/weight |
|---|---|---|---|---|
| oQh 2-bit, row scale | 154.619B | 48.119% | 36.071 GiB | 2.00 |
| oQh 3-bit, row scale | 149.787B | 46.616% | 52.427 GiB | 3.01 |
| Affine 8-bit, group 64 | 8.976B | 2.793% | 8.882 GiB | 8.50 |
| Affine 4-bit, group 64 | 7.248B | 2.256% | 3.797 GiB | 4.50 |
| BF16 | 0.607B | 0.189% | 1.131 GiB | 16.00 |
| FP32 | 0.086B | 0.027% | 0.322 GiB | 32.00 |
| Total | 321.323B | 100% | 102.630 GiB | 2.744 |
| Component | Logical weights | Storage |
|---|---|---|
| Language backbone | 313.327B | 104.762 GB / 97.567 GiB |
| Vision encoder | 0.564B | 1.127 GB / 1.050 GiB |
| MTP head | 7.433B | 4.309 GB / 4.013 GiB |
| Total | 321.323B | 110.198 GB / 102.630 GiB |
MIT License, following the source model. See LICENSE.
model-00010-of-00018.safetensors 7.0 GBmodel-00018-of-00018.safetensors 7.0 GBmodel-00006-of-00018.safetensors 7.0 GBmodel-00004-of-00018.safetensors 7.0 GBmodel-00007-of-00018.safetensors 6.4 GBmodel-00012-of-00018.safetensors 6.4 GBmodel-00013-of-00018.safetensors 6.4 GBmodel-00017-of-00018.safetensors 6.4 GBmodel-00015-of-00018.safetensors 6.4 GBmodel-00016-of-00018.safetensors 6.4 GBmodel-00014-of-00018.safetensors 6.4 GBmodel-00005-of-00018.safetensors 6.4 GBmodel-00002-of-00018.safetensors 6.2 GBmodel-00009-of-00018.safetensors 5.4 GBmodel-00008-of-00018.safetensors 5.4 GBmodel-00011-of-00018.safetensors 5.4 GBmodel-00001-of-00018.safetensors 5.0 GBmodel-00003-of-00018.safetensors 3.9 GBzai-org/GLM-5.3-Flash