Skip to main content
Streaming allows you to receive model responses incrementally, which is useful for providing real-time feedback to users. Qwen3-VL supports streaming through vLLM and SGLang deployment.

vLLM Server Setup

Launch a vLLM server with streaming support:

SGLang Server Setup

Alternatively, launch an SGLang server:

Streaming Client Example

Once your server is running, you can use the OpenAI client to stream responses:

Video Streaming Example

You can also stream responses for video inputs:

Server Configuration Options

vLLM Options

  • --tensor-parallel-size: Number of GPUs for tensor parallelism
  • --mm-encoder-tp-mode: Multimodal encoder tensor parallel mode
  • --enable-expert-parallel: Enable expert parallelism for MoE models
  • --async-scheduling: Enable async scheduling for better throughput
  • --media-io-kwargs: Configure video frame sampling

SGLang Options

  • --tp: Tensor parallel size
  • --model-path: Path to model checkpoint
  • --host and --port: Server address configuration

Installation Requirements

Benefits of Streaming

  • Real-Time Feedback: Users see responses as they’re generated
  • Better UX: Reduces perceived latency
  • Early Termination: Can stop generation early if needed
  • Progress Indication: Shows the model is actively processing

Additional Resources

For more details on deployment and serving options, refer to the vLLM documentation and the vLLM community guide for Qwen3-VL.