Views
No views yet
compressed-tensors format).| Benchmark | This model (W4A16) | Reference (FP8) |
|---|---|---|
| GSM8K (n=200), exact-match | 96.5% | 94.5% |
| MMLU (n=200), accuracy | 86.5% | 80.0% |
| Base model | zai-org/GLM-5.2 |
| Architecture | GlmMoeDsaForCausalLM (MoE, 78 layers, 256 routed + 1 shared expert, top-8) |
| Weight precision | INT4, group size 128, symmetric |
| Activation precision | BF16 |
| Format | compressed-tensors (pack-quantized) |
| Checkpoint size | 388 GB (8 shards) |
| Context length | up to 1,048,576 tokens |
1pip install "vllm>=0.24.0"
2
3# A100 (Ampere) note: use BF16 compute paths and skip Hopper-only kernels.
4export VLLM_USE_FLASHINFER_SAMPLER=0 # avoid FlashInfer sampler JIT on some CUDA toolkits
5export VLLM_USE_DEEP_GEMM=0 # DeepGEMM (FP8 block-scale) is not needed on A100
6
7vllm serve lowbitcoffee/GLM-5.2-W4A16 \
8 --tensor-parallel-size 8 \
9 --dtype bfloat16 \
10 --max-model-len 32768 \
11 --gpu-memory-utilization 0.92 \
12 --served-model-name glm-5.2-w4a16 \
13 --trust-remote-code--quantization
flag is required. Increase --max-model-len toward the model's 1M limit only if
you have KV-cache headroom; lower it to raise concurrency.On 8× A100 40 GB, the weights alone (388 GB) exceed the 320 GB of aggregate VRAM — use two nodes (--tensor-parallel-size 16) or the 80 GB SKU.
1curl http://localhost:8000/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "glm-5.2-w4a16",
5 "messages": [{"role": "user", "content": "What is 84 * 3 / 2?"}],
6 "max_tokens": 1024,
7 "temperature": 0
8 }'1from openai import OpenAI
2
3client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
4resp = client.chat.completions.create(
5 model="glm-5.2-w4a16",
6 messages=[{"role": "user", "content": "Explain MoE routing in two sentences."}],
7 max_tokens=1024,
8 temperature=0.6,
9)
10print(resp.choices[0].message.content)<think>…</think> block
before the final answer. Strip it client-side, or configure a reasoning parser
in your serving stack if you want the fields separated.zai-org/GLM-5.2.