-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Model][VLM] Add Qwen2-VL model support #7905
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
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
0a648b2
Add support to Qwen2-VL.
fyabc 320df57
Merge branch 'refs/heads/main' into add_qwen2_vl_new
fyabc 7f96df8
Reformat
fyabc fbf2b8b
Merge branch 'refs/heads/main' into add_qwen2_vl_new
fyabc bcaff4f
Update transformers link.
fyabc f2185bf
Bugfix of mrope_input_positions in model_runner.py.
fyabc 60448cb
Rename pixel_values_video to pixel_values_videos in qwen2_vl.py.
fyabc 71a77b1
Fix the bug of MultiModalInputs.batch() when passing different modali…
fyabc 60c4cbd
Fix the bug when running OpenAI-compatible API server.
fyabc e29ff54
Merge branch 'refs/heads/main' into add_qwen2_vl_new
fyabc ddb7138
Refactor qwen2_vl.py based on review comments.
fyabc 14fe12a
reformat
fyabc 89def23
reformat
fyabc e721e60
Fix the bug of model_is_mrope in model_runner.py.
fyabc d66d167
fix type hints in qwen2_vl.py
fyabc acd85ed
Update mm input processors according to new MultiModalInput.batch() i…
fyabc 8d762c6
Merge branch 'refs/heads/main' into add_qwen2_vl_new
fyabc 87ba5ed
Fix SamplerOutput.
fyabc cda300a
Fix bug of quantization.
fyabc da03a3f
Bugfix of type hints in qwen2_vl.py.
fyabc 25fb189
reformat.
fyabc d01530d
Merge branch 'main' into add_qwen2_vl_new
ywang96 faebfe4
fix typo from resolving conflict
ywang96 e492e53
Merge branch 'refs/heads/main' into add_qwen2_vl_new
fyabc 2e87db7
Bugfix in qwen2_vl.py.
fyabc 39a1069
Adding xformers implementation
fyabc 855c78b
Fix bug of attn_bias in xformers implementation
fyabc 091983f
Fix bug in xformers implementation, and add backend check in vision a…
fyabc b406571
Merge branch 'refs/heads/main' into add_qwen2_vl_new
fyabc 7739588
Bugfix in qwen2_vl.py.
fyabc 5bab9ba
Bugfix in qwen2_vl.py.
fyabc 4587346
reformat.
fyabc ffad79f
Refactor MRotaryEmbedding.
fyabc 9e7a946
Merge branch 'refs/heads/main' into add_qwen2_vl_new
fyabc d527417
Add "video" into ModalityStr.
fyabc 6f3116c
Add Qwen2-VL examples.
fyabc 386f302
Optimizer Qwen2-VL input processor. Update document.
fyabc c64c217
Update model notes and requirements-common.txt.
fyabc 6bdefd6
Update model notes.
fyabc 33dd048
Skip loading model
DarkLight1337 369ce7d
Merge branch 'main' into add_qwen2_vl_new
DarkLight1337 282c66a
format
DarkLight1337 14ef94d
Increase `max_model_len` to fit the original image
DarkLight1337 09b7a4f
Merge branch 'main' into add_qwen2_vl_new
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
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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import pytest | ||
import transformers | ||
|
||
from vllm.model_executor.models import _MODELS, ModelRegistry | ||
|
||
|
||
@pytest.mark.parametrize("model_cls", _MODELS) | ||
def test_registry_imports(model_cls): | ||
if (model_cls == "Qwen2VLForConditionalGeneration" | ||
and transformers.__version__ < "4.45"): | ||
pytest.skip("Waiting for next transformers release") | ||
|
||
# Ensure all model classes can be imported successfully | ||
ModelRegistry.resolve_model_cls([model_cls]) |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.