Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Not compatible with numpy >= 1.24.0 #4945

@amathews-amd

Description

@amathews-amd

🐛 Bug

Numpy >=1.24.0 deprecated np.float and similar aliases. See https://levelup.gitconnected.com/fix-attributeerror-module-numpy-has-no-attribute-float-d7d68c5a4971
Fairseq with newer versions of numpy fail with error AttributeError: module 'numpy' has no attribute 'float'

Environment

  • fairseq Version (e.g., 1.0 or main): main
  • OS (e.g., Linux): Linux
  • How you installed fairseq (pip, source): wource

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions