Skip to content

Commit

Permalink
better version ranges to reflect max and min transformers support
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Aug 23, 2024
1 parent 1b56683 commit ea84dde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
REQUIRED_PKGS = [
"coloredlogs",
"sympy",
"transformers[sentencepiece]>=4.29.0,<4.45.0",
"transformers[sentencepiece]>=4.29,<=4.44",
"torch>=1.11",
"packaging",
"numpy<2.0", # transformers requires numpy<2.0 https://github.com/huggingface/transformers/pull/31569
Expand All @@ -24,6 +24,7 @@
]

# TODO: unpin pytest once https://github.com/huggingface/transformers/pull/29154 is merged & released
# pytest>=8.0.0 also fails with the transformers version pinned for exporters-tf
TESTS_REQUIRE = [
"accelerate",
"pytest<=8.0.0",
Expand Down Expand Up @@ -72,7 +73,7 @@
"timm",
"h5py",
"numpy<1.24.0",
"transformers[sentencepiece]>=4.26.0,<4.38.0",
"transformers[sentencepiece]>=4.26,<4.38",
],
"diffusers": ["diffusers"],
"intel": "optimum-intel>=1.18.0",
Expand Down

0 comments on commit ea84dde

Please sign in to comment.