Skip to content
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

Upgrade numpy version requirement to 2.0 #7599

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Upgrade numpy version requirement to 2.0 #7599

merged 1 commit into from
Jan 14, 2025

Conversation

mergennachin
Copy link
Contributor

@mergennachin mergennachin commented Jan 10, 2025

Upgrade numpy version requirement to 2.0.0

Summary:

1.21 is too old now. For 3.10 or above, we should be able to use 2.0.0

We are already on CoreMLTools 8.1, which is https://github.com/apple/coremltools/blob/8.1/reqs/build.pip

We had to upgrade to the latest transformers as well

Fixes:

#6639

Test Plan (pending)

Copy link

pytorch-bot bot commented Jan 10, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7599

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 3 Pending

As of commit b058bf1 with merge base b412ddc (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 10, 2025
@mergennachin mergennachin force-pushed the numpy_version branch 2 times, most recently from a4a3564 to b96f76e Compare January 10, 2025 21:14
@mergennachin mergennachin added the release notes: misc Miscellaneous label Jan 10, 2025
@mergennachin mergennachin changed the title Upgrade numpy version requirement to Upgrade numpy version requirement to 2.0 Jan 10, 2025
numpy==1.21.3; python_version == '3.10'
numpy==1.23.2; python_version == '3.11'
numpy; python_version >= '3.12'
numpy==2.0.0; python_version >= '3.10'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the context, last time we had to tweak these was to satisfy coremltools, and in their latest release 8.1 they're using numpy 2.0 for python > 3.9 https://github.com/apple/coremltools/blob/release/8.1/reqs/build.pip#L3

@mergennachin mergennachin force-pushed the numpy_version branch 2 times, most recently from 85d4387 to 0ec8d85 Compare January 10, 2025 22:00
@guangy10
Copy link
Contributor

On-demand benchmark jobs to cover llama3 on HF w/ SpinQuant, QLora, Core ML ANE: https://github.com/pytorch/executorch/actions/runs/12718060694

@guangy10 guangy10 temporarily deployed to upload-benchmark-results January 10, 2025 23:18 — with GitHub Actions Inactive
@guangy10 guangy10 temporarily deployed to upload-benchmark-results January 10, 2025 23:43 — with GitHub Actions Inactive
@cccclai
Copy link
Contributor

cccclai commented Jan 14, 2025

@shewu-quic @winskuo-quic any chance you know the CI error message? It seems like the graph is invalid

@mergennachin
Copy link
Contributor Author

mergennachin commented Jan 14, 2025

Looks like I need to upgrade pybind11 to 2.12 (or higher) based on this issue pybind/pybind11#5009

Let me update to 2.13.6 and run the CI again

Summary:

1.21 is too old now. For 3.10 or above, we should be able to use 2.0.0

We are already on CoreMLTools 8.1, which is https://github.com/apple/coremltools/blob/8.1/reqs/build.pip

We had to upgrade to the latest transformers as well
@mergennachin mergennachin merged commit a7b5297 into main Jan 14, 2025
120 checks passed
@mergennachin mergennachin deleted the numpy_version branch January 14, 2025 21:31
@mergennachin
Copy link
Contributor Author

@pytorchbot cherry-pick --onto release/0.5 -c release

pytorchbot pushed a commit that referenced this pull request Jan 14, 2025
Upgrade numpy version requirement to

Summary:

1.21 is too old now. For 3.10 or above, we should be able to use 2.0.0

We are already on CoreMLTools 8.1, which is https://github.com/apple/coremltools/blob/8.1/reqs/build.pip

We had to upgrade to the latest transformers as well

(cherry picked from commit a7b5297)
@pytorchbot
Copy link
Collaborator

Cherry picking #7599

The cherry pick PR is at #7659 The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

digantdesai pushed a commit that referenced this pull request Jan 16, 2025
Upgrade numpy version requirement to

Summary:

1.21 is too old now. For 3.10 or above, we should be able to use 2.0.0

We are already on CoreMLTools 8.1, which is https://github.com/apple/coremltools/blob/8.1/reqs/build.pip

We had to upgrade to the latest transformers as well

(cherry picked from commit a7b5297)
per pushed a commit to per/executorch that referenced this pull request Jan 16, 2025
Upgrade numpy version requirement to

Summary:

1.21 is too old now. For 3.10 or above, we should be able to use 2.0.0

We are already on CoreMLTools 8.1, which is https://github.com/apple/coremltools/blob/8.1/reqs/build.pip

We had to upgrade to the latest transformers as well

(cherry picked from commit a7b5297)
mergennachin added a commit that referenced this pull request Jan 17, 2025
Upgrade numpy version requirement to

Summary:

1.21 is too old now. For 3.10 or above, we should be able to use 2.0.0

We are already on CoreMLTools 8.1, which is https://github.com/apple/coremltools/blob/8.1/reqs/build.pip

We had to upgrade to the latest transformers as well

(cherry picked from commit a7b5297)
mergennachin added a commit that referenced this pull request Jan 17, 2025
* Install torchao by default (#7470)

Summary:

Now that torchao is not experimental anymore, we can rely on torchao directly via git submodule.

Part of #7460

(cherry picked from commit a861294)

* Upgrade numpy version requirement to 2.0 (#7599)

Upgrade numpy version requirement to

Summary:

1.21 is too old now. For 3.10 or above, we should be able to use 2.0.0

We are already on CoreMLTools 8.1, which is https://github.com/apple/coremltools/blob/8.1/reqs/build.pip

We had to upgrade to the latest transformers as well

(cherry picked from commit a7b5297)

* Update torchtune pin (#7670)

(cherry picked from commit a18f6e8)

* [Arm] TOSA reference model update

* Install release version of torchtune

---------

Co-authored-by: Sicheng Stephen Jia <[email protected]>
YIWENX14 pushed a commit that referenced this pull request Jan 28, 2025
Upgrade numpy version requirement to

Summary:

1.21 is too old now. For 3.10 or above, we should be able to use 2.0.0

We are already on CoreMLTools 8.1, which is https://github.com/apple/coremltools/blob/8.1/reqs/build.pip

We had to upgrade to the latest transformers as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: misc Miscellaneous
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants