Skip to content

Numpy 2 support #5132

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

Draft
wants to merge 45 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
25f16ef
change: Allow telemetry only in supported regions
Jan 29, 2025
0ed85d6
change: Allow telemetry only in supported regions
Jan 29, 2025
b69ffcb
change: Allow telemetry only in supported regions
Jan 29, 2025
8d7f4a8
change: Allow telemetry only in supported regions
Jan 29, 2025
9321367
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Jan 29, 2025
f972222
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Jan 30, 2025
dadbb22
change: Allow telemetry only in supported regions
Jan 30, 2025
28b3fe8
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Feb 23, 2025
fe64f82
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Feb 24, 2025
7775c63
documentation: Removed a line about python version requirements of tr…
Feb 24, 2025
acc861a
Merge branch 'master' into rsareddy-dev
rsareddy0329 Feb 24, 2025
16dc02b
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 10, 2025
06597c6
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 11, 2025
249872d
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 12, 2025
58f8746
feature: Enabled update_endpoint through model_builder
Mar 12, 2025
c6bad70
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 12, 2025
0bf6404
fix: fix unit test, black-check, pylint errors
Mar 12, 2025
c67d7df
fix: fix black-check, pylint errors
Mar 12, 2025
1f84662
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 13, 2025
ea1810b
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 14, 2025
6079269
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 14, 2025
c9fcefb
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Mar 17, 2025
16b6f0c
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 8, 2025
89e18a9
fix:Added handler for pipeline variable while creating process job
Apr 8, 2025
10d4c4f
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 9, 2025
7f15e19
fix: Added handler for pipeline variable while creating process job
Apr 9, 2025
7440f4d
Merge branch 'aws:master' into rsareddy-dev
rsareddy0329 Apr 14, 2025
de11c91
Revert the PR changes: #5122, due to issue https://t.corp.amazon.com/…
Apr 14, 2025
7acccdb
Fix: fix the issue, https://t.corp.amazon.com/P223568185/communication
Apr 14, 2025
797066f
Added numpy 2.0 support
Apr 16, 2025
a9e7fbb
Merge branch 'aws:master' into numpy-2-support
rsareddy0329 Apr 16, 2025
ca21919
Added numpy 2.0 support
Apr 16, 2025
a7d9c3e
Added numpy 2.0 support
Apr 16, 2025
87d190d
resolve conflict dependency with numpy 2.0
Apr 16, 2025
9209b79
Merge branch 'aws:master' into numpy-2-support
rsareddy0329 Apr 17, 2025
96a34bd
resolve conflict dependency with numpy 2.0
Apr 17, 2025
2eb87bc
resolve conflict dependency with numpy 2.0
Apr 17, 2025
054891e
resolve conflict dependency with numpy 2.0
Apr 17, 2025
843c3fd
resolve conflict dependency with numpy 2.0
Apr 17, 2025
6598598
resolve conflict dependency with numpy 2.0
Apr 17, 2025
86292e5
resolve conflict dependency with numpy 2.0
Apr 17, 2025
5817b2e
resolve conflict dependency with numpy 2.0
Apr 18, 2025
8a68dbb
resolve conflict dependency with numpy 2.0
Apr 21, 2025
1d9bd7f
resolve conflict dependency with numpy 2.0
Apr 22, 2025
bc8ed28
resolve conflict dependency with numpy 2.0
Apr 27, 2025
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
21 changes: 19 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,24 @@ disable=
useless-object-inheritance, # TODO: Enable this check and fix code once Python 2 is no longer supported.
super-with-arguments,
raise-missing-from,
E1136,
C0116, # Missing function or method docstring
C0209, # Use f-string instead of format
E0015, # Unrecognized option found in config
E0702, # Raising a string instead of an exception
E1101, # Module has no member (likely dynamic attr)
E1136, # Value assigned to something inferred as None
R0022, # Useless option value in config
R1710, # Inconsistent return statements
R1714, # Consider using `in` with comparisons
R1729, # Use a generator
R1732,
R1735, # Consider using a dict or list literal
W0237, # Argument renamed in override
W0613, # Unused argument
W0621, # Redefining name from outer scope
W0719
W1404, # Implicit string concatenation
W1514, # `open()` used without encoding

[REPORTS]
# Set the output format. Available formats are text, parseable, colorized, msvs
Expand Down Expand Up @@ -436,4 +453,4 @@ analyse-fallback-blocks=no

# Exceptions that will emit a warning when being caught. Defaults to
# "Exception"
overgeneral-exceptions=Exception
overgeneral-exceptions=builtins.Exception
7 changes: 0 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# Changelog

