Skip to content

Commit 99210b2

Browse files
rsareddy0329Roja Reddy Sareddysage-makernargokul
authored
Add Numpy 2.0 support (#5311)
* Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Fix incompatible_dependecies test * Fix incompatible_dependecies test * Fix incompatible_dependecies test * Fix incompatible_dependecies test * Fix incompatible_dependecies test * update tensorflow artifacts * update tensorflow artifacts * update tensorflow artifacts * testfile codestyle fixes * testfile codestyle fixes * update SKLearn image URI config * update SKLearn image URI config * docstyle fixes * docstyle fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fixes * numpy fix for slow test * numpy fix for slow test * numpy fix for slow test * numpy fix for slow test * Revert 'Add numpy 2.0 support' * Revert 'Add numpy 2.0 support' * Revert 'Add numpy 2.0 support' * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support * Add numpy 2.0 support --------- Co-authored-by: Roja Reddy Sareddy <[email protected]> Co-authored-by: parknate@ <[email protected]> Co-authored-by: Gokul Anantha Narayanan <[email protected]>
1 parent 100cf06 commit 99210b2

File tree

29 files changed

+493
-48
lines changed

29 files changed

+493
-48
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ dependencies = [
3939
"google-pasta",
4040
"importlib-metadata>=1.4.0,<7.0",
4141
"jsonschema",
42-
"numpy==1.26.4",
42+
"numpy>=1.26.4,<3.0",
4343
"omegaconf>=2.2,<3",
4444
"packaging>=23.0,<25",
45-
"pandas",
45+
"pandas>=2.3.0",
4646
"pathos",
4747
"platformdirs",
4848
"protobuf>=3.12,<6.32",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
scipy==1.11.3
1+
scipy==1.13.0

requirements/extras/test_requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tox==3.24.5
2-
numpy==1.26.4
2+
numpy>=2.0.0, <3.0
33
build[virtualenv]==1.2.1
44
flake8==7.1.2
55
pytest==6.2.5
@@ -23,8 +23,8 @@ requests==2.32.2
2323
sagemaker-experiments==0.1.35
2424
Jinja2==3.1.6
2525
pyvis==0.2.1
26-
pandas==1.4.4
27-
scikit-learn==1.3.0
26+
pandas>=2.3.0
27+
scikit-learn==1.6.1
2828
cloudpickle==2.2.1
2929
jsonpickle<4.0.0
3030
PyYAML>=6.0.1
@@ -44,7 +44,7 @@ onnx==1.17.0
4444
nbformat>=5.9,<6
4545
accelerate>=0.24.1,<=0.27.0
4646
schema==0.7.5
47-
tensorflow>=2.16.2,<=2.18.0
47+
tensorflow>=2.16.2,<=2.19.0
4848
mlflow>=2.14.2,<3
4949
huggingface_hub==0.26.2
5050
uvicorn>=0.30.1

src/sagemaker/image_uri_config/sklearn.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,54 @@
388388
"us-west-2": "246618743249"
389389
},
390390
"repository": "sagemaker-scikit-learn"
391+
},
392+
"1.4-2": {
393+
"processors": [
394+
"cpu"
395+
],
396+
"py_versions": [
397+
"py3"
398+
],
399+
"registries": {
400+
"af-south-1": "510948584623",
401+
"ap-east-1": "651117190479",
402+
"ap-northeast-1": "354813040037",
403+
"ap-northeast-2": "366743142698",
404+
"ap-northeast-3": "867004704886",
405+
"ap-south-1": "720646828776",
406+
"ap-south-2": "628508329040",
407+
"ap-southeast-1": "121021644041",
408+
"ap-southeast-2": "783357654285",
409+
"ap-southeast-3": "951798379941",
410+
"ap-southeast-4": "106583098589",
411+
"ca-central-1": "341280168497",
412+
"ca-west-1": "190319476487",
413+
"cn-north-1": "450853457545",
414+
"cn-northwest-1": "451049120500",
415+
"eu-central-1": "492215442770",
416+
"eu-central-2": "680994064768",
417+
"eu-north-1": "662702820516",
418+
"eu-south-1": "978288397137",
419+
"eu-south-2": "104374241257",
420+
"eu-west-1": "141502667606",
421+
"eu-west-2": "764974769150",
422+
"eu-west-3": "659782779980",
423+
"il-central-1": "898809789911",
424+
"me-central-1": "272398656194",
425+
"me-south-1": "801668240914",
426+
"sa-east-1": "737474898029",
427+
"us-east-1": "683313688378",
428+
"us-east-2": "257758044811",
429+
"us-gov-east-1": "237065988967",
430+
"us-gov-west-1": "414596584902",
431+
"us-iso-east-1": "833128469047",
432+
"us-isob-east-1": "281123927165",
433+
"us-isof-east-1": "108575199400",
434+
"us-isof-south-1": "124985052026",
435+
"us-west-1": "746614075791",
436+
"us-west-2": "246618743249"
437+
},
438+
"repository": "sagemaker-scikit-learn"
391439
}
392440
}
393441
},

