vllm-ascend/recipes
~/browse/Qwen

Qwen3.5-27B & Qwen3.6-27B

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) and the same deployment pattern on Ascend NPUs, suitable for general-purpose text generation tasks such as dialogue, content creation, and code generation.

Dense27B262K ctxtextvLLM 0.18.0rc1Difficulty: advanced

Single-node deployment on Atlas 800 A2/A3/950DT with DP-first parallelism

Added: 2026-07-27·Updated: 2026-07-27·[ edit ]

Preparation

Qwen3.5-27B and Qwen3.6-27B are dense hybrid Mamba-Transformer language models in the Qwen3.5/Qwen3.6 family. Both share the same hybrid attention design (GDN + full attention) and the same MTP head design. They are suitable for general-purpose text generation tasks such as dialogue, content creation, and code generation.

Deployment Guide

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

Verification

After the service starts, the log should show:

(APIServer pid=<pid>) INFO:     Started server process [<pid>]
(APIServer pid=<pid>) INFO:     Waiting for application startup.
(APIServer pid=<pid>) INFO:     Application startup complete.

Smoke-test with the Completions API:

curl http://localhost:<port>/v1/completions \
    -H "Content-Type: application/json" \
    -d '{
        "model": "qwen3.5",
        "prompt": "The future of AI is",
        "max_tokens": 50,
        "temperature": 0
    }'

Or with the Chat Completions API:

curl http://localhost:<port>/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
    }'
For Qwen3.6-27B, set "model": "qwen3.6" in the request body (and use --served-model-name qwen3.6 on the server).

Expected: HTTP 200 OK with a choices field containing generated text.

More Info

Accuracy

Accuracy

Using AISBench (recommended)

Refer to the vllm-ascend AISBench guide. After execution, AISBench prints the per-dataset accuracy. Example for Qwen3.5-27B-w8a8 on gsm8k:

datasetversionmetricmodevllm-api-general-chat
gsm8k-accuracygen96.74

Using Language Model Evaluation Harness (lm_eval)

Run gsm8k against the running server:

export VLLM_USE_MODELSCOPE=True
vllm serve your_model_path \
    --served-model-name qwen3.5 \
    --trust-remote-code \
    --quantization ascend \
    --tensor-parallel-size 2 \
    --max-model-len {{max_model_len}} \
    --max-num-seqs {{max_num_seqs}} \
    --gpu-memory-utilization {{gpu_memory_utilization}} \
    --no-enable-prefix-caching

# 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 ./

Benchmark

Benchmark

Using AISBench

See the vllm-ascend AISBench performance-evaluation guide.

Using vllm bench serve

Three vllm bench subcommands: latency (single-batch latency), serve (online throughput), throughput (offline throughput). The serve example:

export VLLM_USE_MODELSCOPE=True
# For Qwen3.5-27B-w8a8:
vllm bench serve --model Eco-Tech/Qwen3.5-27B-w8a8-mtp \
  --dataset-name random --random-input 200 --num-prompts 200 \
  --request-rate 1 --save-result --result-dir ./
# For Qwen3.6-27B-w8a8:
vllm bench serve --model Eco-Tech/Qwen3.6-27B-w8a8 \
  --dataset-name random --random-input 200 --num-prompts 200 \
  --request-rate 1 --save-result --result-dir ./