Overview
We recommend using vLLM for fast Qwen3-VL deployment and inference. You need to installvllm>=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 currentconfig.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
Modifymax_position_embeddings and rope_scaling in config.json:
vLLM Server Arguments
When using vLLM for serving, enable YaRN with additional arguments:Next Steps
- Explore SGLang deployment as an alternative
- Try the Docker deployment for quick setup
- Learn about the DashScope API service