Support NumPy 2.0
NeilGirdhar opened this issue · comments
Feature request
Support NumPy 2.0.
Motivation
NumPy introduces the Array API, which bridges the gap between machine learning libraries. Many clients of HuggingFace are eager to start using the Array API.
Besides that, NumPy 2 provides a cleaner interface than NumPy 1.
Tasks
NumPy 2.0 was released for testing so that libraries could ensure compatibility since mid-March. What needs to be done for HuggingFace to support Numpy 2?
- Fix use of
array
: #6976 - Remove NumPy version limit: #6991