# Qwen/Qwen3-Omni-30B-A3B-Thinking — vLLM serving recipe

> Omni-modal Qwen3 Mixture-of-Experts model (30.5B total / 3.3B active) served with vLLM Ascend on Atlas 800I A3, with validated BF16 presets for high throughput, low latency, and 128K long context (W8A8 remains an optional path).

Configuration: hardware `ascend_910c` (16× Ascend 910C) · strategy `single_node_tp` (Tensor Parallel) · variant `default` (BF16 (Ascend A3)) · features none · preset `a3_low_latency`

- Interactive page: https://recipes.vllm.ai/Qwen/Qwen3-Omni-30B-A3B-Thinking
- This configuration as JSON: https://recipes.vllm.ai/Qwen/Qwen3-Omni-30B-A3B-Thinking.json?hardware=ascend_910c

The commands below were rendered for exactly this configuration and take precedence over any example in the guide.

## Other configurations

Change the query string (the same parameters as the page URL) and fetch this URL again. Unknown or incompatible values fall back to the recipe default, so check the Configuration line.

- `hardware`: `ascend_910c`
- `variant`: `default`, `w8a8`
- `strategy`: `single_node_tp` (multi-node strategies also need `nodes=<n>`)
- `features`: comma-separated list of `spec_decoding` (default: none). Use `features=none` to turn them all off.
- `preset`: a tuned, evidence-backed configuration (`baseline` opts out of a default one). Each sets its own hardware and strategy:
  - `a3_low_latency` — Low Latency (TP4) (ascend_910c · TP · 200 input / 128 output tokens, 1 request per second · default): `hardware=ascend_910c&strategy=single_node_tp&preset=a3_low_latency`
  - `a3_high_throughput` — High Throughput (TP2) (ascend_910c · TP · 200 input / 512 output tokens, concurrency 32 · opt-in): `hardware=ascend_910c&strategy=single_node_tp&preset=a3_high_throughput`
  - `a3_long_context` — Long Context (TP4, 128K) (ascend_910c · TP · 70025-token prompt functional check · opt-in): `hardware=ascend_910c&strategy=single_node_tp&preset=a3_long_context`

## Install

Requires vLLM >= 0.30.0.

Docker image: `quay.io/ascend/vllm-ascend:v0.30.0-a3-openeuler`

Extra dependencies:

- Optional Eagle3 draft model for speculative decoding (replace your_eagle3_model_path) (optional)

```bash
pip install modelscope && modelscope download --model AngelSlim/Qwen3-a3B_eagle3
```

## Serve

```bash
export HCCL_OP_EXPANSION_MODE=AIV
export HCCL_BUFFSIZE=1024
export OMP_PROC_BIND=false
export OMP_NUM_THREADS=1
export PYTORCH_NPU_ALLOC_CONF=expandable_segments:True
vllm serve Qwen/Qwen3-Omni-30B-A3B-Thinking \
  --trust-remote-code \
  --tensor-parallel-size 4 \
  --max-num-seqs 100 \
  --max-model-len 37364 \
  --max-num-batched-tokens 16384 \
  --enable-expert-parallel \
  --distributed-executor-backend mp \
  --no-enable-prefix-caching \
  --async-scheduling \
  --compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY"}' \
  --additional-config '{"enable_flashcomm1": false}' \
  --gpu-memory-utilization 0.95
```

Docker equivalent:

```bash
docker run --device /dev/davinci0 --device /dev/davinci1 --device /dev/davinci2 --device /dev/davinci3 \
  --device /dev/davinci4 --device /dev/davinci5 --device /dev/davinci6 --device /dev/davinci7 \
  --device /dev/davinci8 --device /dev/davinci9 --device /dev/davinci10 --device /dev/davinci11 \
  --device /dev/davinci12 --device /dev/davinci13 --device /dev/davinci14 --device /dev/davinci15 \
  --device /dev/davinci_manager --device /dev/hisi_hdc \
  -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \
  -v /etc/ascend_install.info:/etc/ascend_install.info \
  -v /usr/local/dcmi:/usr/local/dcmi \
  -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
  --privileged --net=host --shm-size=16g \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -e HCCL_OP_EXPANSION_MODE=AIV \
  -e HCCL_BUFFSIZE=1024 \
  -e OMP_PROC_BIND=false \
  -e OMP_NUM_THREADS=1 \
  -e PYTORCH_NPU_ALLOC_CONF=expandable_segments:True \
  quay.io/ascend/vllm-ascend:v0.30.0-a3-openeuler \
  vllm serve Qwen/Qwen3-Omni-30B-A3B-Thinking \
  --trust-remote-code \
  --tensor-parallel-size 4 \
  --max-num-seqs 100 \
  --max-model-len 37364 \
  --max-num-batched-tokens 16384 \
  --enable-expert-parallel \
  --distributed-executor-backend mp \
  --no-enable-prefix-caching \
  --async-scheduling \
  --compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY"}' \
  --additional-config '{"enable_flashcomm1": false}' \
  --gpu-memory-utilization 0.95
```

## Tuned preset: Low Latency (TP4)

TP4 with expert parallelism; lowest measured per-token latency.

- Key: `a3_low_latency` · applied by default on this hardware and strategy (`preset=baseline` drops it)
- Qualified on: hardware `ascend_910c` · strategy `single_node_tp` (Tensor Parallel) · variants `default`
- Workload: 200 input / 128 output tokens, 1 request per second
- Every point rendered as JSON: https://recipes.vllm.ai/Qwen/Qwen3-Omni-30B-A3B-Thinking/presets/a3_low_latency.json

