Skip to content

Commit

Permalink
Pin Torch to <2.2.0 (huggingface#28785)
Browse files Browse the repository at this point in the history
* Pin torch to <2.2.0

* Pin torchvision and torchaudio as well

* Playing around with versions to see if this helps

* twiddle something to restart the CI

* twiddle it back

* Try changing the natten version

* make fixup

* Revert "Try changing the natten version"

This reverts commit de0d659.

* make fixup

* fix fix fix

* fix fix fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
  • Loading branch information
2 people authored and SangbumChoi committed Jan 31, 2024
1 parent 42cf525 commit 8622d3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .circleci/create_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ def job_name(self):
"pip install -U --upgrade-strategy eager python-Levenshtein",
"pip install -U --upgrade-strategy eager opencv-python",
"pip install -U --upgrade-strategy eager nltk",
"pip uninstall -y torch torchvision torchaudio && pip install -U --upgrade-strategy eager 'torch<2.2.0' 'torchvision<0.17' 'torchaudio<2.2.0'"
],
tests_to_run=[
"tests/models/*layoutlmv*",
Expand Down
4 changes: 3 additions & 1 deletion examples/pytorch/_tests_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ pytest
conllu
sentencepiece != 0.1.92
protobuf
torchvision
torch<2.2.0
torchvision<0.17
torchaudio<2.2.0
jiwer
librosa
evaluate >= 0.2.0
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@
"timeout-decorator",
"timm",
"tokenizers>=0.14,<0.19",
"torch>=1.11,!=1.12.0",
"torchaudio",
"torchvision",
"torch<2.2.0",
"torchaudio<2.2.0",
"torchvision<0.17.0",
"pyctcdecode>=0.4.0",
"tqdm>=4.27",
"unidic>=1.0.2",
Expand Down
6 changes: 3 additions & 3 deletions src/transformers/dependency_versions_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
"timeout-decorator": "timeout-decorator",
"timm": "timm",
"tokenizers": "tokenizers>=0.14,<0.19",
"torch": "torch>=1.11,!=1.12.0",
"torchaudio": "torchaudio",
"torchvision": "torchvision",
"torch": "torch<2.2.0",
"torchaudio": "torchaudio<2.2.0",
"torchvision": "torchvision<0.17.0",
"pyctcdecode": "pyctcdecode>=0.4.0",
"tqdm": "tqdm>=4.27",
"unidic": "unidic>=1.0.2",
Expand Down

0 comments on commit 8622d3b

Please sign in to comment.