Add Qwen3-VL-Embedding-2B image input support#232
Conversation
|
Pushed a follow-up formatting fix in Current run status is |
Anush008
left a comment
There was a problem hiding this comment.
Thanks for taking the time to contribute @cornmander
| let images = ["tests/assets/image_0.png", "tests/assets/image_1.png"]; | ||
| let embeddings = model.embed_images(&images).expect("embed images"); | ||
|
|
||
| assert_eq!(embeddings.len(), images.len()); |
There was a problem hiding this comment.
Please add assertions equating embedding values from the Python counterpart code.
Like we do at https://github.com/Anush008/fastembed-rs/blob/main/tests/text-embeddings.rs
We have ensure Python and Rust produce the same vectors.
|
Addressed the review feedback in Changes made:
Validation run:
|
## [5.12.0](v5.11.0...v5.12.0) (2026-03-05) ### 🍕 Features * Add Qwen3-VL-Embedding-2B image input support ([#232](#232)) ([b9a6280](b9a6280))
|
🎉 This PR is included in version 5.12.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Summary
Qwen3VLEmbeddingAPI for Qwen3-VL multimodal embedding modelsembed_images(...)andembed_image_bytes(...)embed_texts(...)and existingQwen3TextEmbeddingImplementation notes
qwen3feature (candle backend) and enablesdep:imagefor this featurepatch_size,merge_size, temporal duplication)<|image_pad|>placeholder with the exact number of image patch tokensValidation
cargo fmt --allcargo checkcargo test --features qwen3 models::qwen3::tests -- --nocapturecargo test --features qwen3 --test qwen3 qwen3_vl_2b_text_embed -- --nocapturecargo test --features qwen3 --test qwen3 qwen3_vl_2b_image_embed -- --nocaptureNew/updated interfaces
Qwen3VLEmbedding::from_hf(...)Qwen3VLEmbedding::embed_texts(...)Qwen3VLEmbedding::embed_images(...)Qwen3VLEmbedding::embed_image_bytes(...)