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 10f31fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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 Expand Up @@ -80,6 +82,7 @@ filterwarnings = [
"error",
"ignore::pydantic.warnings.PydanticDeprecatedSince20",
"ignore::UserWarning",
"ignore::DeprecationWarning",
]
addopts = [
"--import-mode=importlib"
Expand Down

0 comments on commit 10f31fd

Please sign in to comment.