Qwen3-Omni#
Qwen3-Omni accepts text, images, audio, and video, and can return text alone or with audio. Use the generator for a hardware-specific launch command, then check the tables for supported configurations.
For shared request examples, response formats, SSE clients, and error handling, see Omni Model Usage. This page documents Qwen3-Omni deployment, model-specific parameters, and realtime profiles.

The Thinker processes multimodal inputs and generates text. The Talker uses the Thinker’s representations and text to produce speech tokens, and the streaming codec decoder turns them into audio.
Figure credit: Qwen team, official Qwen3-Omni architecture. See the release blog for the model overview.
Prerequisites#
Install sglang-omni using the installation guide.
Server Configuration#
Use the selector below to generate the exact launch command for your configuration.
Compatibility Matrix#
Colocated topology requires --config examples/configs/qwen3_omni_colocated_h20.yaml (or qwen3_omni_colocated_h200.yaml on H200) to set per-stage GPU memory budgets.
All configurations listed below are supported.
Mode |
Topology |
Thinker TP |
Precision |
|---|---|---|---|
Thinker-only |
— |
— |
BF16 |
Thinker-only |
— |
— |
FP8 |
Thinker-only |
— |
— |
AutoRound INT4 |
Thinker-Talker |
Disaggregated |
TP=1 |
BF16 |
Thinker-Talker |
Disaggregated |
TP=1 |
FP8 |
Thinker-Talker |
Disaggregated |
TP=1 |
AutoRound INT4 thinker + BF16 talker/code2wav |
Thinker-Talker |
Disaggregated |
TP=2 |
BF16 |
Thinker-Talker |
Disaggregated |
TP=2 |
FP8 |
Thinker-Talker |
Disaggregated |
TP=2 |
AutoRound INT4 thinker + BF16 talker/code2wav |
Thinker-Talker |
Colocated |
TP=1 |
BF16 |
Thinker-Talker |
Colocated |
TP=1 |
FP8 |
Thinker-Talker |
Colocated |
TP=1 |
AutoRound INT4 thinker + BF16 talker/code2wav |
Text-Only Deployment#
Text-only mode runs the thinker pipeline on a single GPU. It accepts multi-modal input (text, image, audio) and produces text output only.
Launch a Text-Only Server#
sgl-omni serve \
--model-path Qwen/Qwen3-Omni-30B-A3B-Instruct \
--text-only \
--port 8008
Multimodal preprocessing (tokenization, image/video/audio feature extraction) runs serially by default. Add --preprocessing.factory.max_concurrency 4 to run it on a thread pool when CPU preprocessing is the bottleneck under concurrent load. Threaded preprocessing changes how requests arrive at the thinker, so greedy outputs of the bf16 MoE can differ from the serial default; keep the default when comparing accuracy across runs.
For video decoder thread allocation and overrides, see Video Decoding.
For MMSU-style audio-input / text-output benchmarks with short requests, use the fused text-path config so the full text path stays inside one worker process:
sgl-omni serve \
--model-path Qwen/Qwen3-Omni-30B-A3B-Instruct \
--config examples/configs/qwen3_omni_mmsu.yaml \
--text-only \
--port 8008
Speech Deployment and Tuning#
Speech mode runs the full eight-stage pipeline on one or more GPUs. It produces both text (from the thinker) and audio (from the talker) output.
Launch a Speech Server#
Speech mode can run as a colocated one-GPU worker using the colocated config:
sgl-omni serve \
--model-path Qwen/Qwen3-Omni-30B-A3B-Instruct \
--config examples/configs/qwen3_omni_colocated_h20.yaml \
--colocate \
--port 8008
Use examples/configs/qwen3_omni_colocated_h200.yaml on single-H200 workers.
For manual multi-GPU placement, use the example script:
python examples/run_omni.py qwen3-speech-server \
--model-path Qwen/Qwen3-Omni-30B-A3B-Instruct \
--gpu-thinker 0 \
--gpu-talker 1 \
--gpu-code-predictor 1 \
--gpu-code2wav 0 \
--port 8008
Or use the CLI without --text-only for the standard speech pipeline:
sgl-omni serve \
--model-path Qwen/Qwen3-Omni-30B-A3B-Instruct \
--port 8008
Memory and Concurrency#
For automatic memory sizing, global memory budgets, and per-stage overrides, see Memory and Concurrency.
The speech server launcher exposes the same per-stage controls:
python examples/run_omni.py qwen3-speech-server \
--model-path Qwen/Qwen3-Omni-30B-A3B-Instruct \
--gpu-thinker 0 \
--gpu-talker 1 \
--gpu-code-predictor 1 \
--gpu-code2wav 0 \
--port 8008 \
--thinker-mem-fraction-static 0.88 \
--talker-mem-fraction-static 0.88
The thinker admits up to 64 running requests by default. Use the thinker-specific flag to lower or raise that limit in either text-only or speech mode:
sgl-omni serve \
--model-path Qwen/Qwen3-Omni-30B-A3B-Instruct \
--thinker.engine.max_running_requests 16
For the equivalent YAML layout, see Memory and Concurrency.
Speech Chunking and First-Audio Latency#
Start with the default speech chunking settings and measure time to first playable audio before tuning. Smaller chunks alone do not guarantee earlier playback. See speech chunking and first-audio latency for frame counts and decoder timing.
Code2Wav Execution#
Code2Wav turns encoded speech into playable audio. Its GPU optimizations are enabled by default, so keep the launch defaults unless you are troubleshooting. See Code2Wav execution for memory requirements and individual optimization controls.
Speech Stage Placement#
Start with the launch examples: the thinker and talker use separate GPUs, and Code2Wav shares the thinker GPU. If you move the thinker, move Code2Wav explicitly when needed and leave memory for both stages. See speech stage placement for workload trade-offs and measurements.
Single-GPU FP8 on H100/H20#
SGLang-Omni can also serve native FP8 Qwen3-Omni checkpoints. Native FP8 uses the checkpoint quantization config when loading the thinker and talker AR stages, while keeping the same Qwen3-Omni request format shown below.
For one-GPU H100/H20 colocated launch, use the FP8 colocated config:
sgl-omni serve \
--config examples/configs/qwen3_omni_fp8_colocated.yaml \
--colocate \
--model-name qwen3-omni \
--port 8008
The config file contains the FP8 checkpoint path: marksverdhei/Qwen3-Omni-30B-A3B-FP8. You can still pass --model-path to override the config value.
The FP8 path keeps dense FP8 GEMM on SGLang auto and defaults native FP8 MoE to CUTLASS when supported. For Qwen3-Omni pipeline launches, SGLANG_JIT_DEEPGEMM_PRECOMPILE=0 is set as a default unless the operator has already set that environment variable. This disables SGLang’s all-M DeepGEMM precompile session while keeping DeepGEMM available for dense FP8 GEMMs.
To opt back into SGLang’s all-M DeepGEMM precompile behavior:
SGLANG_JIT_DEEPGEMM_PRECOMPILE=1 sgl-omni serve \
--config examples/configs/qwen3_omni_fp8_colocated.yaml \
--colocate \
--model-name qwen3-omni \
--port 8008
Single-GPU AutoRound INT4 Thinker on H100/H20#
SGLang-Omni also supports AutoRound INT4 quantized Qwen3-Omni checkpoints. AutoRound uses a 4-bit quantization scheme with group size 128, significantly reducing memory footprint compared to BF16 or FP8.
The public AutoRound checkpoint quantizes the thinker transformer layers. In speech mode, the talker and code2wav stages load as BF16 from the same checkpoint. For one-GPU H100/H20 colocated launch, use the colocated config with the AutoRound checkpoint:
sgl-omni serve \
--config examples/configs/qwen3_omni_colocated_h20.yaml \
--colocate \
--model-name qwen3-omni \
--model-path Intel/Qwen3-Omni-30B-A3B-Instruct-int4-AutoRound \
--port 8008
AutoRound quantization provides:
~50% memory reduction compared to BF16 (from ~60GB to ~30GB)
~25% memory reduction compared to FP8 (from ~40GB to ~30GB)
Accuracy at ultra-low bit widths: maintains high accuracy even at 2–4 bits, requiring minimal tuning effort thanks to its sign-gradient descent optimization.
Server Readiness#
Qwen3-Omni warms up with a chat request containing a small image, one second of audio, and a short instruction. Speech mode requests text and audio output; text-only mode requests text. Each stage that generates tokens is limited to 8 new tokens. See Server Readiness for health status, replica coverage, timeout, and the skip option.
Input / Output Modalities#
Qwen3-Omni accepts text, image, audio, and video input in both text-only and speech deployments. The shared request examples cover image questions, spoken questions with images or video, and text-and-speech replies. For speech output requirements and text-only server behavior, see Speech Output. Realtime audio negotiation has a separate contract described below.
Sampling Parameters#
The shared request parameters document standard sampling fields, output formats, per-stage overrides, and video controls. The table below lists Qwen3-Omni sampling defaults and its talker-specific fields. Standard sampling parameters apply to the thinker; talker parameters apply when modalities includes "audio".
Parameter |
Type |
Default |
Applies to |
|---|---|---|---|
|
float |
|
Thinker |
|
float |
|
Thinker |
|
int |
|
Thinker |
|
float |
|
Thinker |
|
float |
|
Thinker |
|
int |
|
Thinker |
|
float |
|
Talker (audio output only) |
|
float |
|
Talker (audio output only) |
|
int |
|
Talker (audio output only) |
|
float |
|
Talker (audio output only) |
|
int |
|
Talker (audio output only) |
With use_audio_in_video: true, requests where all videos lack audio use video-only processing; mixing videos with and without audio is rejected. Audio decoding errors are reported.
For HTTP and SSE errors, see Known Limitations.
Realtime Speech with Server-Side Turn Detection#
The speech pipeline also streams spoken responses over /v1/realtime with --enable-realtime, with server-side turn detection and barge-in. Its protocol is in Realtime on the speech pipeline; the Session graph that most realtime clients use is in Turn-Based: Qwen3-Omni.
Qwen3-Omni persistent session stages#
The session profile serves Qwen3-Omni as a turn-based realtime voice assistant on /v1/realtime: a VAD node ends each user turn and the model answers it with the conversation so far. Launching on H100 or H200, settings, the protocol and benchmarking are in Full-Duplex Guide.
Speculative Decoding#
The thinker can verify tokens proposed by SpeechSpec’s DFlash draft yuekai/qwen3_omni_30b_a3b_instruct_dflash_block8 or EAGLE3 draft yuekai/qwen3_omni_30b_a3b_instruct_eagle3_audio on a text-only server or in the session profile.
# DFlash: one 8-token block per step
sgl-omni serve \
--model-path Qwen/Qwen3-Omni-30B-A3B-Instruct \
--text-only \
--thinker.engine.speculative_algorithm DFLASH \
--thinker.engine.speculative_draft_model_path yuekai/qwen3_omni_30b_a3b_instruct_dflash_block8 \
--thinker.engine.speculative_num_draft_tokens 8 \
--preprocessing.factory.max_concurrency 4 \
--port 8000
# EAGLE3: a 3-step chain
sgl-omni serve \
--model-path Qwen/Qwen3-Omni-30B-A3B-Instruct \
--text-only \
--thinker.engine.speculative_algorithm EAGLE3 \
--thinker.engine.speculative_draft_model_path yuekai/qwen3_omni_30b_a3b_instruct_eagle3_audio \
--thinker.engine.speculative_num_steps 3 \
--thinker.engine.speculative_eagle_topk 1 \
--thinker.engine.speculative_num_draft_tokens 4 \
--port 8000
Acceptance statistics. Set
return_spec_tokens_details: trueto include thinker draft statistics insglext.spec_tokens_details.Context. These drafts have an 8,192-token context; the prompt, output budget, and speculative reservations must fit. Set
--preprocessing.factory.max_seq_len 8192to reject oversized prompts early.Sampling. On CUDA, DFlash and EAGLE3 with
--thinker.engine.speculative_eagle_topk 1applyrepetition_penaltyexactly as decoding without the draft does; a wider EAGLE3 tree needsrepetition_penalty=1. Usefrequency_penalty=0andpresence_penalty=0. A sampled request also needsmin_p=0, except under EAGLE3 on CUDA withtop_p=1and no logprobs, wheremin_papplies exactly; a greedy request keepsmin_p. Logprobs are returned for every token, each computed from the verify logits as decoding without the draft computes it: afterrepetition_penalty, before top-k, top-p andmin_p. Disablereturn_hidden_states.Scheduling. With the DFlash draft, a request server overlaps each verify round with host work by default. Add
--thinker.factory.enable_async_decode falseto run the synchronous verify loop instead. EAGLE3 and the session profile are synchronous by default; add--thinker.factory.enable_async_decode trueto overlap EAGLE3. With--thinker.factory.async_decode_min_batch_sizeset above 1, a decode batch smaller than it has its result processed before the next batch is chosen; larger decode batches overlap. Mixed prefill/decode batches (enable_mixed_chunk=true) and weight updates are unsupported with a draft.Prefill drain. With overlap, the scheduler processes every prefill’s result before it chooses the next batch by default, so a new request’s first text token does not wait for the verify round launched after its prefill. Decode rounds still overlap.
--thinker.factory.prefill_drain_below_batch_size Ndrains a prefill only while fewer than N requests are decoding, and values below 2 never drain. It applies only with the draft and overlap.Preprocessing. The DFlash command above and
examples/configs/qwen3_omni_dflash.yamlset--preprocessing.factory.max_concurrency 4. The draft serves requests faster, so with serial preprocessing more of them wait for it, and at 16 requests first text p95 was more than 5% later than the server without a draft in every scheduling mode. With 4 on both servers, the default was within 5% at every load from 1 to 16 requests on one H200. Preprocessing stays serial by default because threaded preprocessing changes how requests are batched in the thinker, which changed greedy answers in the Video-MME CI (#1958); on MMMU, two serial runs already disagreed on as many answers as a serial and a threaded run.Overlap trade-offs. Overlap can improve decode throughput, but prefill-heavy workloads or short outputs may have higher TTFT and lower throughput. The table below shows both on one H200.
Prefill boundary. Set
SGLANG_DISABLE_CONSECUTIVE_PREFILL_OVERLAP=1before launch to process the previous prefill batch’s result before launching the next consecutive prefill batch. This can lower TTFT at a throughput cost; decode rounds still followasync_decode_min_batch_size.Execution failure. A failure during speculative overlap stops the pipeline and fails pending requests.
Speech output. A request server needs
--text-onlywith a draft. The session profile keeps speech output with either draft.Sessions. The session profile takes either draft with synchronous decoding. The draft’s 8,192-token context bounds the whole conversation, so add
--thinker.factory.max_seq_len 8192 --preprocessing.factory.max_seq_len 8192to the session command along with the draft flags above.
DFlash against the same server without a draft, on one H200 with SGLang 0.5.23, streamed text, serial preprocessing and the prefix cache off (python -m benchmarks.eval.speculative_sweep with examples/configs/qwen3_omni_dflash.yaml before it set max_concurrency: 4). Each cell is the throughput ratio, then the first-text p95 difference. MMMU uses its first 200 samples and MMSU the 2,000 samples of zhaochenyang20/mmsu-ci-2000. Each cell is the mean of 4 runs; MMMU at 8 and 16 requests is the mean of 8 runs over two rounds. The synchronous row sets enable_async_decode: false, the overlap row enable_async_decode: true, and the default row also prefill_drain_below_batch_size: 4096, which drains every prefill at these loads.
Dataset |
Scheduling |
Concurrency 1 |
4 |
8 |
16 |
|---|---|---|---|---|---|
MMMU |
Synchronous |
1.29x, -41 ms |
1.31x, -16 ms |
1.34x, +101 ms |
1.44x, +68 ms |
MMMU |
Overlap |
1.43x, +29 ms |
1.48x, +3 ms |
1.49x, +62 ms |
1.65x, +214 ms |
MMMU |
Default (overlap and drain) |
1.43x, +2 ms |
1.43x, -46 ms |
1.48x, +29 ms |
1.60x, +118 ms |
MMSU |
Synchronous |
0.91x, +0 ms |
0.89x, +6 ms |
0.85x, +14 ms |
0.77x, +29 ms |
MMSU |
Overlap |
0.88x, +3 ms |
0.88x, +6 ms |
0.85x, +15 ms |
0.77x, +36 ms |
MMSU |
Default (overlap and drain) |
0.86x, +1 ms |
0.86x, +2 ms |
0.84x, +14 ms |
0.76x, +30 ms |
MMMU. First-text differences between the three modes were within run-to-run noise: the standard deviation of per-run p95 was usually 10-80 ms, and a few single runs took 1.0-1.7 s. At 16 requests the default’s delay was beyond that noise; Preprocessing above gives the cause and the setting that removes it.
MMSU. The answers are short, so the draft does not pay off in any scheduling mode.
On a single H20, EAGLE3 delivered lower request throughput than the no-draft baseline on both MMMU and MMSU. Use qwen3_omni_eagle3.yaml to benchmark EAGLE3.
The shared speculative sweep supports omni-mmmu (image input) and omni-mmsu (audio input), both with streamed text output. Use examples/configs/qwen3_omni_dflash.yaml or examples/configs/qwen3_omni_eagle3.yaml; the sweep derives the matching no-draft configuration. For a small functional check:
CUDA_VISIBLE_DEVICES=0 python -m benchmarks.eval.speculative_sweep \
--draft-config examples/configs/qwen3_omni_dflash.yaml \
--workload omni-mmmu --output-dir results/sweep/qwen3_omni_dflash_smoke \
--concurrencies 1,2 --repeats 1 --max-samples 4 --order AB \
--skip-gpu-cleanup -- --repo-id zhaochenyang20/mmmu-ci-50 --max-tokens 128
--skip-gpu-cleanup stops only the managed server and skips the GPU memory release wait. Peak GPU memory covers the whole device, including any other processes. For the full c1–c64 ABBA sweep with three repeats per load, remove --max-samples, --concurrencies, --repeats, --order and the client arguments after --. Use -- --repo-id PATH to compare both sides on the same local dataset. To measure repeated prefixes, pass a dataset with duplicated prompts and add --prefix-cache before --. Check the cached prompt token share in the report to verify reuse.
The report includes accuracy, request throughput, end-to-end and first-text p95 latency, failures, sampled GPU memory, and KV and acceptance statistics from the server log.
Known Limitations#
Use the same frame sampling rate for videos in one request. This is how many frames the model reads per second, not the original video frame rate. Different sampling rates in the same request cause an error.
Check the deployment layout when using multiple GPUs. The colocated layout does not support splitting the text-generation model across two GPUs. If you need that setup, choose the disaggregated layout in Server Configuration.
Long inputs leave less room for the answer. The model has a limit on how much input and output it can handle together. If a request is too long, shorten the input or ask for a shorter answer. A long spoken question can also cause the audio reply to stop before the text reply finishes.
Advanced Guides#
Speech tuning: speech chunking, Code2Wav GPU optimizations, and stage placement measurements.