Skip to main content

Multi-Image Inference

Qwen3-VL can process multiple images in a single request, making it ideal for image comparison and analysis tasks.

Image Input Formats

Supported formats:

Resolution Control with Processor

Control image resolution using the processor’s size parameter:

Understanding Size Parameters

  • longest_edge (max_pixels): Maximum number of pixels allowed (H × W ≤ max_pixels)
  • shortest_edge (min_pixels): Minimum allowable pixel count
  • For Qwen3-VL: 32× spatial compression ratio
The size parameters control the visual token budget. Adjust based on your GPU memory and quality requirements.

Adding Vision IDs

For better reference in multi-image scenarios, add labels to images:

Performance Tips

For multi-image scenarios, enable flash_attention_2 for better memory efficiency:

Next Steps

Pixel Control

Advanced resolution control with qwen-vl-utils

Batch Inference

Process multiple requests efficiently