-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[Model] Add smolvlm support #16017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Model] Add smolvlm support #16017
Conversation
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
bc8df55 to
88f116b
Compare
|
test vllm serve HuggingFaceTB/SmolVLM2-2.2B-Instruct --limit-mm-per-prompt image=4multi-image # python examples/online_serving/openai_chat_completion_client_for_multimodal.py --chat-type multi-image
INFO 04-03 13:37:43 [__init__.py:239] Automatically detected platform cuda.
Chat completion output: In the center of this image, the majestic lion commands attention. Its fur, a rich, full-grown orange, is bathed in the warm glow of the sun, reflecting off the tall grass it stands in. The lion's black and brown mane, full and well-groomed, cascades overtext-only # python examples/online_serving/openai_chat_completion_client_for_multimodal.py --chat-type text-only
INFO 04-03 15:41:36 [__init__.py:239] Automatically detected platform cuda.
Chat completion output: The capital of France is Paris. It is the country's largest city, cultural center, and a global hub for fashion, gastronomy, and art. Paris is located in northern France on the Seine River and is renowned globally for its beautiful architecture, historical landmarks, and iconic landmarks such as the Eiffel Tower, Notresingle-image # python examples/online_serving/openai_chat_completion_client_for_multimodal.py
INFO 04-03 13:30:35 [__init__.py:239] Automatically detected platform cuda.
Chat completion output from image url: This image shows a vibrant scene of a wooden boardwalk path that extends through a lush, green grassy field. The boardwalk, made of wooden planks, is prominently displayed in the foreground, inviting viewers to imagine themselves walking along its length. The grassy field underfoot is a vibrant green, dotted with occasional wildflowers that add
Chat completion output from base64 encoded image: This image captures the serene beauty of a wooden boardwalk that cuts through a verdant, sloping field adorned with vibrant green grass. The boardwalk, constructed from wooden planks, gently curves from the bottom left to the center of the image, inviting viewers to step into this pastoral scene. The grass, lush and ver |
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
DarkLight1337
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise looks good, assuming that you have run the example scripts already
Head branch was pushed to by a user without write access
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
|
test |
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
|
test |
Hi, @DarkLight1337 Should the |
Signed-off-by: chaunceyjiang <[email protected]>
Head branch was pushed to by a user without write access
Signed-off-by: chaunceyjiang <[email protected]>
Let's just add it to the test requirements, not common |
Signed-off-by: chaunceyjiang <[email protected]>
|
@DarkLight1337 The e2e test failures seem unrelated to my code. |
Signed-off-by: chaunceyjiang <[email protected]> Signed-off-by: Yang Wang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]>
Signed-off-by: chaunceyjiang <[email protected]> Signed-off-by: Mu Huai <[email protected]>


Add smolvlm support
FIX #15541