Qwen3-NEXT is an advanced large language model created by the Qwen team from Alibaba Cloud. It features several key improvements:
- A Gated-Delta-Net (GDN) structure
- A highly sparse Mixture-of-Experts (MoE) structure
- A Zero-Centered RMSNorm structure
- A multi-token prediction mechanism for faster inference
Pull the latest docker from https://hub.docker.com/r/rocm/atom/ :
docker pull rocm/atom:latestAll the operations in the next will be executed inside the container.
You can use 8x MI308/MI355/MI350 to launch this model. Here we consider the parallelism of TP8 as an example.
#!/bin/bash
python -m atom.entrypoints.openai_server --model Qwen/Qwen3-Next-80B-A3B-Instruct -tp 8Qwen3-Next also supports Multi-Token Prediction (MTP in short), you can launch the model server with the following arguments to enable MTP.
python -m atom.entrypoints.openai_server --model Qwen/Qwen3-Next-80B-A3B-Instruct -tp 8 --method mtpWe use the following script to demonstrate how to benchmark Qwen/Qwen3-Next-80B-A3B-Instruct.
python -m atom.benchmarks.benchmark_serving \
--model=Qwen/Qwen3-Next-80B-A3B-Instruct --backend=vllm --base-url=http://localhost:$8000 \
--dataset-name=random \
--random-input-len=2048 --random-output-len=1024 \
--random-range-ratio 1.0 \
--num-prompts=100 \
--max-concurrency=4 \
--request-rate=inf --ignore-eos \
--save-result --percentile-metrics="ttft,tpot,itl,e2el" \
--result-dir=./ --result-filename="result.json"We use gsm8k dataset for accuracy test, please Install lm-eval firstly.
pip install lm-eval[api]
Run the evaluation:
lm_eval --model local-completions \
--model_args model=/mnt/raid0/models/Qwen3-Next-80B-A3B-Instruct,base_url=http://localhost:8000/v1/completions,num_concurrent=64,max_retries=3,tokenized_requests=False \
--tasks gsm8kHere is the reference value when deploying on 8 ranks:
|Tasks|Version| Filter |n-shot| Metric | |Value | |Stderr|
|-----|------:|----------------|-----:|-----------|---|-----:|---|-----:|
|gsm8k| 3|flexible-extract| 5|exact_match|↑ |0.8604|± |0.0093|
| | |strict-match | 5|exact_match|↑ |0.8399|± |0.0098|