## v2.243.2 (2025-04-16)

### Bug Fixes and Other Changes

* tgi image uri unit tests
* Fix deepdiff dependencies

## v2.243.1 (2025-04-11)

### Bug Fixes and Other Changes
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.243.3.dev0
2.243.2.dev0
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sphinx==5.1.1
sphinx-rtd-theme==0.5.0
docutils==0.15.2
packaging==20.9
packaging>=23.0,<25
jinja2==3.1.6
schema==0.7.5
accelerate>=0.24.1,<=0.27.0
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "sagemaker"
dynamic = ["version", "optional-dependencies"]
description = "Open source library for training and deploying models on Amazon SageMaker."
readme = "README.rst"
requires-python = ">=3.8"
requires-python = ">=3.9"
authors = [
{ name = "Amazon Web Services" },
]
Expand All @@ -25,10 +25,10 @@ classifiers = [
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"attrs>=23.1.0,<24",
Expand All @@ -39,15 +39,15 @@ dependencies = [
"google-pasta",
"importlib-metadata>=1.4.0,<7.0",
"jsonschema",
"numpy>=1.9.0,<2.0",
"numpy>=2.0.0,<2.3.0",
"omegaconf>=2.2,<=2.3",
"packaging>=20.0",
"pandas",
"packaging>=23.0,<25",
"pandas==2.2.3",
"pathos",
"platformdirs",
"protobuf>=3.12,<6.0",
"psutil",
"PyYAML~=6.0",
"PyYAML>=6.0.1",
"requests",
"sagemaker-core>=1.0.17,<2.0.0",
"schema",
Expand Down
2 changes: 1 addition & 1 deletion requirements/extras/local_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
urllib3>=1.26.8,<3.0.0
docker>=5.0.2,<8.0.0
PyYAML>=5.4.1,<7
PyYAML>=6.0.1,<7
2 changes: 1 addition & 1 deletion requirements/extras/scipy_requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
scipy==1.10.1
scipy==1.13.0
21 changes: 11 additions & 10 deletions requirements/extras/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tox==3.24.5
numpy>=1.24.0
numpy>=2.0.0, <2.3.0
build[virtualenv]==1.2.1
flake8==4.0.1
flake8==7.1.2
pytest==6.2.5
pytest-cov==3.0.0
pytest-rerunfailures==10.2
Expand All @@ -14,25 +14,25 @@ awslogs==0.14.0
black==24.3.0
stopit==1.1.2
# Update tox.ini to have correct version of airflow constraints file
apache-airflow==2.9.3
apache-airflow==2.10.4
apache-airflow-providers-amazon==7.2.1
attrs>=23.1.0,<24
fabric==2.6.0
fabric==3.2.2
requests==2.32.2
sagemaker-experiments==0.1.35
Jinja2==3.1.6
pyvis==0.2.1
pandas==1.4.4
scikit-learn==1.3.0
pandas==2.2.3
scikit-learn==1.6.1
cloudpickle==2.2.1
jsonpickle<4.0.0
PyYAML==6.0
PyYAML>=6.0.1
# TODO find workaround
xgboost>=1.6.2,<=1.7.6
pillow>=10.0.1,<=11
opentelemetry-proto==1.27.0
protobuf==4.25.5
tensorboard>=2.9.0,<=2.15.2
tensorboard>=2.16.2,<=2.18.0
transformers==4.48.0
sentencepiece==0.1.99
# https://github.com/triton-inference-server/server/issues/6246
Expand All @@ -42,12 +42,13 @@ onnx==1.17.0
nbformat>=5.9,<6
accelerate>=0.24.1,<=0.27.0
schema==0.7.5
tensorflow>=2.9.0,<=2.15.1
mlflow>=2.12.2,<2.13
tensorflow==2.18.0
mlflow>=2.16.1
huggingface_hub==0.26.2
uvicorn>=0.30.1
fastapi==0.115.4
nest-asyncio
sagemaker-mlflow>=0.1.0
deepdiff>=8.0.0
orderly-set<5.4.0
lexicon
4 changes: 2 additions & 2 deletions requirements/tox/doc8_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
doc8==0.10.1
Pygments==2.15.0
doc8==1.1.2
Pygments==2.18.0
4 changes: 2 additions & 2 deletions requirements/tox/flake8_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
flake8==4.0.1
flake8-future-import==0.4.6
flake8==7.1.2
flake8-future-import==0.4.7
4 changes: 2 additions & 2 deletions requirements/tox/pylint_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pylint==2.6.2
astroid==2.4.2
pylint==3.0.3
astroid==3.0.2
2 changes: 1 addition & 1 deletion requirements/tox/spelling_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pyenchant==3.2.2
pylint==2.6.2
pylint==3.0.3
24 changes: 16 additions & 8 deletions src/sagemaker/config/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,8 @@ def _simple_path(*args: str):
"minItems": 0,
"maxItems": 50,
},
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-Environment
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/
# API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-Environment
"environmentVariables": {
TYPE: OBJECT,
ADDITIONAL_PROPERTIES: False,
Expand All @@ -553,13 +554,15 @@ def _simple_path(*args: str):
},
"maxProperties": 48,
},
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_S3DataSource.html#sagemaker-Type-S3DataSource-S3Uri
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/
# API_S3DataSource.html#sagemaker-Type-S3DataSource-S3Uri
"s3Uri": {
TYPE: "string",
"pattern": "^(https|s3)://([^/]+)/?(.*)$",
"maxLength": 1024,
},
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html#sagemaker-Type-AlgorithmSpecification-ContainerEntrypoint
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/
# API_AlgorithmSpecification.html#sagemaker-Type-AlgorithmSpecification-ContainerEntrypoint
"preExecutionCommand": {TYPE: "string", "pattern": r".*"},
# Regex based on https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_PipelineDefinitionS3Location.html
# except with an additional ^ and $ for the beginning and the end to closer align to
Expand All @@ -570,7 +573,8 @@ def _simple_path(*args: str):
"minLength": 3,
"maxLength": 63,
},
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MonitoringJobDefinition.html#sagemaker-Type-MonitoringJobDefinition-Environment
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/
# API_MonitoringJobDefinition.html#sagemaker-Type-MonitoringJobDefinition-Environment
"environment-Length256-Properties50": {
TYPE: OBJECT,
ADDITIONAL_PROPERTIES: False,
Expand All @@ -583,7 +587,8 @@ def _simple_path(*args: str):
},
"maxProperties": 50,
},
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTransformJob.html#sagemaker-CreateTransformJob-request-Environment
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/
# API_CreateTransformJob.html#sagemaker-CreateTransformJob-request-Environment
"environment-Length10240-Properties16": {
TYPE: OBJECT,
ADDITIONAL_PROPERTIES: False,
Expand All @@ -596,7 +601,8 @@ def _simple_path(*args: str):
},
"maxProperties": 16,
},
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ContainerDefinition.html#sagemaker-Type-ContainerDefinition-Environment
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/
# API_ContainerDefinition.html#sagemaker-Type-ContainerDefinition-Environment
"environment-Length1024-Properties16": {
TYPE: OBJECT,
ADDITIONAL_PROPERTIES: False,
Expand All @@ -609,7 +615,8 @@ def _simple_path(*args: str):
},
"maxProperties": 16,
},
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateProcessingJob.html#sagemaker-CreateProcessingJob-request-Environment
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/
# API_CreateProcessingJob.html#sagemaker-CreateProcessingJob-request-Environment
"environment-Length256-Properties100": {
TYPE: OBJECT,
ADDITIONAL_PROPERTIES: False,
Expand All @@ -622,7 +629,8 @@ def _simple_path(*args: str):
},
"maxProperties": 100,
},
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-Environment
# Regex is taken from https://docs.aws.amazon.com/sagemaker/latest/APIReference/
# API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-Environment
"environment-Length512-Properties48": {
TYPE: OBJECT,
ADDITIONAL_PROPERTIES: False,
Expand Down
2 changes: 1 addition & 1 deletion src/sagemaker/feature_store/dataset_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ def _construct_query_string(self, base: FeatureGroupToBeMerged) -> str:
selected_features += ", "
selected_features += ", ".join(
[
f'fg_{i}."{feature_name}" as "{feature_name}.{(i+1)}"'
f'fg_{i}."{feature_name}" as "{feature_name}.{(i + 1)}"'
for feature_name in feature_group.projected_feature_names
]
)
Expand Down
11 changes: 0 additions & 11 deletions src/sagemaker/image_uri_config/huggingface-llm-neuronx.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -67,7 +66,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -120,7 +118,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -173,7 +170,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -226,7 +222,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -279,7 +274,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -332,7 +326,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -385,7 +378,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -438,7 +430,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -491,7 +482,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down Expand Up @@ -544,7 +534,6 @@
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-east-2": "975050140332",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
Expand Down
Loading
Loading