-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add Numpy 2.0 support #5311
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
Add Numpy 2.0 support #5311
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
98719d7
Add numpy 2.0 support
da684b8
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 4cd6946
Add numpy 2.0 support
2a33762
Add numpy 2.0 support
c80ad4b
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 572c1aa
Add numpy 2.0 support
23258ba
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 fac5a6a
Add numpy 2.0 support
5120db0
Merge branch 'master' into numpy-upgrade
sage-maker 8de6099
Merge branch 'master' into numpy-upgrade
nargokul 88406c4
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 410e6a2
Fix incompatible_dependecies test
ebf56b9
Fix incompatible_dependecies test
a19f57e
Fix incompatible_dependecies test
82c687f
Fix incompatible_dependecies test
5d26314
Fix incompatible_dependecies test
2271ba4
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 9f79273
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 afbf206
update tensorflow artifacts
cf1db86
update tensorflow artifacts
f85147c
update tensorflow artifacts
5b3766b
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 e4b80c1
testfile codestyle fixes
9884e7b
testfile codestyle fixes
ae1a67c
update SKLearn image URI config
a41acbe
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 7acb57e
update SKLearn image URI config
42387eb
docstyle fixes
3f837f0
docstyle fixes
fc64ae6
numpy fixes
2e88cd0
numpy fixes
7900cb1
numpy fixes
0102bca
numpy fixes
330fdb1
numpy fixes
a04689f
numpy fixes
5dedf88
numpy fixes
293448a
numpy fixes
07b62ce
numpy fix for slow test
d8546bc
numpy fix for slow test
8d71074
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 2b2c190
numpy fix for slow test
7daa34f
numpy fix for slow test
aaaa040
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 a4d0e29
Revert 'Add numpy 2.0 support'
837bdcf
Revert 'Add numpy 2.0 support'
ded2024
Revert 'Add numpy 2.0 support'
1b81cfd
Merge branch 'aws:master' into numpy-upgrade
rsareddy0329 702c3c3
Add numpy 2.0 support
eea112e
Add numpy 2.0 support
621d069
Add numpy 2.0 support
ae45ae9
Add numpy 2.0 support
ed588d0
Add numpy 2.0 support
4437cee
Add numpy 2.0 support
181bd3e
Add numpy 2.0 support
c4e9428
Add numpy 2.0 support
eaa343d
Add numpy 2.0 support
d49f9ca
Merge branch 'master' into numpy-upgrade
rsareddy0329 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| scipy==1.11.3 | ||
| scipy==1.13.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| scipy==1.11.3 | ||
| scipy==1.13.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/data/serve_resources/mlflow/tensorflow_numpy2/MLmodel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| artifact_path: model | ||
| flavors: | ||
| python_function: | ||
| env: | ||
| conda: conda.yaml | ||
| virtualenv: python_env.yaml | ||
| loader_module: mlflow.tensorflow | ||
| python_version: 3.10.0 | ||
| tensorflow: | ||
| saved_model_dir: tf2model | ||
| model_type: tf2-module | ||
| mlflow_version: 2.20.3 | ||
| model_uuid: test-uuid-numpy2 |
11 changes: 11 additions & 0 deletions
11
tests/data/serve_resources/mlflow/tensorflow_numpy2/conda.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| channels: | ||
| - conda-forge | ||
| dependencies: | ||
| - python=3.10 | ||
| - pip | ||
| - pip: | ||
| - numpy>=2.0.0 | ||
| - tensorflow==2.19.0 | ||
| - scikit-learn | ||
| - mlflow | ||
| name: mlflow-env |
1 change: 1 addition & 0 deletions
1
tests/data/serve_resources/mlflow/tensorflow_numpy2/data/keras_module.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| tensorflow.keras |
Binary file not shown.
1 change: 1 addition & 0 deletions
1
tests/data/serve_resources/mlflow/tensorflow_numpy2/data/save_format.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| tf |
5 changes: 5 additions & 0 deletions
5
tests/data/serve_resources/mlflow/tensorflow_numpy2/python_env.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| python: 3.10.0 | ||
| build_dependencies: | ||
| - pip | ||
| dependencies: | ||
| - -r requirements.txt |
3 changes: 3 additions & 0 deletions
3
tests/data/serve_resources/mlflow/tensorflow_numpy2/requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| numpy>=2.0.0 | ||
| tensorflow==2.19.0 | ||
| scikit-learn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| mlflow==3.1.0 | ||
| lz4==4.3.2 | ||
| numpy==1.26.4 | ||
| pandas==2.0.3 | ||
| numpy>=1.26.4,<3.0 | ||
| pandas>=2.3.0 | ||
| psutil==5.9.8 | ||
| scikit-learn==1.5.1 | ||
| scipy==1.11.3 | ||
| scikit-learn==1.6.1 | ||
| scipy==1.13.0 | ||
| xgboost==1.7.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| scipy==1.11.3 | ||
| scipy==1.13.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this is supposed to same as pyproject.toml: "numpy>=1.26.4,<3.0", not a hard blocker but we need to synchronize our dependencies.