-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[VLM] Merged multi-modal processor for Molmo #12966
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
Merged
simon-mo
merged 25 commits into
vllm-project:main
from
DarkLight1337:molmo-mm-processor
Feb 13, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
7d46ca2
[VLM] Merged multi-modal processor for Molmo
DarkLight1337 12bd15e
Format
DarkLight1337 5dacf23
Merge branch 'main' into molmo-mm-processor
DarkLight1337 aac9a91
Update
DarkLight1337 a3023e2
Update tests
DarkLight1337 44f5844
Fix
DarkLight1337 9a36585
Fix incorrect type
DarkLight1337 27f7fc1
Factor out hardcoded pooling size
DarkLight1337 fba9f85
Handle different image sizes across batches
DarkLight1337 921804f
Update test to work with different image sizes
DarkLight1337 57aba4e
Scatter the patch embeddings correctly
DarkLight1337 843688d
Simplify test patch
DarkLight1337 2e3b072
Fix tests
DarkLight1337 c2a8aec
Clean up
DarkLight1337 779637d
Pass all crops in one call
DarkLight1337 75ad181
Merge branch 'main' into molmo-mm-processor
DarkLight1337 d11de72
Remove magic number
DarkLight1337 4784052
avoid hardcode token_id and fix molmo-o
Isotr0py 95de587
Add Molmo-O to test suite
DarkLight1337 0639a6b
Merge branch 'main' into molmo-mm-processor
DarkLight1337 7b17d9f
Clean up
DarkLight1337 f4931cd
Rename
DarkLight1337 9a85d32
Make cached property
DarkLight1337 c7d8684
Add example and clean up code blocks
DarkLight1337 524c1f7
Move note
DarkLight1337 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -404,11 +404,10 @@ | |
"molmo": VLMTestInfo( | ||
models=["allenai/Molmo-7B-D-0924"], | ||
test_type=(VLMTestType.IMAGE), | ||
prompt_formatter=lambda img_prompt:"User: " + img_prompt + " Assistant:", # noqa: E501 | ||
prompt_formatter=identity, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
max_model_len=4096, | ||
max_num_seqs=2, | ||
image_size_factors=[(),(1.0, 1.0, 1.0)], | ||
patch_hf_runner=model_utils.mlomo_patch_hf_runner, | ||
patch_hf_runner=model_utils.molmo_patch_hf_runner, | ||
postprocess_inputs=model_utils.molmo_post_processor, | ||
), | ||
# Tests for phi3v currently live in another file because of a bug in | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Keep it consistent with the other models