Skip to content

Commit 4299b8f

Browse files
committed
chore: improve error message
1 parent 6b6ccd1 commit 4299b8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sagemaker/jumpstart/artifacts/image_uris.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ def _retrieve_image_uri(
128128
ecr_specs = model_specs.hosting_ecr_specs
129129
if ecr_specs is None:
130130
raise ValueError(
131-
f"No hosting ECR specs found for JumpStart model ID '{model_id}' with "
132-
f"{instance_type} instance type in {region}. "
131+
f"No inference ECR configuration found for JumpStart model ID '{model_id}' "
132+
f"with {instance_type} instance type in {region}. "
133133
"Please try another instance type or region."
134134
)
135135
elif image_scope == JumpStartScriptScope.TRAINING:
@@ -143,8 +143,8 @@ def _retrieve_image_uri(
143143
ecr_specs = model_specs.training_ecr_specs
144144
if ecr_specs is None:
145145
raise ValueError(
146-
f"No training ECR specs found for JumpStart model ID '{model_id}' with "
147-
f"{instance_type} instance type in {region}. "
146+
f"No training ECR configuration found for JumpStart model ID '{model_id}' "
147+
f"with {instance_type} instance type in {region}. "
148148
"Please try another instance type or region."
149149
)
150150
if framework is not None and framework != ecr_specs.framework:

0 commit comments

Comments
 (0)