Skip to content

Using numpy==2.0.0 #32055

Open
Open
@ydshieh

Description

transformers now remove the pin of numpy<2.0.0. However, some issues (with 3rd libraries) are known, and the following gives some guide:

  • In an environment with TensorFlow and/or Flax --> downgrade to numpy<2.0.0
  • issue with soxr --> pip install soxr==0.4.0b1
  • issue with faiss --> downgrade to numpy<2.0.0
  • If error out with a message using np.array(obj, copy=False) replace it with np.asarray(obj) to allow a copy`:
    • downgrade to numpy<2.0.0
    • or, install datasets dev. version

Metadata

Assignees

Labels

WIPLabel your PR/Issue with WIP for some long outstanding Issues/PRs that are work in progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions