Skip to content

Commit

Permalink
update transformers version
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jun 29, 2024
1 parent d0a84a9 commit c093a8c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@
REQUIRED_PKGS = [
"coloredlogs",
"sympy",
"transformers[sentencepiece]>=4.26.0,<4.42.0",
"transformers[sentencepiece]>=4.26.0,<4.43.0",
"torch>=1.11",
"packaging",
"numpy<2.0", # transformers requires numpy<2.0 https://github.com/huggingface/transformers/pull/31569
"numpy",
"huggingface_hub>=0.8.0",
"datasets",
]

# TODO: unpin pytest once https://github.com/huggingface/transformers/pull/29154 is merged & released
TESTS_REQUIRE = [
"accelerate",
"pytest<=8.0.0",
"pytest",
"requests",
"parameterized",
"pytest-xdist",
Expand Down Expand Up @@ -79,9 +78,9 @@
"openvino": "optimum-intel[openvino]>=1.16.0",
"nncf": "optimum-intel[nncf]>=1.16.0",
"neural-compressor": "optimum-intel[neural-compressor]>=1.16.0",
"habana": ["optimum-habana", "transformers >= 4.38.0, < 4.39.0"],
"neuron": ["optimum-neuron[neuron]>=0.0.20", "transformers >= 4.36.2, < 4.42.0"],
"neuronx": ["optimum-neuron[neuronx]>=0.0.20", "transformers >= 4.36.2, < 4.42.0"],
"habana": ["optimum-habana", "transformers>=4.38.0,<4.39.0"],
"neuron": ["optimum-neuron[neuron]>=0.0.20", "transformers>=4.36.2,<4.42.0"],
"neuronx": ["optimum-neuron[neuronx]>=0.0.20", "transformers>=4.36.2,<4.42.0"],
"graphcore": "optimum-graphcore",
"furiosa": "optimum-furiosa",
"amd": "optimum-amd",
Expand Down

0 comments on commit c093a8c

Please sign in to comment.