-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardcode the numpy version #2316
Conversation
@xuzhao9 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@xuzhao9 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
We probably can add a constraint to the numpy version by dynamically adding a I think it is reasonable to guarantee that numpy version does not change when the models are being installed. |
When there is a big numpy version bump (1.21.2 -> 2.0.0),
pip install
will somehow automatically upgrade numpy version to 2.0.0 even when the old version (1.21.2) has been installed.Therefore, we have to hardcode numpy version both globally and for the models whose install will cause numpy to unexpectedly upgrade. Since downstream CI supports Python 3.8 as the lowest supported Python version, we have to pin numpy version to the lowest version used in the downstream CI.