Skip to content

Commit

Permalink
Set torch upper bound to <2.1.0
Browse files Browse the repository at this point in the history
Some changes in PyTorch 2.1.0 and later are incompatible with
Curated Transformers 1.x. Fixing these issues would require
API changes. So we set the upper bound on supported PyTorch
versions. We will soon release Curated Transformers 2.0.0,
which is compatible with the lastest PyTorch versions.
  • Loading branch information
danieldk committed Feb 9, 2024
1 parent cd53833 commit dadf5bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
curated-tokenizers>=0.9.1,<1.0.0
huggingface-hub>=0.14
tokenizers>=0.13.3
torch>=1.12.0
torch>=1.12.0,<2.1.0

# Development dependencies
mypy>=0.990,<1.1.0; platform_machine != "aarch64"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ install_requires =
curated-tokenizers>=0.9.1,<1.0.0
huggingface-hub>=0.14
tokenizers>=0.13.3
torch>=1.12.0
torch>=1.12.0,<2.1.0

[options.extras_require]
quantization =
Expand Down

0 comments on commit dadf5bb

Please sign in to comment.