-
-
Notifications
You must be signed in to change notification settings - Fork 15.6k
[CI] Sync test dependency with test.in for torch nightly #19632
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
23 commits
Select commit
Hold shift + click to select a range
249aab6
final
yangw-dev e14a4e0
final
yangw-dev 98cf80a
Adding "AMD: Multi-step Tests" to amdproduction. (#19508)
Concurrensee 5c19484
[BugFix] Fix DP Coordinator incorrect debug log message (#19624)
njhill fc81e39
final
yangw-dev e649cd6
Update tools/generate_nightly_torch_test.py
yangw-dev df50191
Merge branch 'main' into synctestdependency
yangw-dev 3543362
final
yangw-dev f6a4fe5
final
yangw-dev 256107d
final
yangw-dev ac2e113
final
yangw-dev 193a0a6
final
yangw-dev a23e267
final
yangw-dev ebfe912
final
yangw-dev 371754a
final
yangw-dev ede3836
final
yangw-dev 081e57f
final
yangw-dev 66fbc7f
final
yangw-dev 4cddf8f
fix error test
yangw-dev c7515b9
fix error test
yangw-dev 353ef53
fix error test
yangw-dev b245e6c
fix error test
yangw-dev d63c6ac
Merge branch 'main' into synctestdependency
yangw-dev 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 |
|---|---|---|
| @@ -1,47 +1,50 @@ | ||
| # Dependency that able to run entrypoints test | ||
| # pytest and its extensions | ||
| # testing | ||
| pytest | ||
| pytest-asyncio | ||
| tensorizer>=2.9.0 | ||
| pytest-forked | ||
| pytest-mock | ||
| pytest-asyncio | ||
| pytest-rerunfailures | ||
| pytest-shard | ||
| pytest-timeout | ||
|
|
||
| librosa # required by audio tests in entrypoints/openai | ||
| sentence-transformers # required for embedding tests | ||
| transformers==4.52.4 | ||
| transformers_stream_generator # required for qwen-vl test | ||
| numba == 0.61.2; python_version > '3.9' | ||
| # testing utils | ||
| boto3 | ||
| botocore | ||
| datasets | ||
| ray >= 2.10.0 | ||
| backoff # required for phi4mm test | ||
| blobfile # required for kimi-vl test | ||
| einops # required for MPT, qwen-vl and Mamba | ||
| httpx | ||
| librosa # required for audio tests | ||
| vocos # required for minicpmo_26 test | ||
| peft | ||
| runai-model-streamer==0.11.0 | ||
| runai-model-streamer-s3==0.11.0 | ||
| tensorizer>=2.9.0 | ||
| lm-eval==0.4.8 | ||
| buildkite-test-collector==0.1.9 | ||
| pqdm | ||
| ray[cgraph,default]>=2.43.0, !=2.44.* # Ray Compiled Graph, required by pipeline parallelism tests | ||
| sentence-transformers # required for embedding tests | ||
| soundfile # required for audio tests | ||
| jiwer # required for audio tests | ||
| timm # required for internvl test | ||
| transformers_stream_generator # required for qwen-vl test | ||
| matplotlib # required for qwen-vl test | ||
| mistral_common[opencv] >= 1.6.2 # required for pixtral test | ||
| num2words # required for smolvlm test | ||
| opencv-python-headless >= 4.11.0 # required for video test | ||
| datamodel_code_generator # required for minicpm3 test | ||
| lm-eval[api]==0.4.8 # required for model evaluation test | ||
|
|
||
| # required for quantization test | ||
| mteb>=1.38.11, <2 # required for mteb test | ||
| transformers==4.52.4 | ||
| tokenizers==0.21.1 | ||
| huggingface-hub[hf_xet]>=0.30.0 # Required for Xet downloads. | ||
| schemathesis>=3.39.15 # Required for openai schema test. | ||
| # quantization | ||
| bitsandbytes>=0.45.3 | ||
| buildkite-test-collector==0.1.9 | ||
|
|
||
| # required for minicpmo_26 test | ||
| vector_quantize_pytorch | ||
| vocos | ||
|
|
||
| # required for Basic Models Test | ||
| blobfile # required for kimi-vl test | ||
| matplotlib # required for qwen-vl test | ||
|
|
||
| # required for Multi-Modal Models Test (Standard) | ||
| num2words # required for smolvlm test | ||
| pqdm | ||
| timm # required for internvl test | ||
| mistral-common==1.6.2 | ||
| genai_perf==0.0.8 | ||
| tritonclient==2.51.0 | ||
|
|
||
| schemathesis==3.39.15 # Required for openai schema test. | ||
| mteb>=1.38.11, <2 # required for mteb test | ||
| numba == 0.60.0; python_version == '3.9' # v0.61 doesn't support Python 3.9. Required for N-gram speculative decoding | ||
| numba == 0.61.2; python_version > '3.9' | ||
| numpy | ||
| runai-model-streamer==0.11.0 | ||
| runai-model-streamer-s3==0.11.0 | ||
| fastsafetensors>=0.1.10 | ||
| pydantic>=2.10 # 2.9 leads to error on python 3.10 |
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,42 @@ | ||
| #!/bin/sh | ||
| # This script tests if the nightly torch packages are not overridden by the dependencies | ||
|
|
||
| set -e | ||
| set -x | ||
|
|
||
| cd /vllm-workspace/ | ||
|
|
||
| rm -rf .venv | ||
|
|
||
| uv venv .venv | ||
|
|
||
| source .venv/bin/activate | ||
|
|
||
| # check the environment | ||
| uv pip freeze | ||
|
|
||
| echo ">>> Installing nightly torch packages" | ||
| uv pip install --quiet torch torchvision torchaudio --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu128 | ||
|
Contributor
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. Should we just use |
||
|
|
||
| echo ">>> Capturing torch-related versions before requirements install" | ||
| uv pip freeze | grep -E '^torch|^torchvision|^torchaudio' | sort > before.txt | ||
| echo "Before:" | ||
| cat before.txt | ||
|
|
||
| echo ">>> Installing requirements/nightly_torch_test.txt" | ||
| uv pip install --quiet -r requirements/nightly_torch_test.txt | ||
|
|
||
| echo ">>> Capturing torch-related versions after requirements install" | ||
| uv pip freeze | grep -E '^torch|^torchvision|^torchaudio' | sort > after.txt | ||
| echo "After:" | ||
| cat after.txt | ||
|
|
||
| echo ">>> Comparing versions" | ||
| if diff before.txt after.txt; then | ||
| echo "torch version not overridden." | ||
| else | ||
| echo "torch version overridden by nightly_torch_test.txt, \ | ||
| if the dependency is not triggered by the pytroch nightly test,\ | ||
| please add the dependency to the list 'white_list' in tools/generate_nightly_torch_test.py" | ||
| exit 1 | ||
| fi | ||
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,34 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # SPDX-FileCopyrightText: Copyright contributors to the vLLM project | ||
|
yangw-dev marked this conversation as resolved.
Outdated
|
||
| """ | ||
| Generates specialized requirements files for nightly PyTorch testing. | ||
|
|
||
| This script reads the main test requirements input file (`requirements/test.in`) | ||
| and splits its content into two files: | ||
| 1. `requirements/nightly_torch_test.txt`: Contains dependencies | ||
| except PyTorch-related. | ||
| 2. `torch_nightly_test.txt`: Contains only PyTorch-related packages. | ||
| """ | ||
|
|
||
| input_file = "requirements/test.in" | ||
| output_file = "requirements/nightly_torch_test.txt" | ||
|
|
||
| # white list of packages that are not compatible with PyTorch nightly directly | ||
| # with pip install. Please add your package to this list if it is not compatible | ||
| # or make the dependency test fails. | ||
| white_list = ["torch", "torchaudio", "torchvision", "mamba_ssm"] | ||
|
|
||
| with open(input_file) as f: | ||
| lines = f.readlines() | ||
|
|
||
| skip_next = False | ||
|
|
||
| for line in lines: | ||
| if skip_next: | ||
| if line.startswith((" ", "\t")) or line.strip() == "": | ||
| continue | ||
| skip_next = False | ||
|
|
||
| if any(k in line.lower() for k in white_list): | ||
| skip_next = True | ||
| continue | ||
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.