@@ -146,16 +146,16 @@ def _get_manifest_key_from_model_id_semantic_version(
146
146
key : JumpStartVersionedModelId ,
147
147
value : Optional [JumpStartVersionedModelId ], # pylint: disable=W0613
148
148
) -> 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.
150
150
151
151
Uses ``packaging.version`` to perform version comparison. The highest model version
152
152
matching the semantic version is used, which is compatible with the SageMaker
153
153
version.
154
154
155
155
Args:
156
- key (JumpStartVersionedModelId): Key for which to fetch versioned model id .
156
+ key (JumpStartVersionedModelId): Key for which to fetch versioned model ID .
157
157
value (Optional[JumpStartVersionedModelId]): Unused variable for current value of
158
- old cached model id /version.
158
+ old cached model ID /version.
159
159
160
160
Raises:
161
161
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]:
287
287
return manifest
288
288
289
289
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.
291
291
292
292
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.
294
294
semantic_version_str (str): The semantic version for which to get a
295
295
header.
296
296
"""
@@ -331,7 +331,7 @@ def _get_header_impl(
331
331
Allows a single retry if the cache is old.
332
332
333
333
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.
335
335
semantic_version_str (str): The semantic version for which to get a
336
336
header.
337
337
attempt (int): attempt number at retrieving a header.
@@ -353,10 +353,10 @@ def _get_header_impl(
353
353
return self ._get_header_impl (model_id , semantic_version_str , attempt + 1 )
354
354
355
355
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.
357
357
358
358
Args:
359
- model_id (str): model id for which to get specs.
359
+ model_id (str): model ID for which to get specs.
360
360
semantic_version_str (str): The semantic version for which to get
361
361
specs.
362
362
"""
@@ -369,6 +369,6 @@ def get_specs(self, model_id: str, semantic_version_str: str) -> JumpStartModelS
369
369
return specs # type: ignore
370
370
371
371
def clear (self ) -> None :
372
- """Clears the model id /version and s3 cache."""
372
+ """Clears the model ID /version and s3 cache."""
373
373
self ._s3_cache .clear ()
374
374
self ._model_id_semantic_version_manifest_key_cache .clear ()
0 commit comments