src/sagemaker/serve/utils/conda_in_process.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- boto3>=1.34.142,<2.0
1313
- cloudpickle==2.2.1
1414
- google-pasta
15-
- numpy==1.26.4
15+
- numpy>=2.0.0,<3.0
1616
- protobuf>=3.12,<5.0
1717
- smdebug_rulesconfig==1.0.1
1818
- importlib-metadata>=1.4.0,<7.0
@@ -64,7 +64,7 @@ dependencies:
6464
- multiprocess>=0.70.14
6565
- networkx>=3.1
6666
- packaging>=23.1
67-
- pandas>=1.5.3
67+
- pandas>=2.3.0
6868
- pathos>=0.3.0
6969
- pillow>=9.5.0
7070
- platformdirs>=3.2.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
scipy==1.11.3
1+
scipy==1.13.0

tests/data/serve_resources/mlflow/pytorch/conda.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ channels:
22
- conda-forge
33
dependencies:
44
- python=3.10.13
5-
- pip<=23.3.1
5+
- pip<=24.3
66
- pip:
7-
- mlflow==2.10.2
7+
- mlflow>=2.16.1
88
- astunparse==1.6.3
99
- cffi==1.16.0
1010
- cloudpickle==2.2.1
1111
- defusedxml==0.7.1
1212
- dill==0.3.9
1313
- gmpy2==2.1.2
14-
- numpy==1.26.4
14+
- numpy>=2.0.0,<3.0
1515
- opt-einsum==3.3.0
1616
- packaging==24.0
17-
- pandas==2.2.1
17+
- pandas>=2.3.0
1818
- pyyaml==6.0.1
1919
- requests==2.31.0
2020
- torch>=2.6.0
2121
- torchvision>=0.17.0
2222
- tqdm==4.66.2
23-
- scikit-learn==1.3.2
23+
- scikit-learn==1.6.1
2424
name: mlflow-env

tests/data/serve_resources/mlflow/pytorch/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ cloudpickle==2.2.1
55
defusedxml==0.7.1
66
dill==0.3.9
77
gmpy2==2.1.2
8-
numpy==1.26.4
8+
numpy>=2.0.0,<3.0
99
opt-einsum==3.3.0
1010
packaging>=23.0,<25
11-
pandas==2.2.1
11+
pandas>=2.3.0
1212
pyyaml==6.0.1
1313
requests==2.32.4
1414
torch>=2.6.0

tests/data/serve_resources/mlflow/tensorflow/MLmodel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ flavors:
1010
code: null
1111
model_type: tf2-module
1212
saved_model_dir: tf2model
13-
mlflow_version: 2.20.3
13+
mlflow_version: 2.11.1
1414
model_size_bytes: 23823
1515
model_uuid: 40d2323944294fce898d8693455f60e8
1616
run_id: 592132312fb84935b201de2c027c54c6

tests/data/serve_resources/mlflow/tensorflow/conda.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ channels:
22
- conda-forge
33
dependencies:
44
- python=3.10.13
5-
- pip<=23.3.1
5+
- pip<=24.3
66
- pip:
77
- mlflow==2.11.1
88
- cloudpickle==2.2.1

0 commit comments

Comments
 (0)