Skip to content

Commit a27527d

Browse files
committed
add pyyaml version constraint, remove py312 from docstring because there is no py312 image yet
1 parent 3feadc5 commit a27527d

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

src/sagemaker/fw_utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def validate_smdistributed(
689689
framework_name (str): A string representing the name of framework selected.
690690
framework_version (str): A string representing the framework version selected.
691691
py_version (str): A string representing the python version selected.
692-
Ex: `py38, py39, py310, py311, py312`
692+
Ex: `py38, py39, py310, py311`
693693
distribution (dict): A dictionary with information to enable distributed training.
694694
(Defaults to None if distributed training is not enabled.) For example:
695695
@@ -762,7 +762,7 @@ def _validate_smdataparallel_args(
762762
framework_name (str): A string representing the name of framework selected. Ex: `tensorflow`
763763
framework_version (str): A string representing the framework version selected. Ex: `2.3.1`
764764
py_version (str): A string representing the python version selected.
765-
Ex: `py38, py39, py310, py311, py312`
765+
Ex: `py38, py39, py310, py311`
766766
distribution (dict): A dictionary with information to enable distributed training.
767767
(Defaults to None if distributed training is not enabled.) Ex:
768768
@@ -846,7 +846,7 @@ def validate_distribution(
846846
framework_name (str): A string representing the name of framework selected.
847847
framework_version (str): A string representing the framework version selected.
848848
py_version (str): A string representing the python version selected.
849-
Ex: `py38, py39, py310, py311, py312`
849+
Ex: `py38, py39, py310, py311`
850850
image_uri (str): A string representing a Docker image URI.
851851
kwargs(dict): Additional kwargs passed to this function
852852
@@ -1010,7 +1010,7 @@ def validate_torch_distributed_distribution(
10101010
}
10111011
framework_version (str): A string representing the framework version selected.
10121012
py_version (str): A string representing the python version selected.
1013-
Ex: `py38, py39, py310, py311, py312`
1013+
Ex: `py38, py39, py310, py311`
10141014
image_uri (str): A string representing a Docker image URI.
10151015
entry_point (str or PipelineVariable): The absolute or relative path to the local Python
10161016
source file that should be executed as the entry point to
@@ -1162,7 +1162,7 @@ def validate_version_or_image_args(framework_version, py_version, image_uri):
11621162
Args:
11631163
framework_version (str): The version of the framework.
11641164
py_version (str): A string representing the python version selected.
1165-
Ex: `py38, py39, py310, py311, py312`
1165+
Ex: `py38, py39, py310, py311`
11661166
image_uri (str): The URI of the image.
11671167
11681168
Raises:
@@ -1194,7 +1194,7 @@ def create_image_uri(
11941194
instance_type (str): SageMaker instance type. Used to determine device
11951195
type (cpu/gpu/family-specific optimized).
11961196
framework_version (str): The version of the framework.
1197-
py_version (str): Optional. Python version Ex: `py38, py39, py310, py311, py312`.
1197+
py_version (str): Optional. Python version Ex: `py38, py39, py310, py311`.
11981198
If not specified, image uri will not include a python component.
11991199
account (str): AWS account that contains the image. (default:
12001200
'520713654638')

src/sagemaker/processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ def __init__(
14651465
instance_type (str or PipelineVariable): The type of EC2 instance to use for
14661466
processing, for example, 'ml.c4.xlarge'.
14671467
py_version (str): Python version you want to use for executing your
1468-
model training code. Ex `py38, py39, py310, py311, py312`. Value
1468+
model training code. Ex `py38, py39, py310, py311`. Value
14691469
is ignored when ``image_uri`` is provided.
14701470
image_uri (str or PipelineVariable): The URI of the Docker image to use for the
14711471
processing jobs (default: None).

src/sagemaker/serve/model_format/mlflow/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
"py39": "1.13.1",
2020
"py310": "2.2.0",
2121
"py311": "2.3.0",
22-
"py312": "2.5.0",
23-
2422
}
2523
MODEL_PACKAGE_ARN_REGEX = (
2624
r"^arn:aws:sagemaker:[a-z0-9\-]+:[0-9]{12}:model-package\/(.*?)(?:/(\d+))?$"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ commands =
8686
pip install 'torch==2.0.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
8787
pip install 'torchvision==0.15.2+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
8888
pip install 'dill>=0.3.8'
89-
pip install --upgrade pip setuptools wheel
89+
pip install "pyyaml>=6.0.1"
9090

9191
pytest {posargs}
9292
deps = .[test]

0 commit comments

Comments
 (0)