@@ -146,16 +146,16 @@ def _get_manifest_key_from_model_id_semantic_version(
146146 key : JumpStartVersionedModelId ,
147147 value : Optional [JumpStartVersionedModelId ], # pylint: disable=W0613
148148 ) -> JumpStartVersionedModelId :
149- """Return model id and version in manifest that matches semantic version/id.
149+ """Return model ID and version in manifest that matches semantic version/id.
150150
151151 Uses ``packaging.version`` to perform version comparison. The highest model version
152152 matching the semantic version is used, which is compatible with the SageMaker
153153 version.
154154
155155 Args:
156- key (JumpStartVersionedModelId): Key for which to fetch versioned model id .
156+ key (JumpStartVersionedModelId): Key for which to fetch versioned model ID .
157157 value (Optional[JumpStartVersionedModelId]): Unused variable for current value of
158- old cached model id /version.
158+ old cached model ID /version.
159159
160160 Raises:
161161 KeyError: If the semantic version is not found in the manifest, or is found but
@@ -287,10 +287,10 @@ def get_manifest(self) -> List[JumpStartModelHeader]:
287287 return manifest
288288
289289 def get_header (self , model_id : str , semantic_version_str : str ) -> JumpStartModelHeader :
290- """Return header for a given JumpStart model id and semantic version.
290+ """Return header for a given JumpStart model ID and semantic version.
291291
292292 Args:
293- model_id (str): model id for which to get a header.
293+ model_id (str): model ID for which to get a header.
294294 semantic_version_str (str): The semantic version for which to get a
295295 header.
296296 """
@@ -331,7 +331,7 @@ def _get_header_impl(
331331 Allows a single retry if the cache is old.
332332
333333 Args:
334- model_id (str): model id for which to get a header.
334+ model_id (str): model ID for which to get a header.
335335 semantic_version_str (str): The semantic version for which to get a
336336 header.
337337 attempt (int): attempt number at retrieving a header.
@@ -353,10 +353,10 @@ def _get_header_impl(
353353 return self ._get_header_impl (model_id , semantic_version_str , attempt + 1 )
354354
355355 def get_specs (self , model_id : str , semantic_version_str : str ) -> JumpStartModelSpecs :
356- """Return specs for a given JumpStart model id and semantic version.
356+ """Return specs for a given JumpStart model ID and semantic version.
357357
358358 Args:
359- model_id (str): model id for which to get specs.
359+ model_id (str): model ID for which to get specs.
360360 semantic_version_str (str): The semantic version for which to get
361361 specs.
362362 """
@@ -369,6 +369,6 @@ def get_specs(self, model_id: str, semantic_version_str: str) -> JumpStartModelS
369369 return specs # type: ignore
370370
371371 def clear (self ) -> None :
372- """Clears the model id /version and s3 cache."""
372+ """Clears the model ID /version and s3 cache."""
373373 self ._s3_cache .clear ()
374374 self ._model_id_semantic_version_manifest_key_cache .clear ()
0 commit comments