GLM-5
GLM-5 and GLM-5.1 are Mixture-of-Experts (MoE) models from Zhipu AI, targeting complex systems engineering and long-horizon agentic tasks. GLM-5 features 744B total parameters, with support for MTP speculative decoding, expert parallelism, and PD disaggregation on Ascend NPUs.
Multi-node deployment on Atlas 800 A3 (128G × 8) with W4A8/W8A8 precision
Preparation
GLM-5 and GLM-5.1 are Mixture-of-Experts (MoE) models from Zhipu AI (THUDM), targeting complex systems engineering and long-horizon agentic tasks. With 744B total parameters.
Deployment Guide
Select NPU type and deployment options to view the corresponding deployment instructions.
Verification
After the service is started, the model can be invoked by sending a prompt.
Chat Completions API:
curl http://localhost:<port>/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5",
"messages": [
{"role": "user", "content": "Give me a short introduction to large language models."}
],
"max_tokens": 256,
"temperature": 0
}'- URL: Replacelocalhostwith your server IP and use the port from thevllm servecommand.
-model: Must match the--served-model-namevalue from thevllm servecommand (e.g.,glm-5).
Function Calling:
To enable function calling, add the following flags to the vllm serve command:
--tool-call-parser glm47 --reasoning-parser glm45 --enable-auto-tool-choiceExpected result: HTTP 200 with a JSON response containing the choices field with generated text.
More Info
Accuracy
Benchmark
Recommended Configurations
Note: The following configurations are validated in specific test environments and are for reference only. The optimal configuration depends on factors such as maximum input/output length, prefix cache hit rate, precision requirements, and deployment machine ratios.
Table 1: Scenario Overview
| Scenario | Deployment Mode | *Total NPUs | Weight Version | Key Considerations |
|---|---|---|---|---|
| High Throughput | Single-Node (A3) | 16 (A3) | W4A8 | dp1 tp16 with expert parallel for maximum throughput |
| Low Latency | Single-Node (A3) | 16 (A3) | W4A8 | dp1 tp16 with expert parallel disabled for lower latency |
| Long Context | Multi-Node (A3) | 32 (A3) | W4A8 | 2 nodes, dp2 tp16 for extended context |
| PD Separation | Multi-Node (A3) | 32 (A3) | W4A8 | 1P1D deployment for production workloads |
*Total NPUs indicates the total number of NPU chips used across all nodes.
Table 2: PD Separation Configuration
| Scenario | P-node Config | D-node Config | Max Model Len | MTP Tokens |
|---|---|---|---|---|
| High Throughput | dp=4, tp=8 | dp=8, tp=4 | P:133120, D:150000 | 3 |
| Low Latency | dp=4, tp=8 | dp=4, tp=8 | P:133120, D:150000 | 3 |
Table 3: GLM-5.1 Feature Matrix (A3, 32-card PD Disaggregation)
| Scenario | Topology / Config | Cards | P Cards | D Cards | Sequence Length | Prefix Cache | Card TPOT | Avg Input | Avg Output |
|---|---|---|---|---|---|---|---|---|---|
| High Throughput | PD disaggregation 1P1D | 32 | 16 | 16 | 3.5k/1.5k | 0 | 50 | 3500 | 1500 |
| High Throughput | PD disaggregation 1P1D | 32 | 16 | 16 | 16k/1k | 0 | 50 | 16384 | 1024 |
| High Throughput | PD disaggregation 1P1D | 32 | 16 | 16 | 64k/1k | 0 | 50 | 65536 | 1024 |
| High Throughput | PD disaggregation 1P1D | 32 | 16 | 16 | 64k/1k | 50 | 50 | 65536 | 1024 |
| High Throughput | PD disaggregation 1P1D | 32 | 16 | 16 | 64k/1k | 90 | 50 | 65536 | 1024 |
| High Throughput | PD disaggregation 1P1D | 32 | 16 | 16 | 128k/1k | 50 | 50 | 131072 | 1024 |
| High Throughput | PD disaggregation 1P1D | 32 | 16 | 16 | 128k/1k | 90 | 50 | 131072 | 1024 |
| High Throughput | PD disaggregation 1P1D | 32 | 16 | 16 | 190k/1k | 50 | 50 | 194560 | 1024 |
| High Throughput | PD disaggregation 1P1D | 32 | 16 | 16 | 190k/1k | 90 | 50 | 194560 | 1024 |
| Low Latency | PD disaggregation 1P1D | 32 | 16 | 16 | 3.5k/1.5k | 0 | 20 | 3500 | 1500 |
| Low Latency | C8 operator disabled | 32 | - | - | 3.5k/1.5k | 0 | 20 | - | - |
| Low Latency | New config | 32 | - | - | 3.5k/1.5k | 0 | 20 | - | - |
| Low Latency | PD disaggregation 1P1D | 32 | 16 | 16 | 16k/1k | 0 | 20 | 16384 | 1024 |
| Low Latency | C8 operator disabled | 32 | - | - | 16k/1k | 0 | 20 | - | - |
| Low Latency | New config | 32 | - | - | 16k/1k | 0 | 20 | - | - |
| Low Latency | PD disaggregation 1P1D | 32 | 16 | 16 | 64k/1k | 0 | 20 | 65536 | 1024 |
| Low Latency | PD disaggregation 1P1D | 32 | 16 | 16 | 64k/1k | 50 | 20 | 65536 | 1024 |
| Low Latency | PD disaggregation 1P1D | 32 | 16 | 16 | 64k/1k | 90 | 20 | 65536 | 1024 |
| Low Latency | PD disaggregation 1P1D | 32 | 16 | 16 | 128k/1k | 50 | 20 | 131072 | 1024 |
| Low Latency | PD disaggregation 1P1D | 32 | 16 | 16 | 128k/1k | 90 | 20 | 131072 | 1024 |
| Low Latency | PD disaggregation 1P1D | 32 | 16 | 16 | 190k/1k | 50 | 20 | 194560 | 1024 |
| Low Latency | PD disaggregation 1P1D | 32 | 16 | 16 | 190k/1k | 90 | 20 | 194560 | 1024 |
| Longest Sequence | PD disaggregation 1P1D | 32 | 16 | 16 | Longest sequence | 99 | 20 | - | - |
Table 4: GLM-5.1 Feature Matrix (A3, 16-card Two-machine Co-location)
| Scenario | Topology / Config | Cards | P Cards | D Cards | Sequence Length | Prefix Cache | Card TPOT | Avg Input | Avg Output |
|---|---|---|---|---|---|---|---|---|---|
| High Throughput | Two-machine co-location, 16 cards | 16 | - | - | 3.5k/1.5k | 0 | 50 | 3500 | 1500 |
| High Throughput | Two-machine co-location, 16 cards | 16 | - | - | 16k/1k | 0 | 50 | 16384 | 1024 |
| High Throughput | Two-machine co-location, 16 cards | 16 | - | - | 64k/1k | 0 | 50 | 65536 | 1024 |
| High Throughput | Two-machine co-location, 16 cards | 16 | - | - | 64k/1k | 50 | 50 | 65536 | 1024 |
| High Throughput | Two-machine co-location, 16 cards | 16 | - | - | 64k/1k | 90 | 50 | 65536 | 1024 |
| High Throughput | Two-machine co-location, 16 cards | 16 | - | - | 128k/1k | 50 | 50 | 131072 | 1024 |
| High Throughput | Two-machine co-location, 16 cards | 16 | - | - | 128k/1k | 90 | 50 | 131072 | 1024 |
| High Throughput | Two-machine co-location, 16 cards | 16 | - | - | 190k/1k | 50 | 50 | - | - |
| High Throughput | Two-machine co-location, 16 cards | 16 | - | - | 190k/1k | 90 | 50 | - | - |
| Low Latency | Two-machine co-location, 16 cards | 16 | - | - | 3.5k/1.5k | 0 | 20 | 3500 | 1500 |
| Low Latency | Two-machine co-location, 16 cards | 16 | - | - | 16k/1k | 0 | 20 | - | - |
| Low Latency | Two-machine co-location, 16 cards | 16 | - | - | 64k/1k | 0 | 20 | - | - |
| Low Latency | Two-machine co-location, 16 cards | 16 | - | - | 64k/1k | 50 | 20 | 65536 | 1024 |
| Low Latency | Two-machine co-location, 16 cards | 16 | - | - | 64k/1k | 90 | 20 | 65536 | 1024 |
| Low Latency | Two-machine co-location, 16 cards | 16 | - | - | 128k/1k | 50 | 20 | 131072 | 1024 |
| Low Latency | Two-machine co-location, 16 cards | 16 | - | - | 128k/1k | 90 | 20 | 131072 | 1024 |
| Low Latency | Two-machine co-location, 16 cards | 16 | - | - | 190k/1k | 50 | 20 | - | - |
| Low Latency | Two-machine co-location, 16 cards | 16 | - | - | 190k/1k | 90 | 20 | - | - |
| Longest Sequence | Two-machine co-location, 16 cards | 16 | - | - | 198k/1 | 99 | 20 | - | - |
Prefix Cacheindicates the prefix cache hit rate.Card TPOTis the per-card TPOT target.-means the original feature table did not provide that field.