-
Notifications
You must be signed in to change notification settings - Fork 26
Upstream compatibility tests #343
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 4 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
30cb893
disable hack for newer version
maxdebayser 0a7a21e
Add tests to remind us of removing deprecated compatibility code
maxdebayser db75814
fix tests
maxdebayser 09cfa9f
fix linting
maxdebayser 5d0a486
Merge branch 'main' into embed_upstream_compat
maxdebayser afaf709
test reduced set of backward compatibility tests
maxdebayser 1d236e4
second try
maxdebayser 9045fba
fix boolean
maxdebayser 798297b
exclude non-cpu tests for backward compatibility testing
maxdebayser 3fedfb3
Merge branch 'main' into embed_upstream_compat
maxdebayser 00748c6
disable sendnn for ci tests
maxdebayser 88f202e
increase timeout
maxdebayser 70d022a
fix test markers
maxdebayser 700b80f
Merge branch 'main' into embed_upstream_compat
maxdebayser f94b1a9
add more compat tests
maxdebayser 839df95
remove debug prints
maxdebayser dc53823
address review comments
maxdebayser 367fe27
Merge branch 'main' into embed_upstream_compat
maxdebayser 8b67c5f
address review comments
maxdebayser e79e12b
Merge branch 'main' into embed_upstream_compat
maxdebayser 168afd1
set the old default model that is already cached
maxdebayser a38da53
use the model fixture instead
maxdebayser 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import os | ||
|
|
||
| import pytest | ||
|
|
||
| pytestmark = pytest.mark.compat | ||
|
|
||
| VLLM_VERSION = os.getenv("TEST_VLLM_VERSION", "default") | ||
|
|
||
|
|
||
| def test_vllm_bert_support(monkeypatch): | ||
| ''' | ||
| Test if the vllm version under test already has Bert support for V1 | ||
| ''' | ||
|
|
||
| from vllm.model_executor.models.bert import BertEmbeddingModel | ||
|
|
||
| bert_supports_v0_only = getattr(BertEmbeddingModel, "supports_v0_only", | ||
| False) | ||
|
|
||
| if VLLM_VERSION == "main": | ||
| assert not bert_supports_v0_only | ||
| else: | ||
| assert bert_supports_v0_only, ( | ||
| "The currently supported vLLM version already" | ||
| "supports Bert in V1. Remove the compatibility workarounds.") | ||
maxdebayser marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.