This document is relevant for: Trn2, Trn3

Qwen3-VL (Dense) Model Recipe#

Introduction#

Qwen3-VL is a multimodal language model developed by the Qwen team. It supports image-text understanding, visual reasoning, OCR, document analysis, and multi-image comparison. The -Instruct variant is instruction-tuned for chat and task-following, while the -Thinking variant adds extended chain-of-thought reasoning.

Qwen3-VL is now supported for inference serving with vLLM Neuron Plugin using the Neuron SDK on AWS Trainium2 (trn2) and Trainium3 (trn3) hardware.

Compatible model checkpoints:

Model

HuggingFace

Hardware

Quantization

Qwen3-VL-32B-Instruct

Qwen/Qwen3-VL-32B-Instruct

Trn2, Trn3

BF16, MXFP8 (Trn3 only)

Qwen3-VL-32B-Thinking

Qwen/Qwen3-VL-32B-Thinking

Trn2, Trn3

BF16, MXFP8 (Trn3 only)

Qwen3-VL-8B-Instruct

Qwen/Qwen3-VL-8B-Instruct

Trn2, Trn3

BF16, MXFP8 (Trn3 only)

Qwen3-VL-8B-Thinking

Qwen/Qwen3-VL-8B-Thinking

Trn2, Trn3

BF16, MXFP8 (Trn3 only)

The -Thinking checkpoint shares the same architecture and serving path as -Instruct and runs with the identical configuration. The accuracy numbers below were measured on the -Thinking variant.

Qwen3-VL is not published with MXFP8 weights, follow the tutorial to quantize the BF16 checkpoint offline.

Features#

Per-model feature availability for Qwen3-VL. See the features guide for configuration details.

Category

Feature

Status

Multimodal Inputs

Text

✅

Single image + text

✅

Multi-image + text

✅

Video + text

✅

Quantization

BF16

✅

MXFP8 (Trn3 only)

✅

Parallelism

Tensor parallelism (TP)

✅

Encoder parallelism

✅

Pipeline parallelism (PP)

❌

Context parallelism (CP)

❌

Performance

On-device sampling (greedy, top-k, top-p)

✅

Disaggregated encoder (EPD) (1E1PD / xEyPD)

✅

Segmented prefill

✅

Prefix caching (APC)

✅

Chunked prefill (mixed batching)

❌

Compilation

torch.compile (XLA backend)

✅

CPU mode (testing)

✅

Runtime

Model Runner V2

✅

Status legend:

  • ✅ Supported: integrated and tested for Qwen3-VL

  • ❌ Not supported: may be considered for future releases

This model runs on Model Runner V2 (MRv2) by default, as one server, as data-parallel replicas, and as the pools of an EPD deployment. Other serving modes select Model Runner V1 (MRv1). See Configurations that use MRv1.

The tutorial runs Qwen3-VL-32B at tensor_parallel_size=4 and LNC 2. A trn2.48xlarge has 64 NeuronCores at LNC 2 and 128 at LNC 1. See logical_nc_config.

Multi-image input is validated up to 30 images at 512x512 resolution.

Encoder parallelism shards the encoder by the num_blocks dimension of the block-packed images (unlike text DP, which shards by request batch), configurable via encoder_neuron_config. See encoder parallelism for details.

Long video#

Set video_sharding to true in encoder_neuron_config to serve videos that do not fit one encoder graph. The processor splits such a video into shards, and each shard fills the largest graph of its block size. These rules apply:

  • Each encoder run uses the smallest attention block that holds one temporal patch group (2 frames).

  • A shard holds the frames that fit the graph: block_size x num_blocks raw tokens. num_blocks counts the blocks of all vision DP ranks.

  • Make the largest graph hold at least one prefill step of embeds: max_num_batched_tokens x 4 raw tokens. Smaller shards make the time to first token longer.

  • Keep max_num_batched_tokens at 8192. With segmented prefill, the server rejects a larger value, because a 16,384-token step with shards of the same size gave wrong output.

Settings for Qwen3-VL-32B on Trn3 (MXFP8 text model, BF16 vision encoder), with video_sharding true and max_num_batched_tokens 8192. Each row sets encoder_graph_shapes (num_blocks counts all vision DP ranks). Each row runs at LNC 2, so set "logical_nc_config": 2 in --additional-config. At LNC 1, the TP4 weights leave no HBM for the KV cache, and the TP8 MXFP8 MLP prefill kernel does not compile.

Use

TP

encoder_graph_shapes

max_model_len

max_num_seqs

10-minute video only

4

[[1024, 8], [1024, 32]]

98304

1

10-minute video and images up to 720p

8

[[1024, 8], [1024, 16], [1024, 32], [1024, 64], [4096, 8], [4096, 16]]

81920

3

1-hour video

8

[[1024, 8], [1024, 32]]

245760

1

Images up to 1080p, most requests per second

8

[[8192, 8]]

81920

3

Images up to 1080p, shortest 720p time to first token

16

[[1024, 16], [1024, 32], [1024, 64], [4096, 16], [8192, 16]]

81920

3

The 10-minute video has 600 frames and the 1-hour video has 1,800 frames, at 512x512. Use separate servers for 1-hour video and for concurrent traffic. The scheduler admits requests by max_model_len, and the decode time of each token increases with max_model_len. At TP8, a block of 8192 together with a smaller block does not fit in device memory.

Accuracy Evaluation#

Benchmark: POPE (Polling-based Object Probing Evaluation): 5,000 binary Yes/No questions about object presence in images across three difficulty subsets: popular, adversarial, random. Results are from the open-source VLMEvalKit harness.

Metric

32B-Thinking, Neuron Trn2 BF16

Overall F1

85.94

Adversarial F1

84.86

Popular F1

85.63

Random F1

87.38

Reproduce: Serve the -Thinking checkpoint following the tutorial, then run VLMEvalKit’s run.py against the running server over its OpenAI-compatible endpoint:

git clone https://github.com/open-compass/VLMEvalKit.git
cd VLMEvalKit && git checkout fd3884b && pip install . && cd ..
python VLMEvalKit/run.py --data POPE --model Qwen3-VL-32B-Thinking \
    --base-url http://localhost:8000/v1 --max-tokens 256

Tutorials#

This document is relevant for: Trn2, Trn3