-
Notifications
You must be signed in to change notification settings - Fork 2
Extended SupportsMultiModal #12
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
Extended SupportsMultiModal #12
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 You ask your reviewers to trigger select CI tests on top of 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 If you have any questions, please reach out to us on Slack at https://slack.vllm.ai. 🚀 |
|
Hello, |
| tower_model="visual.", | ||
| ) | ||
|
|
||
| def get_num_mm_encoder_tokens( |
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.
@DarkLight1337 @Isotr0py @prashanth058 To avoid everyone changing things back and forth, what do you think - should the get_num_mm_encoder_tokens, get_num_mm_connector_tokens be implemented in processinfo or in model? I personally lean towards making them functions of model.
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.
Agree. Since these methods are used for building LoRA mappings during execution rather than preprocessing, makes sense for get_num_mm_encoder_tokens, get_num_mm_connector_tokens to live on the model.
get_allowed_mm_limits should probably continue to live on the processinfo though?
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.
Sure! I have removed get_allowed_mm_limits().
I attempted to rewrite the logic in the model_runner files using that function, but it appears this issue has already been resolved
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.
Same I also prefer implementing them on the model
Purpose
Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.