-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Transformers to v4.46.x (#757)
Changes: - re-copy changes in T5, MT5 - fix resize embeddings override - add Distilbert sdpa/ flash - add Mistral QA head conversion - add HF custom pytest markers Known issues: - Electra test failure seems to be present also in HF: https://app.circleci.com/pipelines/github/huggingface/transformers/110747/workflows/60c508ce-1261-46b2-a321-363718877ead/jobs/1473377/tests
- Loading branch information
Showing
10 changed files
with
539 additions
and
268 deletions.
There are no files selected for viewing
This file contains 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
Submodule hf_transformers
updated
892 files
This file contains 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,3 +1,11 @@ | ||
[tool.black] | ||
line-length = 119 | ||
target-version = ['py38', 'py39', 'py310'] | ||
|
||
# copied from HF for testing | ||
[tool.pytest.ini_options] | ||
markers = [ | ||
"flash_attn_test: marks tests related to flash attention (deselect with '-m \"not flash_attn_test\"')", | ||
"bitsandbytes: select (or deselect with `not`) bitsandbytes integration tests", | ||
"generate: marks tests that use the GenerationTesterMixin" | ||
] |
This file contains 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 |
---|---|---|
|
@@ -60,7 +60,7 @@ | |
"timeout-decorator", | ||
"torch", | ||
"torchvision", | ||
"transformers~=4.45.2", | ||
"transformers~=4.46.3", | ||
] | ||
|
||
|
||
|
This file contains 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 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 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.