Skip to content

[mlir][python] Raise maximum allowed version #114050

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

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

marbre
Copy link
Member

@marbre marbre commented Oct 29, 2024

Raises the maximum allowed versions to more recent versions, which is a basic enabler to install them in a venv using Python 3.13.

Raises the maximum allowed versions to more recent versions, which is a
basic enabler to install them in a venv using Python 3.13.
@marbre marbre requested a review from ScottTodd October 29, 2024 13:21
@llvmbot llvmbot added mlir:python MLIR Python bindings mlir labels Oct 29, 2024
@llvmbot
Copy link
Member

llvmbot commented Oct 29, 2024

@llvm/pr-subscribers-mlir

Author: Marius Brehler (marbre)

Changes

Raises the maximum allowed versions to more recent versions, which is a basic enabler to install them in a venv using Python 3.13.


Full diff: https://github.com/llvm/llvm-project/pull/114050.diff

1 Files Affected:

  • (modified) mlir/python/requirements.txt (+3-3)
diff --git a/mlir/python/requirements.txt b/mlir/python/requirements.txt
index d1b5418cca5b23..eeaac27461b118 100644
--- a/mlir/python/requirements.txt
+++ b/mlir/python/requirements.txt
@@ -1,4 +1,4 @@
-numpy>=1.19.5, <=1.26
-pybind11>=2.9.0, <=2.10.3
+numpy>=1.19.5, <=2.1.2
+pybind11>=2.9.0, <=2.13.6
 PyYAML>=5.4.0, <=6.0.1
-ml_dtypes>=0.1.0, <=0.4.0   # provides several NumPy dtype extensions, including the bf16
+ml_dtypes>=0.1.0, <=0.5.0   # provides several NumPy dtype extensions, including the bf16

@@ -1,4 +1,4 @@
numpy>=1.19.5, <=1.26
pybind11>=2.9.0, <=2.10.3
numpy>=1.19.5, <=2.1.2
Copy link
Member

Choose a reason for hiding this comment

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

How much can we trust the CI checks for this version upgrade? Moving from numpy 1 --> 2 caused (is still causing) quite a bit of ecosystem churn (https://numpy.org/doc/stable/numpy_2_0_migration_guide.html).

Is this a "merge and see if anyone complains" scenario? Or should some other tests/experiments be run or the change be announced on Discourse?

Copy link
Member Author

Choose a reason for hiding this comment

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

Honestly, IDK. I tested this locally and made sure check-mlir-python passes but nothing more...

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it's our responsibility to keep a lid on this? Anyone that has tighter constraints on numpy will have it in their own requirements.txt. The natural way such things get resolved is pip does dependency resolution but since we're not distributing a package, it falls to the user to be aware.

Copy link
Member

@ScottTodd ScottTodd left a comment

Choose a reason for hiding this comment

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

Well, these version increases LGTM from a downstream (https://github.com/iree-org/iree) perspective, at least.

Copy link
Contributor

@stellaraccident stellaraccident left a comment

Choose a reason for hiding this comment

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

Agreed with maks. Give it a full day for visibility globally before landing.

@marbre marbre merged commit f5e6c8e into llvm:main Oct 31, 2024
11 checks passed
@marbre marbre deleted the mlir-python-requirements branch October 31, 2024 16:39
smallp-o-p pushed a commit to smallp-o-p/llvm-project that referenced this pull request Nov 3, 2024
Raises the maximum allowed versions to more recent versions, which is a
basic enabler to install them in a venv using Python 3.13.
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
Raises the maximum allowed versions to more recent versions, which is a
basic enabler to install them in a venv using Python 3.13.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlir:python MLIR Python bindings mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants