Skip to content

Commit

Permalink
Pin numpy/transformers to prevent runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
torymur committed Nov 12, 2024
1 parent c7af981 commit 8565981
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ test = [
"beartype<0.16.0",
"huggingface_hub",
"torch",
"numpy",
# transformers 4.46.1/2 fail with RuntimeError:
# - numpy.core is deprecated and has been renamed to numpy._core
"numpy==2.1.1",
"scipy",
"transformers",
"transformers==4.45.2",
"datasets",
"pillow",
"asv",
Expand Down

0 comments on commit 8565981

Please sign in to comment.