Skip to main content

Introduction

GLM-5.3-Flash is a natively multimodal Mixture-of-Experts model in the GLM series, built around a hybrid attention architecture: 320B total parameters with 18B active. Its text layers combine MLA attention, DSA sparse attention, and KDA linear attention, and a 24-layer vision encoder handles image and video input. It includes a native MTP draft layer for speculative decoding. This document demonstrates the deployment of GLM-5.3-Flash on Ascend NPUs using SGLang v0.5.20 or later, including single-node prefill-decode mixed deployment, prefill-decode disaggregation, feature configuration, and performance tuning. The examples use ModelSlim W8A8 weights on A3 Series and W8A8_MXFP8 weights on 950PR/DT Series.

Supported features

The values in the Example usage column are for illustration only. Adjust them according to your hardware, deployment mode, and workload. For parameter details, see Parameter Reference.
For feature compatibility and conflicts, 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.

Model weights

Before downloading model weights, check the model size to reserve enough disk space. For PD disaggregation, download the weights to a shared directory accessible to both nodes. The checkpoint directory must contain the model configuration, tokenizer files, quantized weights, quant_model_description.json, and the MTP weights required by NEXTN. Set MODEL_PATH to this directory inside the container.
A3 single-node deployment uses one full A3 Series node: eight cards and 16 dies, with --tp-size 16. 950PR/DT Series single-node deployment uses eight NPU devices, with --tp-size 8. Each PD disaggregation configuration uses two nodes of the same platform: one for prefill and one for decode.
For hardware specifications and terminology, see Ascend NPU Reference — Hardware.

Installation

Reserve enough disk space for both the container image and model weights before pulling the image. The Docker image requires at least 30GB of free space.
Use a SGLang image with the runtime components required by your target platform and deployment mode. Update NAME and MODEL_DIR below, then start the container; IMAGE defaults to the validated image for your platform. The commands require Ascend Docker Runtime on the host; each selects all NPUs of the node with ASCEND_VISIBLE_DEVICES. For image tags, see Docker image versions.
Command
  • The examples mount the host checkpoint directory at /models/GLM-5.3-Flash. Set MODEL_PATH=/models/GLM-5.3-Flash in the launch scripts when using this mount.
  • Give each container its own NAME. For PD disaggregation, start a container on both nodes.

Online service deployment

Single-node deployment

Prefill and decode run in the same instance. Select the script for your platform and run it inside the container.
Use the ModelSlim W8A8 checkpoint on one A3 Series node, with TP16. Replace MODEL_PATH with the checkpoint directory inside the container.

Prefill-decode disaggregation deployment

PD disaggregation places prefill and decode on separate nodes. Replace the model path, node IP addresses, and network interface names, then run the same script on both nodes. The script selects its role by matching the local IP address. Ensure the worker HTTP ports, prefill bootstrap port, and MemFabric store port are reachable between the nodes.
Use W8A8 weights on two A3 Series nodes. The prefill instance uses TP4 / PP4 / DP4; the decode instance uses TP16 / PP1 / DP16 and NEXTN speculative decoding with three steps and four draft tokens. Run the CPU tuning commands with the required host privileges.
Launch the router after the prefill and decode services are ready. Use the same node IP addresses as in the worker scripts. Client requests go to the router on port 8000; the worker ports are 8810 and 8811. The router reads each worker’s role and the prefill bootstrap port (8998) from the workers themselves.

Functional verification

After the service starts, send a prompt to verify inference. For mixed deployment, run the command inside the container with HOST=127.0.0.1 and PORT=8810. For PD disaggregation, use the router IP address and PORT=8000.
Check for an HTTP 200 response with the generated answer; the response text should name Paris. Once the server prints The server is fired up and ready to roll!, it is ready to accept requests. For Health Check, Generate, Chat Completions, and port usage examples, see Testing the Service.

Accuracy evaluation

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

Performance

For benchmark methods and metric definitions, see Performance Testing on Ascend NPU. For a generated shared-prefix benchmark workload, use approximately 128K input tokens and 1K output tokens. For mixed deployment, use the worker host and port 8810. For PD disaggregation, use the router host and port 8000. Set both --model and --tokenizer to the checkpoint path and use --served-model-name GLM-5.3-Flash.

Best practices

Best practice configuration reference

GLM-5.3-Flash does not have a standalone best practice page yet. The Online service deployment section above provides complete scripts for single-node mixed deployment and PD disaggregation. For the full catalog of optimization features and their parameter and compatibility details, see Optimization on Ascend NPU.

Performance tuning

For the feature overview, see Supported features. For tuning parameters and feature compatibility, see Optimization on Ascend NPU.

FAQ

For environment, installation, and general parameter issues, see Ascend NPU FAQ.