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

Update the numpy version to 2.0 and pandas version to 2.2.3 #4983

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ dependencies = [
"google-pasta",
"importlib-metadata>=1.4.0,<7.0",
"jsonschema",
"numpy>=1.9.0,<2.0",
"numpy==2.0",
"omegaconf>=2.2,<2.3",
"packaging>=20.0",
"pandas",
"pandas==2.2.3",
"pathos",
"platformdirs",
"protobuf>=3.12,<6.0",
Expand Down
4 changes: 2 additions & 2 deletions requirements/extras/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tox==3.24.5
numpy>=1.24.0
numpy==2.0
build[virtualenv]==1.2.1
flake8==4.0.1
pytest==6.2.5
Expand All @@ -22,7 +22,7 @@ requests==2.32.2
sagemaker-experiments==0.1.35
Jinja2==3.1.4
pyvis==0.2.1
pandas==1.4.4
pandas==2.2.3
scikit-learn==1.3.0
cloudpickle==2.2.1
jsonpickle<4.0.0
Expand Down
6 changes: 3 additions & 3 deletions src/sagemaker/serve/utils/conda_in_process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ dependencies:
- boto3>=1.34.142,<2.0
- cloudpickle==2.2.1
- google-pasta
- numpy>=1.9.0,<2.0
- numpy==2.0
- protobuf>=3.12,<5.0
- smdebug_rulesconfig==1.0.1
- importlib-metadata>=1.4.0,<7.0
- packaging>=20.0
- pandas
- pandas==2.2.3
- pathos
- schema
- PyYAML~=6.0
Expand Down Expand Up @@ -64,7 +64,7 @@ dependencies:
- multiprocess>=0.70.14
- networkx>=3.1
- packaging>=23.1
- pandas>=1.5.3
- pandas==2.2.3
- pathos>=0.3.0
- pillow>=9.5.0
- platformdirs>=3.2.0
Expand Down
2 changes: 1 addition & 1 deletion src/sagemaker/serve/utils/in_process_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mpmath>=1.3.0
multiprocess>=0.70.14
networkx>=3.1
packaging>=23.1
pandas>=1.5.3
pandas==2.2.3
pathos>=0.3.0
pillow>=9.5.0
platformdirs>=3.2.0
Expand Down
4 changes: 2 additions & 2 deletions tests/data/serve_resources/mlflow/pytorch/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ dependencies:
- defusedxml==0.7.1
- dill==0.3.8
- gmpy2==2.1.2
- numpy==1.26.4
- numpy==2.0
- opt-einsum==3.3.0
- packaging==24.0
- pandas==2.2.1
- pandas==2.2.3
- pyyaml==6.0.1
- requests==2.31.0
- torch==2.0.1
Expand Down
4 changes: 2 additions & 2 deletions tests/data/serve_resources/mlflow/pytorch/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ cloudpickle==2.2.1
defusedxml==0.7.1
dill==0.3.8
gmpy2==2.1.2
numpy==1.24.4
numpy==2.0
opt-einsum==3.3.0
packaging==21.3
pandas==2.2.1
pandas==2.2.3
pyyaml==6.0.1
requests==2.32.2
torch==2.2.0
Expand Down
2 changes: 1 addition & 1 deletion tests/data/serve_resources/mlflow/tensorflow/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ dependencies:
- pip:
- mlflow==2.11.1
- cloudpickle==2.2.1
- numpy==1.26.4
- numpy==2.0
- tensorflow==2.16.1
name: mlflow-env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mlflow==2.13.2
cloudpickle==2.2.1
numpy==1.26.4
numpy==2.0
tensorflow==2.16.1
4 changes: 2 additions & 2 deletions tests/data/serve_resources/mlflow/xgboost/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ dependencies:
- pip:
- mlflow==2.11.1
- lz4==4.3.2
- numpy==1.26.4
- pandas==2.2.1
- numpy==2.0
- pandas==2.2.3
- psutil==5.9.8
- scikit-learn==1.3.2
- scipy==1.11.3
Expand Down
4 changes: 2 additions & 2 deletions tests/data/serve_resources/mlflow/xgboost/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mlflow==2.13.2
lz4==4.3.2
numpy==1.24.4
pandas==2.0.3
numpy==2.0
pandas==2.2.3
psutil==5.9.8
scikit-learn==1.3.2
scipy==1.10.1
Expand Down
10 changes: 5 additions & 5 deletions tests/unit/sagemaker/jumpstart/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -12095,7 +12095,7 @@
"inference_vulnerabilities": [],
"training_vulnerable": False,
"training_dependencies": [
"numpy==1.23.1",
"numpy==2.0",
"opencv_python==4.7.0.68",
"sagemaker_jumpstart_prepack_script_utilities==1.0.0",
],
Expand Down Expand Up @@ -14360,10 +14360,10 @@
"jmespath==1.0.1",
"jsonschema==4.17.3",
"multiprocess==0.70.14",
"numpy==1.24.3",
"numpy==2.0",
"oscrypto==1.3.0",
"packaging==23.1",
"pandas==2.0.2",
"pandas==2.2.3",
"pathos==0.3.0",
"pkgutil-resolve-name==1.3.10",
"platformdirs==3.8.0",
Expand Down Expand Up @@ -14884,10 +14884,10 @@
"jmespath==1.0.1",
"jsonschema==4.17.3",
"multiprocess==0.70.14",
"numpy==1.24.3",
"numpy==2.0",
"oscrypto==1.3.0",
"packaging==23.1",
"pandas==2.0.2",
"pandas==2.2.3",
"pathos==0.3.0",
"pkgutil-resolve-name==1.3.10",
"platformdirs==3.8.0",
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/sagemaker/serve/detector/test_dependency_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

DEPENDENCY_LIST = [
"requests==2.26.0",
"numpy>=1.20.0",
"pandas<=1.3.3",
"numpy==2.0",
"pandas==2.2.3",
"matplotlib<3.5.0",
"scikit-learn>0.24.1",
"Django!=4.0.0",
Expand All @@ -34,8 +34,8 @@

EXPECTED_DEPENDENCY_MAP = {
"requests": "==2.26.0",
"numpy": ">=1.20.0",
"pandas": "<=1.3.3",
"numpy": "==2.0",
"pandas": "==2.2.3",
"matplotlib": "<3.5.0",
"scikit-learn": ">0.24.1",
"Django": "!=4.0.0",
Expand All @@ -60,7 +60,7 @@

AUTODETECTED_REQUIREMENTS = """module==1.2
custom_module==1.2.0
numpy==4.5
numpy==2.0
boto3==1.26.135
"""

Expand Down Expand Up @@ -97,7 +97,7 @@ def test_capture_dependencies(self, mock_subprocess, mock_file, mock_path):
expected_calls = [
call("module==1.2\n"),
call("custom_module==1.2.3\n"),
call("numpy==4.5\n"),
call("numpy==2.0\n"),
call("boto3=1.28.*\n"),
call("sagemaker[huggingface]>=2.199\n"),
call("other_module@http://some/website.whl\n"),
Expand Down
Loading