Qwen3.5-27B & Qwen3.6-27B¶
1 Introduction¶
Note
The "PD Separation Deployment" mentioned in this document is provided only as an example/reference design to demonstrate the basic process of deploying Prefill and Decode in separated mode. It is not recommended for use in the production environment.
For the production environment on the customer side, MindIE Motor + vLLM-Ascend is recommended.
Qwen3.5-27B and Qwen3.6-27B are dense hybrid Mamba-Transformer language models in the Qwen3.5/Qwen3.6 family, integrating breakthroughs in architectural efficiency, reinforcement learning scale, and global accessibility. They share the same hybrid attention design (GDN + full attention), so deployment on Ascend NPUs follows the same pattern for both models. They are suitable for general-purpose text generation tasks such as dialogue, content creation, and code generation running on Ascend NPUs.
This document will demonstrate the main validation steps for the models, including supported features, feature configuration, environment preparation, single-node and multi-node deployment, as well as accuracy and performance evaluation.
It is strongly recommended to use the latest release candidate (rc) version or the latest official version of vllm-ascend. As a minimum-version requirement, Qwen3.5-27B is first supported in vllm-ascend:v0.17.0rc1, and Qwen3.6-27B is first supported in vllm-ascend:v0.18.0rc1. Support for Atlas 300I Duo and 950DT Products starts from vllm-ascend:v0.23.0rc1.
2 Supported Features¶
Please refer to the Supported Features List for the model support matrix.
Please refer to the Feature Guide for feature configuration information.
3 Prerequisites¶
3.1 Model Weight¶
| Weight Version | Hardware Requirements | Download Links |
|---|---|---|
Qwen3.5-27B (BF16 version) |
1 Atlas 800I A3 (64GB × 16) node or 1 Atlas 800I A2 (64GB × 8) node or Atlas 300I Duo | ModelScope | Hugging Face |
Qwen3.5-27B-w8a8 (Quantized version) |
1 Atlas 800I A3 (64GB × 16) node or 1 Atlas 800I A2 (64GB × 8) node or Atlas 300I Duo | ModelScope |
Qwen3.6-27B (BF16 version) |
1 950DT Products (96GB × 8) node or 1 Atlas 800I A3 (64GB × 16) node or 1 Atlas 800I A2 (64GB × 8) node or Atlas 300I Duo | ModelScope | Hugging Face |
Qwen3.6-27B-w8a8 (Quantized version) |
1 Atlas 800I A3 (64GB × 16) node or 1 Atlas 800I A2 (64GB × 8) node | ModelScope |
Qwen3.6-27B-w8a8-mxfp8 (Quantized version) |
1 950DT Products (96GB × 8) node | ModelScope |
Qwen3.6-27B-w8a8c8-mxfp8 (Quantized version) |
1 950DT Products (96GB × 8) node | ModelScope |
Qwen3.6-27B-w8a8-310p (Quantized version) |
1 Atlas 300I Duo | ModelScope |
Qwen3.6-27B-w8a8c8-mxfp8(W8A8 MXFP8 quantization with C8 MXFP8 KV cache): serve it with--kv-cache-dtype mxfp8; recommended for long-sequence scenarios.
It is recommended to download the model weight to the shared directory of multiple nodes, such as /root/.cache/.
Path description: Download the model weights to a directory of your choice and record it. Ensure the model path in the subsequent deployment command matches this directory.
3.2 Verify Multi-node Communication¶
If you want to deploy multi-node environment, you need to verify multi-node communication according to verify multi-node communication environment.
4 Installation¶
4.1 Docker Image Installation¶
The container commands below need Ascend Docker Runtime on the host: it is the container engine's runtime, it reads ASCEND_VISIBLE_DEVICES and binds the selected devices into the container. Without it the container starts with no NPU inside, so npu-smi reports no device. Install and verify it once per host, as described in that section. If you cannot install it on the host, use the device and driver flags in Manual device mapping without Ascend Docker Runtime.
Select an image based on your machine type and start the Docker image on your node, refer to using Docker.
It is recommended to use the latest release candidate (rc) version or the latest official version of the vllm-ascend image to ensure the best compatibility and access to the latest features. As a minimum-version requirement, use vllm-ascend:v0.17.0rc1 (or a later version) for Qwen3.5-27B, and vllm-ascend:v0.18.0rc1 (or a later version) for Qwen3.6-27B. For Qwen3.6-27B on Atlas 800I A3, please use the matching v0.18.0rc1-a3 (or a later -a3) image. For Atlas 300I Duo, use vllm-ascend:v0.23.0rc1-310p (or a later -310p) image.
Start the Docker image on each node.
Start the Docker image on each node.
Start the Docker image on each node.
Start the Docker image on each node.
export IMAGE=quay.io/ascend/vllm-ascend:v0.32.0rc1-a5
export NAME=vllm-ascend
docker run --rm \
-e ASCEND_VISIBLE_DEVICES=0-7 \
--name $NAME \
--net=host \
--shm-size=1g \
-v /usr/local/Ascend/driver:/usr/local/Ascend/driver \
-v /etc/hccl_rootinfo.json:/etc/hccl_rootinfo.json \
-v /etc/hixlep/:/etc/hixlep/ \
-v /root/.cache:/root/.cache \
-v /usr/local/sbin:/usr/local/sbin \
-v /usr/local/sbin/npu-smi:/usr/local/sbin/npu-smi \
-v /usr/lib64:/usr/lib64 \
-it $IMAGE bash
After a successful Docker run, you can verify the running container service by executing the docker ps command. The expected result is that the container vllm-ascend is listed with status Up, confirming the Docker installation is successful.
4.2 Source Code Installation¶
If you don't want to use the Docker image as above, you can also build all from source:
-
Clone the repository and install
vllm-ascendfrom source:For the complete installation steps, refer to installation.
-
If you want to deploy a multi-node environment, you need to set up the environment on each node.
To verify the source code installation, run the following command and confirm the displayed version matches the one you installed:
Expected result: The version information of vllm-ascend is displayed, confirming a successful installation.
5 Online Service Deployment¶
5.1 Single-Node Online Deployment¶
Single-node deployment completes both Prefill and Decode within the same node, suitable for development, testing, and medium-scale inference scenarios. The Qwen3.5-27B, Qwen3.5-27B-w8a8, Qwen3.6-27B, and Qwen3.6-27B-w8a8 models can all be deployed on 1 Atlas 800I A3 (64GB × 16), 1 Atlas 800I A2 (64GB × 8). On Atlas 300I Duo, at least 2 devices are required. The Qwen3.6-27B, Qwen3.6-27B-w8a8-mxfp8 and Qwen3.6-27B-w8a8c8-mxfp8 models can all be deployed on 1 950DT Products (96GB × 8). The quantized versions need to start with the --quantization ascend parameter.
Both Qwen3.5-27B and Qwen3.6-27B share the same MTP head design, so the qwen3_5_mtp speculative decoding method can be used for both.
The following examples are for Atlas 800I A3 / Atlas 800I A2. Quantized versions need --quantization ascend.
Startup Command:
#!/bin/sh
# MODEL_PATH can be a ModelScope model id (e.g., Eco-Tech/Qwen3.5-27B-w8a8-mtp) or a local directory path
export MODEL_PATH=Eco-Tech/Qwen3.5-27B-w8a8-mtp
export VLLM_USE_MODELSCOPE=True
export HCCL_BUFFSIZE=512
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
sysctl -w vm.swappiness=0
sysctl -w kernel.numa_balancing=0
sysctl kernel.sched_migration_cost_ns=50000
vllm serve $MODEL_PATH \
--host 0.0.0.0 \
--port 8000 \
--data-parallel-size 1 \
--tensor-parallel-size 2 \
--quantization ascend \
--served-model-name qwen3.5 \
--max-num-seqs 32 \
--max-model-len 133120 \
--max-num-batched-tokens 16384 \
--trust-remote-code \
--allowed-local-media-path / \
--dtype bfloat16 \
--reasoning-parser qwen3 \
--mm-processor-cache-gb 0 \
--mm-encoder-tp-mode data \
--mm-processor-cache-type shm \
--gpu-memory-utilization 0.85 \
--speculative-config '{"method": "qwen3_5_mtp", "num_speculative_tokens": 3}' \
--compilation-config '{"cudagraph_capture_sizes": [1,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128],"cudagraph_mode": "FULL_DECODE_ONLY"}' \
--additional-config '{"enable_cpu_binding":true}'
Startup Command:
#!/bin/sh
# MODEL_PATH can be a ModelScope model id (e.g., Eco-Tech/Qwen3.6-27B-w8a8) or a local directory path
export MODEL_PATH=Eco-Tech/Qwen3.6-27B-w8a8
export VLLM_USE_MODELSCOPE=True
export HCCL_BUFFSIZE=512
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
sysctl -w vm.swappiness=0
sysctl -w kernel.numa_balancing=0
sysctl kernel.sched_migration_cost_ns=50000
vllm serve $MODEL_PATH \
--host 0.0.0.0 \
--port 8000 \
--data-parallel-size 1 \
--tensor-parallel-size 2 \
--quantization ascend \
--served-model-name qwen3.6 \
--max-num-seqs 32 \
--max-model-len 133120 \
--max-num-batched-tokens 16384 \
--trust-remote-code \
--allowed-local-media-path / \
--dtype bfloat16 \
--reasoning-parser qwen3 \
--mm-processor-cache-gb 0 \
--mm-encoder-tp-mode data \
--mm-processor-cache-type shm \
--gpu-memory-utilization 0.85 \
--speculative-config '{"method": "qwen3_5_mtp", "num_speculative_tokens": 3}' \
--compilation-config '{"cudagraph_capture_sizes": [1,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128],"cudagraph_mode": "FULL_DECODE_ONLY"}' \
--additional-config '{"enable_cpu_binding":true}'
Key Parameter Descriptions:
--data-parallel-size 1and--tensor-parallel-size 2are common settings for data parallelism (DP) and tensor parallelism (TP) sizes.--max-model-lenrepresents the context length, which is the maximum value of the input plus output for a single request. The Qwen3.6-27B model supports up to 262144.--max-num-seqsindicates the maximum number of requests that each DP group is allowed to process. If the number of requests sent to the service exceeds this limit, the excess requests will remain in a waiting state and will not be scheduled. Note that the time spent in the waiting state is also counted in metrics such as TTFT and TPOT. Therefore, when testing performance, it is generally recommended that--max-num-seqs*--data-parallel-size>= the actual total concurrency.--max-num-batched-tokensrepresents the maximum number of tokens that the model can process in a single step. Currently, vLLM v1 scheduling enables ChunkPrefill/SplitFuse by default, which means:- (1) If the input length of a request is greater than
--max-num-batched-tokens, it will be divided into multiple rounds of computation according to--max-num-batched-tokens; - (2) Decode requests are prioritized for scheduling, and prefill requests are scheduled only if there is available capacity.
- Generally, if
--max-num-batched-tokensis set to a larger value, the overall latency will be lower, but the pressure on HBM memory (activation value usage) will be greater.
- (1) If the input length of a request is greater than
--gpu-memory-utilizationrepresents the proportion of HBM that vLLM will use for actual inference. Its essential function is to calculate the available kv_cache size. During the warm-up phase (referred to as profile run in vLLM), vLLM records the peak HBM memory usage during an inference process with an input size of--max-num-batched-tokens. The available kv_cache size is then calculated as:--gpu-memory-utilization* HBM size - peak HBM memory usage. Therefore, the larger the value of--gpu-memory-utilization, the more kv_cache can be used. However, since the HBM memory usage during the warm-up phase may differ from that during actual inference (e.g., due to uneven EP load), setting--gpu-memory-utilizationtoo high may lead to OOM (Out of Memory) issues during actual inference. The default value is0.9.- Prefix caching is enabled by default, and the example above uses the default. Add
--no-enable-prefix-cachingto disable it if needed. For workloads with long shared prefixes, finer-grained hybrid prefix matching can be enabled with--enable-prefix-caching --prefix-match-unit 16. The match unit must divide every KV cache group's block size. A smaller unit can reuse more of a partial physical page, at the cost of additional hash metadata, copy-on-write operations, and an extra prefill split at the final matching boundary. --quantization ascendindicates that quantization is used. To disable quantization, remove this option.--speculative-configusesqwen3_5_mtpfor bothQwen3.5-27BandQwen3.6-27Bbecause they share the same MTP head design.--compilation-configcontains configurations related to the aclgraph graph mode. The most significant configurations are"cudagraph_mode"and"cudagraph_capture_sizes", which have the following meanings:"cudagraph_mode": represents the specific graph mode. Currently,"PIECEWISE"and"FULL_DECODE_ONLY"are supported. The graph mode is mainly used to reduce the cost of operator dispatch. Currently,"FULL_DECODE_ONLY"is recommended."cudagraph_capture_sizes": specifies the batch size tiers at which graphs are captured. The default value is[1, 2, 4, 8, 16, 24, 32, 40, ..., --max-num-seqs]. In the graph mode, the batch size of each captured graph is fixed, and an actual batch size between two adjacent capture sizes is automatically padded up to the next capture size. Currently, the default setting is recommended. Only in some scenarios is it necessary to set this separately to achieve optimal performance.
--allowed-local-media-pathallows the API server to read local images or videos from the specified directory when processing multimodal inputs. In this example,/whitelists the entire file system. This is security-sensitive and should only be enabled in trusted environments.--dtype bfloat16sets the data type for model weights and activations.bfloat16is used on Atlas 800I A3 / Atlas 800I A2;float16is required on Atlas 300I Duo instead.--reasoning-parser qwen3enables the reasoning output parser for the OpenAI-compatible API. It splits the model's thinking content from the final answer and returns it in thereasoning_contentfield ofchat.completionsresponses.--mm-processor-cache-gbsets the size (in GiB) of the multimodal processor cache, which is used to avoid re-processing past multimodal inputs. The cache is duplicated in each API server process and engine core process, so the total host memory usage is the cache size multiplied by the number of these processes. A value of0disables this cache completely.--mm-encoder-tp-modeindicates how to optimize multimodal encoder inference using tensor parallelism (TP).datasplits the batched encoder input data across TP ranks while each rank hosts the full encoder weights, and is recommended when multimodal inputs are used. The default modeweightssplits the encoder weights across TP ranks instead.--mm-processor-cache-typesets the cache type used by the multimodal preprocessor and mapper.shmuses a shared-memory FIFO cache, while the defaultlruuses a mirrored LRU cache.--additional-configcontains Ascend-specific optimization options:"enable_cpu_binding": trueenables Ascend-native CPU binding, which pins the worker process, key runtime threads, memory pages, and NPU IRQs to CPU ranges close to the driven NPU, reducing cross-NUMA traffic and thread preemption and improving latency stability. It is enabled by default starting from vllm-ascend v0.18.0rc1.
Currently only the TP scenario is supported. Choose TP=2 or TP=4 according to the available devices. Replace MODEL_PATH with a ModelScope model id or a local directory path. The quantized versions need to start with the --quantization ascend parameter.
Startup Command:
#!/bin/sh
# MODEL_PATH can be a ModelScope model id (e.g., Eco-Tech/Qwen3.5-27B-w8a8-mtp) or a local directory path
export MODEL_PATH=Eco-Tech/Qwen3.5-27B-w8a8-mtp
export VLLM_USE_MODELSCOPE=True
vllm serve $MODEL_PATH \
--host 0.0.0.0 \
--port 8000 \
--tensor-parallel-size 4 \
--quantization ascend \
--served-model-name qwen3.5 \
--max-num-seqs 128 \
--max-model-len 16384 \
--trust-remote-code \
--gpu-memory-utilization 0.90 \
--mamba-ssm-cache-dtype float16 \
--dtype float16 \
--speculative-config '{"method": "qwen3_5_mtp","num_speculative_tokens":1}' \
--compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY", "cudagraph_capture_sizes": [2,16]}' \
--additional-config '{"ascend_compilation_config": {"enable_npugraph_ex": false}}'
Startup Command:
#!/bin/sh
# MODEL_PATH can be a ModelScope model id (e.g., Eco-Tech/Qwen3.6-27B-w8a8-310p) or a local directory path
export MODEL_PATH=Eco-Tech/Qwen3.6-27B-w8a8-310p
export VLLM_USE_MODELSCOPE=True
vllm serve $MODEL_PATH \
--host 0.0.0.0 \
--port 8000 \
--tensor-parallel-size 4 \
--quantization ascend \
--served-model-name qwen3.6 \
--max-num-seqs 128 \
--max-model-len 16384 \
--trust-remote-code \
--gpu-memory-utilization 0.90 \
--mamba-ssm-cache-dtype float16 \
--dtype float16 \
--speculative-config '{"method": "qwen3_5_mtp","num_speculative_tokens":1}' \
--compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY", "cudagraph_capture_sizes": [2,16]}' \
--additional-config '{"ascend_compilation_config": {"enable_npugraph_ex": false}}'
Key Parameter Descriptions:
--tensor-parallel-sizesets the tensor parallel size. Choose TP=2 or TP=4 according to the available devices.--max-model-lenrepresents the context length, which is the maximum value of the input plus output for a single request. Configure it based on the actual workload and available memory. The Qwen3.6-27B model supports up to 262144.--max-num-seqsindicates the maximum number of concurrent requests.--gpu-memory-utilizationrepresents the proportion of HBM that vLLM will use for actual inference. Configure this value according to the actual device memory; setting it too high may cause OOM. The default value is0.9.--mamba-ssm-cache-dtypesets the data type of the Mamba SSM cache. On Atlas 300I Duo, onlyfloat16is supported.--dtype float16must be set on Atlas 300I Duo. These devices only support the FP16 data type.--speculative-configusesqwen3_5_mtpfor bothQwen3.5-27BandQwen3.6-27Bbecause they share the same MTP head design. On Atlas 300I Duo, it is recommended to setnum_speculative_tokensto1.--compilation-configcontains configurations related to the aclgraph graph mode. The most significant configurations are"cudagraph_mode"and"cudagraph_capture_sizes", which have the following meanings:"cudagraph_mode": represents the specific graph mode. Currently,"PIECEWISE"and"FULL_DECODE_ONLY"are supported. The graph mode is mainly used to reduce the cost of operator dispatch. Currently,"FULL_DECODE_ONLY"is recommended."cudagraph_capture_sizes": specifies the batch size tiers at which graphs are captured. When tensor parallelism (TP) is enabled, hardware event-id constraints allow at most two capture sizes (for example,[1, 8]). With MTP enabled, calculate each capture size asn * (num_speculative_tokens + 1), wherenis a capture size for the deployment without MTP. For example, whennum_speculative_tokensis1, the non-MTP sizes[1,2,4,8]become[2,4,8,16].
--additional-configwith"ascend_compilation_config": {"enable_npugraph_ex": false}is required on Atlas 300I Duo becauseenable_npugraph_exis not supported on this platform.
The following example is for 950DT Products. Quantized versions need --quantization ascend.
Startup Command:
#!/bin/sh
# MODEL_PATH can be a ModelScope model id (e.g., Eco-Tech/Qwen3.6-27B-w8a8c8-mxfp8) or a local directory path
export MODEL_PATH=Eco-Tech/Qwen3.6-27B-w8a8c8-mxfp8
export VLLM_USE_MODELSCOPE=True
export HCCL_BUFFSIZE=1024
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
sysctl -w vm.swappiness=0
sysctl -w kernel.numa_balancing=0
sysctl kernel.sched_migration_cost_ns=50000
vllm serve $MODEL_PATH \
--host 0.0.0.0 \
--port 8000 \
--data-parallel-size 1 \
--tensor-parallel-size 1 \
--quantization ascend \
--kv-cache-dtype mxfp8 \
--served-model-name qwen3.6 \
--max-num-seqs 32 \
--max-model-len 153600 \
--max-num-batched-tokens 16384 \
--trust-remote-code \
--allowed-local-media-path / \
--mm-processor-cache-gb 0 \
--mm-encoder-tp-mode data \
--mm-processor-cache-type shm \
--gpu-memory-utilization 0.90 \
--speculative-config '{"method": "qwen3_5_mtp", "num_speculative_tokens": 3}' \
--compilation-config '{"cudagraph_capture_sizes": [1,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128],"cudagraph_mode": "FULL_DECODE_ONLY"}' \
--additional-config '{"enable_cpu_binding": true, "enable_flashcomm1": true}'
Key Parameter Descriptions:
--data-parallel-size 1and--tensor-parallel-size 1are common settings for data parallelism (DP) and tensor parallelism (TP) sizes.--max-model-lenrepresents the context length, which is the maximum value of the input plus output for a single request. The Qwen3.6-27B model supports up to 262144.--max-num-seqsindicates the maximum number of requests that each DP group is allowed to process. If the number of requests sent to the service exceeds this limit, the excess requests will remain in a waiting state and will not be scheduled. Note that the time spent in the waiting state is also counted in metrics such as TTFT and TPOT. Therefore, when testing performance, it is generally recommended that--max-num-seqs*--data-parallel-size>= the actual total concurrency.--max-num-batched-tokensrepresents the maximum number of tokens that the model can process in a single step. Currently, vLLM v1 scheduling enables ChunkPrefill/SplitFuse by default, which means:- (1) If the input length of a request is greater than
--max-num-batched-tokens, it will be divided into multiple rounds of computation according to--max-num-batched-tokens; - (2) Decode requests are prioritized for scheduling, and prefill requests are scheduled only if there is available capacity.
- Generally, if
--max-num-batched-tokensis set to a larger value, the overall latency will be lower, but the pressure on HBM memory (activation value usage) will be greater.
- (1) If the input length of a request is greater than
--gpu-memory-utilizationrepresents the proportion of HBM that vLLM will use for actual inference. Its essential function is to calculate the available kv_cache size. During the warm-up phase (referred to as profile run in vLLM), vLLM records the peak HBM memory usage during an inference process with an input size of--max-num-batched-tokens. The available kv_cache size is then calculated as:--gpu-memory-utilization* HBM size - peak HBM memory usage. Therefore, the larger the value of--gpu-memory-utilization, the more kv_cache can be used. However, since the HBM memory usage during the warm-up phase may differ from that during actual inference (e.g., due to uneven EP load), setting--gpu-memory-utilizationtoo high may lead to OOM (Out of Memory) issues during actual inference. The default value is0.9.- Prefix caching is enabled by default, and the example above uses the default. Add
--no-enable-prefix-cachingto disable it if needed. For workloads with long shared prefixes, finer-grained hybrid prefix matching can be enabled with--enable-prefix-caching --prefix-match-unit 16. The match unit must divide every KV cache group's block size. A smaller unit can reuse more of a partial physical page, at the cost of additional hash metadata, copy-on-write operations, and an extra prefill split at the final matching boundary. --quantization ascendindicates that quantization is used. To disable quantization, remove this option.--kv-cache-dtype mxfp8enables the C8 (MXFP8 KV cache) and is required by theQwen3.6-27B-w8a8c8-mxfp8weights. It stores the KV cache of the full-attention layers as FP8 (E4M3) with E8M0 scales, and runs the full-attention layers on the dedicated QFA (quant flash attention) kernel. The W8A8C8 weights bring performance gains in long-sequence scenarios. With this option,--block-sizemust be a multiple of512(it defaults to512if unset).- For short-sequence scenarios (e.g., 16k input length), the W8A8 weights (e.g.,
Qwen3.6-27B-w8a8-mxfp8) are recommended instead. When serving a W8A8 weight, remove--kv-cache-dtype mxfp8from the startup command. Note that C8 quantization is only supported on 950PR&950DT Products. --speculative-configusesqwen3_5_mtpforQwen3.6-27Bbecause it shares the same MTP head design asQwen3.5-27B.--compilation-configcontains configurations related to the aclgraph graph mode. The most significant configurations are"cudagraph_mode"and"cudagraph_capture_sizes", which have the following meanings:"cudagraph_mode": represents the specific graph mode. Currently,"PIECEWISE"and"FULL_DECODE_ONLY"are supported. The graph mode is mainly used to reduce the cost of operator dispatch. Currently,"FULL_DECODE_ONLY"is recommended."cudagraph_capture_sizes": specifies the batch size tiers at which graphs are captured. The default value is[1, 2, 4, 8, 16, 24, 32, 40, ..., --max-num-seqs]. In the graph mode, the batch size of each captured graph is fixed, and an actual batch size between two adjacent capture sizes is automatically padded up to the next capture size. Currently, the default setting is recommended. Only in some scenarios is it necessary to set this separately to achieve optimal performance.
--allowed-local-media-pathallows the API server to read local images or videos from the specified directory when processing multimodal inputs. In this example,/whitelists the entire file system. This is security-sensitive and should only be enabled in trusted environments.--mm-processor-cache-gbsets the size (in GiB) of the multimodal processor cache, which is used to avoid re-processing past multimodal inputs. The cache is duplicated in each API server process and engine core process, so the total host memory usage is the cache size multiplied by the number of these processes. A value of0disables this cache completely.--mm-encoder-tp-modeindicates how to optimize multimodal encoder inference using tensor parallelism (TP).datasplits the batched encoder input data across TP ranks while each rank hosts the full encoder weights, and is recommended when multimodal inputs are used. The default modeweightssplits the encoder weights across TP ranks instead.--mm-processor-cache-typesets the cache type used by the multimodal preprocessor and mapper.shmuses a shared-memory FIFO cache, while the defaultlruuses a mirrored LRU cache.--additional-configcontains Ascend-specific optimization options:"enable_cpu_binding": trueenables Ascend-native CPU binding, which pins the worker process, key runtime threads, memory pages, and NPU IRQs to CPU ranges close to the driven NPU, reducing cross-NUMA traffic and thread preemption and improving latency stability. It is enabled by default starting from vllm-ascend v0.18.0rc1."enable_flashcomm1": trueenables the FlashComm communication optimization, which splits the tensor-parallel AllReduce into Reduce-Scatter and All-Gather to reduce communication overhead and improve prefill throughput.
Common Issues Tip: If you encounter issues, please refer to the Public FAQs for troubleshooting.
Service Verification:
If the service starts successfully, the following startup log will be displayed:
(APIServer pid=<pid>) INFO: Started server process [<pid>]
(APIServer pid=<pid>) INFO: Waiting for application startup.
(APIServer pid=<pid>) INFO: Application startup complete.
For functional testing (e.g., completions and chat.completions curl examples with expected responses), please refer to Section 6.
6 Functional Verification¶
After the service is started, the model can be invoked by sending a prompt. Two API interfaces are supported: completions and chat.completions. Use the --served-model-name you configured (qwen3.5 for Qwen3.5-27B or qwen3.6 for Qwen3.6-27B).
Completions API:
curl http://127.0.0.1:8000/v1/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.5",
"prompt": "The future of AI is",
"max_tokens": 50,
"temperature": 0
}'
Note: For
Qwen3.6-27B, set"model": "qwen3.6"in the request body.
Chat Completions API:
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.5",
"messages": [
{"role": "user", "content": "The future of AI is"}
],
"max_completion_tokens": 1024,
"temperature": 0.7,
"top_p": 0.95
}'
Note: For
Qwen3.6-27B, set"model": "qwen3.6"in the request body.
Expected Result: The service returns HTTP 200 OK. The JSON response contains the choices field with generated text. Example output for the completions API (content truncated for brevity):
{
"id": "cmpl-xxxxxxxxxxxxx",
"object": "text_completion",
"created": 1780971952,
"model": "qwen3.5",
"choices": [
{
"index": 0,
"text": "The future of AI is a rapidly evolving landscape with breakthroughs in natural language understanding, multimodal reasoning, and autonomous agents. As models grow more capable and efficient...",
"logprobs": null,
"finish_reason": "length"
}
],
"usage": {
"prompt_tokens": 4,
"total_tokens": 54,
"completion_tokens": 50
}
}
7 Accuracy Evaluation¶
Here are two accuracy evaluation methods.
7.1 Using AISBench¶
-
For detailed instructions, refer to Using AISBench for accuracy evaluation.
-
After execution, you can get the result. For reference only, here is the result of
Qwen3.5-27B-w8a8obtained withvllm-ascend:v0.17.0rc1on an Atlas 800I A3 node. The accuracy result ofQwen3.6-27B-w8a8can be obtained in the same way and is not listed here.
For
Qwen3.6-27B-w8a8, changemodeltoqwen3.6andpathto the corresponding model weight path.
| dataset | version | metric | mode | vllm-api-general-chat |
|---|---|---|---|---|
| gsm8k | - | accuracy | gen | 96.74 |
7.2 Using Language Model Evaluation Harness¶
Using the gsm8k dataset as an example test dataset, run the accuracy evaluation for Qwen3.5-27B-w8a8 in online mode.
- For
lm_evalinstallation, please refer to Using lm_eval. - Run
lm_evalto execute the accuracy evaluation.
# Run lm_eval in another terminal
lm_eval \
--model local-completions \
--model_args model=qwen3.5,base_url=http://127.0.0.1:8000/v1/completions,tokenized_requests=False,trust_remote_code=True \
--tasks gsm8k \
--output_path ./
8 Performance Evaluation¶
8.1 Using AISBench¶
Refer to Using AISBench for performance evaluation for details.
8.2 Using vLLM Benchmark¶
Refer to vLLM Benchmark for more details.
9 Performance Tuning¶
9.1 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. It is recommended to refer to Section 9.2 for tuning based on actual conditions.
Parallelism Strategy:
Qwen3.5-27B-w8a8andQwen3.6-27B-w8a8are only ~30 GB and easily fit in a single NPU (64 GB HBM per NPU). Following the DP-first principle, TP=2 is the recommended default for most scenarios, and the remaining NPUs should be allocated to DP for parallel request batches. TP=8 is only recommended for ultra-long context (256k+) scenarios, where it shards the KV cache across 8 NPUs to maximize the available context window per rank. ForQwen3.6-27B-w8a8, you can also raise--max-model-lenup to 262144 in the same TP/DP layout.Atlas 300I Duo: Currently only the TP scenario is supported. Choose TP=2 or TP=4 according to the available devices. With TP=4,
--max-model-lencan support 128k and 256k long-sequence scenarios.950DT Products: The
Qwen3.6-27B-w8a8c8-mxfp8model weight easily fits in a single NPU (96 GB HBM per NPU). Following the DP-first principle, TP=1 is the recommended default for most scenarios, and the remaining NPUs should be allocated to DP for parallel request batches. The C8 weights are recommended for long-sequence scenarios and are served with--kv-cache-dtype mxfp8; for short-sequence scenarios (e.g., 16k input), useQwen3.6-27B-w8a8-mxfp8without--kv-cache-dtype mxfp8.--max-model-lencan support up to 262144 in the same TP=1 + DP=8 layout.
Table 1: Scenario Overview¶
| Scenario | Deployment Mode | *Total NPUs | Weight Version | Key Considerations |
|---|---|---|---|---|
| High Throughput (128k context) |
Single-Node (A2) | 8 (A2) | Qwen3.5-27B-w8a8 / Qwen3.6-27B-w8a8 | TP=2 + DP=4 fully utilizes all 8 NPUs for parallel request batches |
| High Throughput (128k context) |
Single-Node (A3) | 16 (A3) | Qwen3.5-27B-w8a8 / Qwen3.6-27B-w8a8 | TP=2 + DP=8 fully utilizes all 16 NPUs for parallel request batches |
| Low Latency (128k context) |
Single-Node (A3) | 16 (A3) | Qwen3.5-27B-w8a8 / Qwen3.6-27B-w8a8 | TP=2 + DP=8 reduces per-layer Allreduce overhead for small interactive batches |
| Long Context (256k+ context) |
Single-Node (A3) | 16 (A3) | Qwen3.5-27B-w8a8 / Qwen3.6-27B-w8a8 | TP=8 + DP=2 shards the KV cache across 8 NPUs to maximize the available context window |
| High Throughput (128k context) |
Single-Node (950DT Products) | 8 (950DT Products) | Qwen3.6-27B-w8a8c8-mxfp8 | TP=1 + DP=8 fully utilizes all 8 NPUs for parallel request batches |
| Long Context (256k+ context) |
Single-Node (950DT Products) | 8 (950DT Products) | Qwen3.6-27B-w8a8c8-mxfp8 | TP=1 + DP=8 maximizes the available context window while keeping all 8 NPUs busy |
*Total NPUsindicates the total number of NPUs used across all nodes. 1 Atlas 800I A3 node = 16 NPUs, 1 Atlas 800I A2 node = 8 NPUs, 1 950DT Products node = 8 NPUs.
Table 2: Detailed Node Configuration¶
| Scenario | Configuration | NPUs | TP | DP | Max Num Seqs | Max Num Batched Tokens | Max Model Len | MTP Speculation Num | Async Scheduling |
|---|---|---|---|---|---|---|---|---|---|
| High Throughput (128k) | Single-Node (A2) | 8 | 2 | 4 | 32 | 16384 | 133120 | 3 | On |
| High Throughput (128k) | Single-Node (A3) | 16 | 2 | 8 | 32 | 16384 | 133120 | 3 | On |
| Low Latency (128k) | Single-Node (A3) | 16 | 2 | 8 | 4 | 4096 | 133120 | 3 | On |
| Long Context (256k+) | Single-Node (A3) | 16 | 8 | 2 | 8 | 8192 | 262144 | 3 | On |
| High Throughput (128k) | Single-Node (950DT Products) | 8 | 1 | 8 | 32 | 16384 | 133120 | 3 | On |
| Long Context (256k+) | Single-Node (950DT Products) | 8 | 1 | 8 | 32 | 16384 | 262144 | 3 | On |
For complete startup commands and parameter descriptions, please refer to the deployment examples in Section 5.
9.2 Tuning Guidelines¶
9.2.1 General Tuning Reference¶
Please refer to the Public Performance Tuning Documentation for tuning methods. Please refer to the Feature Matrix for detailed feature descriptions.
10 FAQ¶
For common environment, installation, and general parameter issues, please refer to the Public FAQs.