vllm-ascend/recipes
~/browse/Qwen

Qwen3-Coder-30B-A3B-Instruct

A 30.5B-parameter Mixture-of-Experts coding model with 3.3B activated parameters, agentic coding and function-calling support, and a native context window of 262144 tokens.

MoE30.5B/3.3B262K ctxtextvLLM 0.30.0Difficulty: intermediate

Single-node W8A8 deployment on Atlas 800I A3 for high throughput, low latency, and 128K long context

Added: 2026-11-19·[ edit ]

Preparation

Qwen3-Coder-30B-A3B-Instruct is a Mixture-of-Experts coding model with 30.5B total parameters and 3.3B activated per token. It targets agentic coding, repository-level code generation, and tool calling, and supports a native context length of 262144 tokens. This recipe covers the three single-node scenarios used by the upstream tutorial: high throughput (TP1), low latency (TP4 with expert parallelism), and long context (TP4 with 131072 tokens).

Deployment Guide

Select NPU type and deployment options to view the corresponding deployment instructions.

Verification

After the service is started, send a chat request. Replace with the port from the vllm serve command.

curl http://localhost:<port>/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
        "model": "qwen3-coder",
        "messages": [
            {"role": "user", "content": "Give me a short introduction to large language models."}
        ],
        "temperature": 0.6,
        "top_p": 0.95,
        "max_tokens": 512
    }'

Expected result: HTTP 200 with a JSON body containing a non-empty choices field.

More Info

Accuracy

Using EvalScope

See the evaluation section for the command. Accuracy was measured against the high-throughput TP1 service with the W8A8 checkpoint.

Accuracy

Using EvalScope

Install EvalScope in an isolated environment and point it at the running OpenAI-compatible endpoint:

python3 -m venv /root/eval-venv
/root/eval-venv/bin/pip install -U "numpy>=2.0" evalscope
/root/eval-venv/bin/evalscope eval \
    --model qwen3-coder \
    --api-url http://127.0.0.1:8000/v1 \
    --api-key EMPTY \
    --eval-type openai_api \
    --datasets gsm8k \
    --limit 100 \
    --eval-batch-size 8

Accuracy result (Atlas 800I A3, vLLM-Ascend v0.30.0, W8A8, 100 samples):

DatasetMetricScore
GSM8Kaccuracy98.00%

The upstream tutorial reports 90.14% for GSM8K with AISBench; the difference is within sampling variance for a 100-question subset.

Benchmark

Measured Results

All numbers below were collected on one Atlas 800I A3 node (16 chips available; at most 4 used) with quay.io/ascend/vllm-ascend:v0.30.0-a3-openeuler.

ScenarioTPRequestsConcurrencyOutput tok/sMean TTFT (ms)Mean TPOT (ms)
High Throughput1100/10032756.421205.8236.56
Low Latency4100/100321219.291007.9821.35
Long Context420/204221.63735.6616.64

Benchmark shapes: 2048 input / 2048 output tokens for high throughput and low latency; 8192 input / 512 output tokens for long context.

Scenario Overview

ScenarioDeployment ModeTotal NPUsWeight VersionKey Considerations
High ThroughputSingle-Node (TP1)1 (A3)W8A8Single-chip deployment maximizes concurrent request processing
Low LatencySingle-Node (TP4)2 (A3)W8A8Multi-chip TP with expert parallelism reduces per-token latency
Long ContextSingle-Node (TP4)2 (A3)W8A8Fewer concurrent sequences leave room for a 131072-token context
On Atlas 800I A3 each NPU contains two dies (chips), so TP4 uses 4 chips = 2 NPUs.