Skip to main content

Introduction

GLM-5.3 is a large-scale Mixture-of-Experts (MoE) language model in the GLM (General Language Model) series, developed by Zhipu AI. It uses DeepSeek Sparse Attention (DSA), supports multi-token prediction (MTP), and is designed for long-context text generation. GLM-5.3 is distinct from the separately released GLM-5.3-Flash model, which uses a hybrid sparse/linear-attention architecture. This document demonstrates the deployment of GLM-5.3 on Ascend NPUs using SGLang, including single-node deployment, multi-node co-located (mixed) deployment, prefill-decode disaggregation, feature configuration, and performance optimization. The examples use a ModelSlim W8A8 GLM-5.3-w8a8 checkpoint and a CANN 9.2.0 runtime.

Supported features

The values in the Example usage column reflect the deployment scenarios described below and are not universal defaults. Some flags require a specific SGLang version or model checkpoint. For parameter details, see Parameter Reference.
For feature compatibility and conflict information between features, see Feature Compatibility.

Prerequisites

Environment

Before following this tutorial, complete the environment setup in the documents below:
  • Ascend NPU Quickstart — the fastest way to get started. It walks you through launching the official container image, starting the SGLang server, and sending a test request. Recommended if you are new to SGLang on Ascend.
  • SGLang Installation with NPU Support — the full installation guide. It covers the component version mapping (CANN, TorchNPU, Triton, kernels, etc.), building from source or from a Dockerfile, and recommended system settings (CPU power scheme, NUMA, swap). Use it when you need to install or customize the environment instead of using the official image.
The mixed and PD disaggregation scripts below assume the CANN 9.2.0 environment from the image, including the ATB and customized operator libraries, and require working inter-node HCCL/Gloo connectivity. Ensure that all participating nodes use compatible software versions and can access the model weights. The PD topology additionally requires the configured MemFabric components.

Model weights

Before downloading model weights, check the model size to reserve enough disk space. For multi-node deployment, download the weights to a shared directory accessible to all nodes or distribute an identical checkpoint to the same local path on every node.
  • GLM-5.3-BF16 (BF16, approximately 1.51 TB).
  • GLM-5.3-w8a8 (W8A8 ModelSlim-quantized checkpoint, 764.24GB, used in the scripts below).
The deployment examples below use a W8A8 checkpoint with --quantization modelslim. Make sure that the checkpoint contains the required MTP weights before enabling NEXTN speculative decoding.
For hardware specifications (memory per device and devices per node), see Ascend NPU Reference — Hardware.

Installation

Ensure sufficient disk space before pulling images. The Docker image requires at least 30GB of free space.
The dependencies required for the NPU runtime environment have been integrated into a Docker image and uploaded to the online platform. You can directly pull it. Both stable releases and daily builds are available. CANN 9.2.0 has no stable release yet, so the command below uses the validated build tag cann9.2.0-a3-B060. For details, see Docker image versions. The command requires Ascend Docker Runtime on the host; it selects all NPUs of the node with ASCEND_VISIBLE_DEVICES.
Command
  • If the model weights have already been downloaded to a shared directory, use -v to mount the model path into the container, for example: -v /path/to/models:/models.

Online service deployment

Single-node deployment

The following single-node example is provided as a reference configuration.

Multi-node deployment

For co-located (mixed) serving across two A3 Series nodes, both nodes participate in a single GLM-5.3 inference instance. The following script uses TP=32, DP=16, DeepEP auto, and NEXTN speculative decoding. Modify the node IP addresses, model path, and network interface, then run the same script on both nodes. The two nodes must use the same compatible runtime and be able to communicate with rank 0 via the distributed initialization address. In this script, the mixed-serving HTTP port is 6688 (not 8000).

Prefill-decode disaggregation deployment

PD disaggregation splits the prefill and decode stages onto separate node groups, reducing interference between long-prompt processing and autoregressive generation. This configuration uses four A3 Series nodes:
  • Prefill group: 2 nodes, TP=8, PP=4, DP=1, and prefill context parallelism CP=8. It runs DeepEP in normal mode and disables NPU graph capture.
  • Decode group: 2 nodes, TP=32, DP=32, EP=32. It runs DeepEP in low_latency mode with decode graph capture and NEXTN speculative decoding.
Run the following same script on all four nodes. The script selects the role and node rank by matching a configured IP address against the local network addresses. Update the model path, the two prefill and two decode IP addresses, and the HCCL/Gloo interface before running it. The nodes must reach the prefill master for MemFabric bootstrap and should be started before the router.
Launch the router after the prefill and decode services are ready. The router example below uses the prefill/decode group master addresses.
The prefill and decode groups use separate --dist-init-addr endpoints. The ASCEND_MF_STORE_URL must point to the prefill rank-0 node. The --max-prefill-tokens 180000 and --context-length 180000 settings describe this example configuration, not the model’s maximum supported context. For troubleshooting, turn off optional overlap or multi-stream settings one at a time to isolate compatibility issues.

Functional verification

After the service is started, invoke the model by sending a prompt. For PD disaggregation, use the router address and port 6688; for single-node co-located serving, use port 8000, and for the two-node mixed deployment, use port 6688.
Expected result: an HTTP 200 response containing the generated answer (for example, “Paris”). Once the server prints The server is fired up and ready to roll! in the logs, it is ready to accept requests. For additional testing examples (Health Check, Generate, Chat Completions, and port usage), see Testing the Service.

Accuracy evaluation

For accuracy evaluation methods and datasets, see Accuracy Evaluation on Ascend NPU.

Performance

For performance data and benchmark commands, see Performance Testing on Ascend NPU.

Best practices

Best practice configuration reference

GLM-5.3 has no standalone best practice page yet. The Online service deployment section above provides the two-node mixed and four-node PD disaggregation configurations; the single-node example remains a reference configuration and has not been independently verified on hardware. For this PD disaggregation configuration, prefill prioritizes long sequences using pipeline/context parallelism and DeepEP normal, while decode prioritizes low latency using DP/EP, DeepEP low_latency, NPU multi-stream, and NEXTN. Tune --mem-fraction-static, graph capture batch sizes, and concurrency based on observed HBM usage, TTFT, TPOT, and request throughput. Check that the quantized checkpoint and MTP settings are compatible. For the full catalog of optimization features and their parameter and compatibility details, see Optimization on Ascend NPU.

Performance tuning

For supported features, see Supported features. For detailed optimization guidance, see Optimization on Ascend NPU.

FAQ

For common environment, installation, and parameter issues, refer to the Ascend NPU FAQ.