Downloads · 30 days
15
5% of all-time downloads
aquaman164/GLM-5.2-VQ-Arith
GLM-5.2-VQ-Arith is a text generation model from aquaman164. Use it when you need the model to write or continue text. The card lists the license as mit.
A ~180 GiB quantization of GLM-5.2 (744B Chinese-native reasoning MoE, MIT) that keeps Japanese/English/Chinese thinking-mode quality at ~1.86 bit/weight, using vector quantization with GPTQ error compensation (AQLM-s…
Downloads · 30 days
15
5% of all-time downloads
All-time downloads
288
Public
Parameters
52.2B
193 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors193 GB · 100%
How the weights are stored.
I3244.2B · 85%
From the Hugging Face model README
A ~180 GiB quantization of GLM-5.2 (744B Chinese-native reasoning MoE, MIT) that keeps Japanese/English/Chinese thinking-mode quality at ~1.86 bit/weight, using vector quantization with GPTQ error compensation (AQLM-style) instead of scalar rounding.
Runs on 2× RTX PRO 6000 (sm_120 Blackwell, ~95 GiB each) via vLLM.
At the same size, scalar mixed-bit rounding loses too much at 1–2 bit. Replacing the scalar codes with a shared vector codebook + per-row error compensation recovers most of it (the two together are super-additive — neither alone is enough):
| Metric | Scalar mixed-bit (same ~180 GiB) | This (VQ + compensation) |
|---|---|---|
| Calibration KL (fake-quant, iso-size) | baseline | −47 % |
| Greedy arithmetic eval (JA/EN/ZH, terminate + correct) | 21/22 | 22/22 |
| 1-bit experts | collapse (KL ≈ 13) | survive (KL ≈ 0.42) |
The −47 % KL is a fake-quant, iso-size comparison; the deployable end-to-end signal is the greedy eval (multi-digit multiplication and word problems in all three languages, including held-out items not in calibration).
This is not a plug-and-play GGUF — it needs a matching sm_120 stack:
GlmMoeDsaForCausalLM + sm_120 kernels (reference: jasl/vllm PR-41834 sm12x preview).glm-serving-v1 — see example/glm-5.2/ for the launcher and full instructions.GLM_CKPT=/path/to/this/model bash start_glm_api_vq.sh # OpenAI API :8001, served as "glm-5.2"
MixedVQMoEMethod is auto-selected from the format:"vq" markers in quantization_config.
Mixed 1/2/3-bit per expert (≈ 15.8k @1-bit / 34.0k @2-bit / 7.8k @3-bit projections), allocated by activation-frequency-aware AutoBit (arithmetic-routing tuned), then re-encoded to VQ codes + a shared codebook per bit-width. Non-expert "spine" stays scalar 4-bit.
chat_template_kwargs={"enable_thinking": false} for direct answers).