### Runbook

Measured on one Atlas 800I A3 with `quay.io/ascend/vllm-ascend:v0.30.0-a3-openeuler`
(4 of 16 chips, TP4) and the official BF16 checkpoint.

- 200/200 requests completed at 1 request per second.
- Output throughput **126.89 tok/s**.
- Mean TTFT **168.74 ms**, mean TPOT **15.92 ms**.

## Guide

> Background reference. Commands in it are examples and may target another configuration — use the Serve section above.

### Overview

Qwen3-Omni-30B-A3B-Thinking is the thinker variant of Qwen3-Omni: a native
end-to-end omni-modal Mixture-of-Experts model with 30.5B total parameters and 3.3B
activated per token. It accepts text, images, audio, and video, produces text output,
and exposes chain-of-thought reasoning.

### Validation scope and support status

The main vLLM Ascend tutorial marks this model discontinued since v0.30.0 and points at
the v0.23.0 documentation. This recipe migrates that tutorial content to the recipes
format and re-validates it end to end on the v0.30.0 A3 image. All results below were
collected on one Atlas 800I A3 node with
`quay.io/ascend/vllm-ascend:v0.30.0-a3-openeuler`. The node exposes 16 chips; the
presets use two chips (TP2) or four chips (TP4). The combined image/audio/video
functional request used the TP4 + expert-parallel topology; an image-only smoke
check also passed on the TP2 High Throughput topology.

### Validated presets

| Preset | Chips | Workload | Requests | Output tok/s | Mean TTFT | Mean TPOT |
| --- | --- | --- | --- | --- | --- | --- |
| High Throughput (TP2) | 2 | 200 in / 512 out, concurrency 32 | 200/200 | 960.72 | 293.05 ms | 30.60 ms |
| Low Latency (TP4) | 4 | 200 in / 128 out, 1 request/s | 200/200 | 126.89 | 168.74 ms | 15.92 ms |
| Long Context (TP4) | 4 | 8192 in / 256 out, concurrency 4 | 20/20 | 201.30 | 864.92 ms | 16.54 ms |

The long-context preset also returned the correct answer to a 70025-token prompt in 5.93 s. These numbers are
reproducibility measurements on the stated image, not an official performance baseline.

### Accuracy

EvalScope 1.15.0, 100 samples per dataset, optional W8A8 reference, TP1 service. The default BF16 configuration was validated functionally and for performance; its accuracy was not re-measured in this cycle:

| Dataset | Metric | Score |
| --- | --- | --- |
| OmniBench (image) | accuracy | 49.00% |
| GSM8K | accuracy | 99.00% |
| BBH | accuracy | not completed |

OmniBench and GSM8K match the tutorial reference (0.44 and 0.98). BBH was not completed:
EvalScope expands `--limit 100` to 100 samples per BBH subtask (2700 total), which
exceeded the validation time budget. The tutorial reference for BBH is 0.9148.

### Weights

No public W8A8 checkpoint exists for this model. The validated W8A8 weights were
produced from the official BF16 checkpoint with **msmodelslim**, using the hybrid layout
described in the historical quantization guide: BF16 embeddings, BF16 Q/K norms and MoE
gates, static W8A8 attention projections, and dynamic W8A8 expert projections.

All presets therefore load the public official BF16 checkpoint by default and run as
generated. The optional W8A8 variant uses the placeholder model id
`local/Qwen3-Omni-30B-A3B-Thinking-w8a8` (a placeholder, not a Hugging Face
repo); replace it with the absolute path to the local quantized directory
before rendering or serving it, and keep the canonical Hugging Face id as the BF16
download.

The optional Eagle3 draft model is not part of the default weights. Download it with
`modelscope download --model AngelSlim/Qwen3-a3B_eagle3` and enable the opt-in
`spec_decoding` feature; the measured preset numbers above remain the non-Eagle3 baseline.

### Limitations

- The optional Eagle3 draft model from the tutorial is exposed as an opt-in `spec_decoding` feature. It was functionally validated on Atlas 800I A3 at TP1 (4/4 HTTP 200 responses, no ERROR/Traceback in the logs); it is not enabled in the default presets or performance baselines. Replace `your_eagle3_model_path` with the local draft-model directory before enabling it.
- All three presets are benchmarked with the official BF16 checkpoint. Accuracy numbers
  remain an optional W8A8 reference; BF16 accuracy was not re-measured.
- BBH accuracy was not completed in this validation run.
- Multi-node and PD-separated topologies are out of scope for this recipe.

### References

- [Eagle3 draft model (ModelScope)](https://www.modelscope.cn/models/AngelSlim/Qwen3-a3B_eagle3)

- [Historical vLLM Ascend tutorial (v0.23.0)](https://docs.vllm.ai/projects/ascend/en/v0.23.0/tutorials/models/Qwen3-Omni-30B-A3B-Thinking.html)
- [Main tutorial support status](https://github.com/vllm-project/vllm-ascend/blob/main/docs/source/tutorials/models/Qwen3-Omni-30B-A3B-Thinking.md)
- [Qwen3-Omni-30B-A3B-Thinking on ModelScope](https://www.modelscope.cn/models/Qwen/Qwen3-Omni-30B-A3B-Thinking)
- [msmodelslim](https://gitcode.com/Ascend/msmodelslim)
