Skip to content

Commit

Permalink
pin numpy v1 everywhere for transfromers
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jun 26, 2024
1 parent 9fcdf62 commit 20b530e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"transformers[sentencepiece]>=4.26.0,<4.42.0",
"torch>=1.11",
"packaging",
"numpy",
"numpy<2.0", # transformers requires numpy<2.0 https://github.com/huggingface/transformers/pull/31569
"huggingface_hub>=0.8.0",
"datasets",
]
Expand Down Expand Up @@ -53,23 +53,16 @@
"datasets>=1.2.1",
"evaluate",
"protobuf>=3.20.1",
"numpy<=1.26.4", # onnxruntime is still not compatible with numpy 2
],
"onnxruntime-gpu": [
"onnx",
"onnxruntime-gpu>=1.11.0",
"datasets>=1.2.1",
"evaluate",
"protobuf>=3.20.1",
"numpy<=1.26.4", # onnxruntime is still not compatible with numpy 2
"accelerate", # ORTTrainer requires it.
],
"exporters": [
"onnx",
"onnxruntime",
"timm",
"numpy<=1.26.4", # onnxruntime is still not compatible with numpy 2
],
"exporters": ["onnx", "onnxruntime", "timm"],
"exporters-gpu": ["onnx", "onnxruntime-gpu", "timm"],
"exporters-tf": [
"tensorflow>=2.4,<=2.12.1",
Expand Down

0 comments on commit 20b530e

Please sign in to comment.