generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 87
Upgrade vllm to 0.11.0 and set vllm_aysnc_service.py as the default handler #2918
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
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b49bd7e
Update vllm version to 0.11.0
1ef58cd
Fix LogProb import for vllm 0.11.0
23e8fe8
Make vllm_async_service default handler for vllm and add default roll…
f228a8a
Add fixes for vllm nightly build
be55740
Add fixes for vllm 0.11.1
xyang16 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
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 |
|---|---|---|
|
|
@@ -555,15 +555,15 @@ def test_gemma_2b(self): | |
|
|
||
|
Member
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. Let's add some tests for the new models supported in vLLM 0.11, atleast Qwen3-VL and Qwen3-Next |
||
| def test_llama2_7b_chat(self): | ||
| with Runner('lmi', 'llama2-7b-chat') as r: | ||
| prepare.build_vllm_model("llama2-7b-chat") | ||
| prepare.build_vllm_async_model("llama2-7b-chat") | ||
| r.launch() | ||
| client.run("vllm_chat llama2-7b-chat".split()) | ||
|
|
||
| @pytest.mark.skipif(not is_applicable_cuda_capability(89), | ||
| reason="Unsupported CUDA capability") | ||
| def test_qwen2_7b_fp8(self): | ||
| with Runner('lmi', 'qwen2-7b-fp8') as r: | ||
| prepare.build_vllm_model("qwen2-7b-fp8") | ||
| prepare.build_vllm_async_model("qwen2-7b-fp8") | ||
| r.launch() | ||
| client.run("vllm qwen2-7b-fp8".split()) | ||
|
|
||
|
|
@@ -576,7 +576,7 @@ def test_llama3_8b_chunked_prefill(self): | |
|
|
||
| def test_falcon_11b_chunked_prefill(self): | ||
| with Runner('lmi', 'falcon-11b-chunked-prefill') as r: | ||
| prepare.build_vllm_model("falcon-11b-chunked-prefill") | ||
| prepare.build_vllm_async_model("falcon-11b-chunked-prefill") | ||
| r.launch() | ||
| client.run( | ||
| "vllm falcon-11b-chunked-prefill --in_tokens 1200".split()) | ||
|
|
@@ -589,31 +589,31 @@ def test_llama_68m_speculative_medusa(self): | |
|
|
||
| def test_llama_68m_speculative_eagle(self): | ||
| with Runner('lmi', 'llama-68m-speculative-eagle') as r: | ||
| prepare.build_vllm_model("llama-68m-speculative-eagle") | ||
| prepare.build_vllm_async_model("llama-68m-speculative-eagle") | ||
| r.launch() | ||
| client.run("vllm llama-68m-speculative-eagle".split()) | ||
|
|
||
| def test_llama3_1_8b_instruct_tool(self): | ||
| with Runner('lmi', 'llama3-1-8b-instruct-tool') as r: | ||
| prepare.build_vllm_model("llama3-1-8b-instruct-tool") | ||
| prepare.build_vllm_async_model("llama3-1-8b-instruct-tool") | ||
| r.launch() | ||
| client.run("vllm_tool llama3-1-8b-instruct-tool".split()) | ||
|
|
||
| def test_mistral_7b_instruct_v03_tool(self): | ||
| with Runner('lmi', 'mistral-7b-instruct-v03-tool') as r: | ||
| prepare.build_vllm_model("mistral-7b-instruct-v03-tool") | ||
| prepare.build_vllm_async_model("mistral-7b-instruct-v03-tool") | ||
| r.launch() | ||
| client.run("vllm_tool mistral-7b-instruct-v03-tool".split()) | ||
|
|
||
| def test_deepseek_r1_distill_qwen_1_5b(self): | ||
| with Runner('lmi', 'deepseek-r1-distill-qwen-1-5b') as r: | ||
| prepare.build_vllm_model("deepseek-r1-distill-qwen-1-5b") | ||
| prepare.build_vllm_async_model("deepseek-r1-distill-qwen-1-5b") | ||
| r.launch() | ||
| client.run("vllm_chat deepseek-r1-distill-qwen-1-5b".split()) | ||
|
|
||
| def test_tiny_llama_input_length_exceeded(self): | ||
| with Runner('lmi', 'tinyllama-test-input-length-exceeded') as r: | ||
| prepare.build_vllm_model("tinyllama-input-len-exceeded") | ||
| prepare.build_vllm_async_model("tinyllama-input-len-exceeded") | ||
| r.launch() | ||
| start = time.perf_counter() | ||
| with pytest.raises(ValueError, match=r".*424.*"): | ||
|
|
@@ -1020,16 +1020,16 @@ def test_phi3_v(self): | |
|
|
||
| def test_pixtral_12b(self): | ||
| with Runner('lmi', 'pixtral-12b') as r: | ||
| prepare.build_vllm_model('pixtral-12b') | ||
| prepare.build_vllm_async_model('pixtral-12b') | ||
| r.launch() | ||
| client.run("multimodal pixtral-12b".split()) | ||
|
|
||
| # MLlama is only supported by vllm backend currently | ||
| def test_mllama_11b(self): | ||
| with Runner('lmi', 'llama32-11b-multimodal') as r: | ||
| prepare.build_vllm_model('llama32-11b-multimodal') | ||
| r.launch() | ||
| client.run("multimodal llama32-11b-multimodal".split()) | ||
| # MLlama is not supported in vllm v1, see https://github.com/vllm-project/vllm/issues/27198 | ||
| # def test_mllama_11b(self): | ||
| # with Runner('lmi', 'llama32-11b-multimodal') as r: | ||
| # prepare.build_vllm_model('llama32-11b-multimodal') | ||
| # r.launch() | ||
| # client.run("multimodal llama32-11b-multimodal".split()) | ||
|
|
||
|
|
||
| class TestLmiDistPipelineParallel: | ||
|
|
||
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.
We need to fix the wheel name to be consistent with the OSS vllm version. This is confusing.
Uh oh!
There was an error while loading. Please reload this page.
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.
This is nightly wheel from vllm. Not from us. We will move to 0.11.1 wheel once it's released.