2828def _retrieve_image_uri (
2929 model_id : str ,
3030 model_version : str ,
31+ image_scope : str ,
3132 framework : Optional [str ],
3233 region : Optional [str ],
3334 version : Optional [str ],
3435 py_version : Optional [str ],
3536 instance_type : Optional [str ],
3637 accelerator_type : Optional [str ],
37- image_scope : Optional [str ],
3838 container_version : Optional [str ],
3939 distribution : Optional [str ],
4040 base_framework_version : Optional [str ],
@@ -50,6 +50,9 @@ def _retrieve_image_uri(
5050 model_id (str): JumpStart model ID for which to retrieve image URI.
5151 model_version (str): Version of the JumpStart model for which to retrieve
5252 the image URI (default: None).
53+ image_scope (str): The image type, i.e. what it is used for.
54+ Valid values: "training", "inference", "eia". If ``accelerator_type`` is set,
55+ ``image_scope`` is ignored.
5356 framework (str): The name of the framework or algorithm.
5457 region (str): The AWS region.
5558 version (str): The framework or algorithm version. This is required if there is
@@ -61,9 +64,6 @@ def _retrieve_image_uri(
6164 there are different images for different processor types.
6265 accelerator_type (str): Elastic Inference accelerator type. For more, see
6366 https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html.
64- image_scope (str): The image type, i.e. what it is used for.
65- Valid values: "training", "inference", "eia". If ``accelerator_type`` is set,
66- ``image_scope`` is ignored.
6767 container_version (str): the version of docker image.
6868 Ideally the value of parameter should be created inside the framework.
6969 For custom use, see the list of supported container versions:
@@ -112,7 +112,7 @@ def _retrieve_image_uri(
112112 if framework is not None and framework != ecr_specs .framework :
113113 raise ValueError (
114114 f"Incorrect container framework '{ framework } ' for JumpStart model ID '{ model_id } ' "
115- "and version {model_version}'."
115+ f "and version { model_version } '."
116116 )
117117
118118 if version is not None and version != ecr_specs .framework_version :
@@ -124,7 +124,7 @@ def _retrieve_image_uri(
124124 if py_version is not None and py_version != ecr_specs .py_version :
125125 raise ValueError (
126126 f"Incorrect python version '{ py_version } ' for JumpStart model ID '{ model_id } ' "
127- "and version {model_version}'."
127+ f "and version { model_version } '."
128128 )
129129
130130 base_framework_version_override : Optional [str ] = None
0 commit comments