Skip to main content

Overview

We recommend using vLLM for fast Qwen3-VL deployment and inference. You need to install vllm>=0.11.0 to enable Qwen3-VL support. For more details, check the vLLM official documentation for multimodal models.

Installation

Install the required dependencies:

Online Serving

You can start a vLLM server to serve models efficiently with an OpenAI-style API.
The following launch command is applicable to H100/H200. For more efficient deployment or deployment on other GPUs, please refer to the vLLM community guide.

Starting the vLLM Server

Image Request Example

Once the server is running, you can make requests using the OpenAI client:

Video Request Example

Offline Inference

You can also use vLLM for local offline inference without running a server:

Extended Context Length with YaRN

The current config.json supports context length up to 256K tokens. To handle extensive inputs exceeding 256K tokens, you can enable YaRN for enhanced length extrapolation.

Configuration Method

Modify max_position_embeddings and rope_scaling in config.json:

vLLM Server Arguments

When using vLLM for serving, enable YaRN with additional arguments:
Because Interleaved-MRoPE’s position IDs grow more slowly than vanilla RoPE, use a smaller scaling factor. For example, to support 1M context with 256K context length, set factor=2 or 3 — not 4.

Next Steps