-
Notifications
You must be signed in to change notification settings - Fork 7.7k
update transformers package version to 5.0.0rc0 #14356
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 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9c001e9
upd
yhyang201 fd57e5b
upd
yhyang201 d034fe7
Merge branch 'main' into transformers-v5
yhyang201 4835183
update
yhyang201 d39f493
update
yhyang201 bdddf7b
updatee
yhyang201 f0f147f
update
yhyang201 bb72126
upd
yhyang201 5e7bf22
Merge branch 'main' into transformers-v5
yhyang201 dfb6626
Improve echo messages in ci_install_dependency.sh
yhyang201 5b50d58
Merge branch 'main' into transformers-v5
yhyang201 080beef
Merge branch 'main' into transformers-v5
JustinTong0323 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,6 +106,16 @@ $PIP_CMD install -e "python[${EXTRAS}]" --extra-index-url https://download.pytor | |
| # Install router for pd-disagg test | ||
| $PIP_CMD install sglang-router $PIP_INSTALL_SUFFIX | ||
|
|
||
| PYTHON_LIB_PATH=$(python3 -c "import site; print(site.getsitepackages()[0])") | ||
| FLASH_ATTN_PATH="${PYTHON_LIB_PATH}/flash_attn" | ||
|
|
||
| if [ -d "$FLASH_ATTN_PATH" ]; then | ||
| echo "126 Directory $FLASH_ATTN_PATH exists. Removing..." | ||
|
Collaborator
Author
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. It will first install sgl-kernel from PyPI. After the installation, a flash_attn folder will remain, which needs to be cleaned up manually. |
||
| rm -rf "$FLASH_ATTN_PATH" | ||
| else | ||
| echo "129 Directory $FLASH_ATTN_PATH does not exist." | ||
| fi | ||
|
|
||
| # Install sgl-kernel | ||
| SGL_KERNEL_VERSION_FROM_KERNEL=$(grep -Po '(?<=^version = ")[^"]*' sgl-kernel/pyproject.toml) | ||
| SGL_KERNEL_VERSION_FROM_SRT=$(grep -Po -m1 '(?<=sgl-kernel==)[0-9A-Za-z\.\-]+' python/pyproject.toml) | ||
|
|
@@ -147,3 +157,14 @@ python3 -c "import torch; print(torch.version.cuda)" | |
|
|
||
| # Prepare the CI runner (cleanup HuggingFace cache, etc.) | ||
| bash "${SCRIPT_DIR}/prepare_runner.sh" | ||
|
|
||
| PYTHON_LIB_PATH=$(python3 -c "import site; print(site.getsitepackages()[0])") | ||
| FLASH_ATTN_PATH="${PYTHON_LIB_PATH}/flash_attn" | ||
|
|
||
| if [ -d "$FLASH_ATTN_PATH" ]; then | ||
| echo "178 Directory $FLASH_ATTN_PATH exists. Removing..." | ||
| rm -rf "$FLASH_ATTN_PATH" | ||
| echo "Bug this should not happen" | ||
| else | ||
| echo "181 Directory $FLASH_ATTN_PATH does not exist." | ||
| 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
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.