vllm-ascend/recipes
~/browse/THUDM

GLM-5.2

GLM-5.2 is a Mixture-of-Experts (MoE) model from Zhipu AI with 753B total parameters, targeting complex systems engineering and long-horizon agentic tasks. It supports MTP speculative decoding with up to 5 speculative tokens, async scheduling, and PD disaggregation on Ascend NPUs.

MoE753B131K ctxtextvLLM 0.22.1rc

Multi-node deployment on Atlas 800 A2/A3 with W8A8 and W4A8C8 precision

Added: 2026-07-13·[ edit ]

Preparation

GLM-5.2 is a Mixture-of-Experts (MoE) model from Zhipu AI (THUDM) with 753B total parameters, targeting complex systems engineering and long-horizon agentic tasks.

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.

Completions API:

curl http://localhost:<port>/v1/completions \
    -H "Content-Type: application/json" \
    -d '{
        "model": "glm-52",
        "prompt": "Give me a short introduction to large language models.",
        "max_tokens": 256,
        "temperature": 0
    }'
- URL: Replace localhost with your server IP and use the port from the vllm serve command.
- model: Must match the --served-model-name value from the vllm serve command (e.g., glm-52).

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-choice

Expected result: HTTP 200 with a JSON response containing the choices field with generated text.

More Info

Accuracy

Using AISBench

1. Refer to Using AISBench for details.

2. After execution, you can get the result.

Using Language Model Evaluation Harness

Not tested yet.

Benchmark

Recommended Configurations

The recommended configurations are available in the Deployment Guide options above. Choose NPU type, quantization, sequence, and scenario to view the corresponding command.

Note: These 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.