diff --git a/sgl-router/src/multimodal/vision/image_processor.rs b/sgl-router/src/multimodal/vision/image_processor.rs index d8e9e3cfd..5c305e322 100644 --- a/sgl-router/src/multimodal/vision/image_processor.rs +++ b/sgl-router/src/multimodal/vision/image_processor.rs @@ -265,6 +265,7 @@ impl ImageProcessorRegistry { /// - `llava-next` -> LlavaNextProcessor /// - `llava` -> LlavaProcessor (also matches llava-1.5, etc.) /// - `qwen2-vl` -> Qwen2VLProcessor + /// - `qwen2.5-vl` -> Qwen2VLProcessor (same preprocessing as Qwen2-VL) pub fn with_defaults() -> Self { let mut registry = Self::new(); @@ -291,6 +292,20 @@ impl ImageProcessorRegistry { Box::new(super::processors::Qwen2VLProcessor::new()), ); + // Register Qwen2.5-VL (uses identical preprocessing to Qwen2-VL) + registry.register( + "qwen2.5-vl", + Box::new(super::processors::Qwen2VLProcessor::new()), + ); + registry.register( + "qwen2_5-vl", + Box::new(super::processors::Qwen2VLProcessor::new()), + ); + registry.register( + "qwen2_5_vl", + Box::new(super::processors::Qwen2VLProcessor::new()), + ); + registry } } diff --git a/sgl-router/src/multimodal/vision/processors/mod.rs b/sgl-router/src/multimodal/vision/processors/mod.rs index 07e68effa..f9a165454 100644 --- a/sgl-router/src/multimodal/vision/processors/mod.rs +++ b/sgl-router/src/multimodal/vision/processors/mod.rs @@ -8,6 +8,7 @@ //! - **LLaVA 1.5** (`llava`): CLIP-based preprocessing with configurable aspect ratio //! - **LLaVA-NeXT** (`llava`): Multi-crop anyres processing //! - **Qwen2-VL** (`qwen2_vl`): Dynamic resolution with smart resizing +//! - **Qwen2.5-VL** (`qwen2_vl`): Same processor as Qwen2-VL (identical preprocessing) pub mod llava; pub mod qwen2_vl;