GLM-5.2
High-throughput serving benchmark for GLM-5.2 on AMD Instinct MI325X.
vLLM (ROCm)8× AMD Instinct MI325XFP8 KV cacheConcurrency 512
Get this model on Hugging Face+26.8%output tokens / sec
21.1%estimated cost savings
−52.2%mean time to first token
−77.9%median time to first token
Results
Baseline vs. Nova optimized
Baseline1,019
Nova optimized1,292
Baseline51.8 s
Nova optimized11.4 s
| Metric | Baseline | Optimized | Change |
|---|---|---|---|
| Throughput | |||
| Output tokens / sec | 1,019.0 | 1,292.2 | +26.8% |
| Latency (ms) | |||
| Time to first token, mean | 49,744 | 23,774 | −52.2% |
| Time to first token, median | 51,841 | 11,448 | −77.9% |
| Time to first token, p99 | 104,700 | 77,224 | −26.2% |
| Time per output token, mean | 269.7 | 294.2 | +9.1% |
| Time per output token, p99 | 524.6 | 744.4 | +41.9% |
| Inter-token latency, mean | 258.1 | 272.2 | +5.5% |
| Inter-token latency, p99 | 783.9 | 1,079.5 | +37.7% |
| End-to-end, median | 110,457 | 85,579 | −22.5% |
| Run | |||
| Benchmark duration (s) | 254.8 | 200.9 | −21.2% |
| Requests waiting, peak | 491 | 478 | −2.6% |
| Requests waiting, average | 169.5 | 95.7 | −43.5% |
| KV cache usage, peak | 100% | 100% | — |
What it means for cost
Same hardware, 1.27× the output.
Serve the same tokens with 21.1% less GPU time.
21.1%less GPU time per token
≈ $45.5Kestimated yearly savings per node
Based on 8× MI325X GPUs at about $3.08/GPU-hour, running 24/7. Actual savings vary by usage and pricing.
Setup
How we tested
Environment
- Hardware
- 8× AMD Instinct MI325X 256GB, single node
- Engine
- vLLM v0.25.1 on ROCm 7.2.3
- Precision
- FP8 (e4m3) KV cache
- Parallelism
- Tensor parallel 8, pipeline parallel 1
- Features
- AITER MLA sparse decode, FA MLA prefill, prefix caching, async scheduling, CUDA graphs
Workload
- Tool
- vllm bench serve
- Dataset
- Synthetic, random prompts
- Input length
- 409–3,686 tokens (avg. 2,048)
- Output length
- 51–460 tokens (avg. 256)
- Requests
- 1,000 at concurrency 512
Model
- Architecture
- Mixture-of-experts causal LM
- Attention
- MLA with dynamic sparse attention
- Context
- Up to 65,536 tokens
- Workload type
- Prefill-dominated, compute-bound
Optimizations
What Neural Nova optimized
FP8 KV cache
e4m3 cache fits more requests in GPU memory.
Tuned batching
Up to 256 sequences and 16,384 batched tokens per step.
Long-prefill threshold
Prompts over 4,096 tokens are split so they don't block others.
Prefix caching
Shared prompt prefixes are computed once.
Async scheduling + CUDA graphs
Scheduling overlaps compute; full and piecewise graphs, capture size 256.
Memory headroom
GPU memory set to 90% to leave room for graph capture.
Reproduce it
View full scripts on Hugging FaceDocker container and serving commands
Base Docker
Refer to Hugging Face Dockerfile to buildBaseline
export VLLM_ROCM_USE_AITER=1
vllm serve zai-org/GLM-5.2 \
--tensor-parallel-size 8 \
--trust-remote-code \
--gpu-memory-utilization 0.95 \
--max-model-len 65536Optimized
export VLLM_ROCM_USE_AITER=1
export VLLM_WORKER_MULTIPROC_METHOD=spawn
vllm serve zai-org/GLM-5.2 \
--host 0.0.0.0 --port 8000 \
--tensor-parallel-size 8 \
--pipeline-parallel-size 1 \
--distributed-executor-backend mp \
--max-model-len 65536 \
--gpu-memory-utilization 0.90 \
--kv-cache-dtype fp8_e4m3 \
--max-num-seqs 256 \
--max-num-batched-tokens 16384 \
--long-prefill-token-threshold 4096 \
--enable-prefix-caching \
--async-scheduling \
--compilation-config '{"cudagraph_mode": "FULL_AND_PIECEWISE", "max_cudagraph_capture_size": 256}' \
--trust-remote-code