Skip to content

Commit 9ec6f8e

Browse files
committed
doc update
1 parent 5f053d5 commit 9ec6f8e

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/sagemaker/jumpstart/cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def _get_open_weight_manifest_key_from_model_id(
319319
key: JumpStartVersionedModelId,
320320
value: Optional[JumpStartVersionedModelId], # pylint: disable=W0613
321321
) -> JumpStartVersionedModelId:
322-
"""For open weights models, retrieve model manifest key for open source model.
322+
"""For open weights models, retrieve model manifest key for open weight model.
323323
324324
Filters models list by supported versions.
325325
"""

src/sagemaker/jumpstart/enums.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ class ModelFramework(str, Enum):
3737
class JumpStartModelType(str, Enum):
3838
"""Enum class for JumpStart model type.
3939
40-
Open source model refers to JumpStart owned community models.
41-
Proprietary model refers to external provider owned Marketplace models.
40+
OPEN_WEIGHTS: Publicly available models have open weights
41+
and are onboarded and maintained by JumpStart.
42+
PROPRIETARY: Proprietary models from third-party providers do not have open weights.
43+
You must subscribe to proprietary models in AWS Marketplace before use.
4244
"""
4345

4446
OPEN_WEIGHTS = "open_weights"

src/sagemaker/jumpstart/exceptions.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_proprietary_model_subscription_msg(
7171

7272
return (
7373
f"INFO: Using proprietary model '{model_id}'. "
74-
f"Please make sure to subscribe to the model on {subscription_link}"
74+
f"To subscribe to this model in AWS Marketplace, see {subscription_link}"
7575
)
7676

7777

@@ -215,7 +215,7 @@ class MarketplaceModelSubscriptionError(ValueError):
215215
"""Exception raised when trying to deploy a JumpStart Marketplace model.
216216
217217
A caller is required to subscribe to the Marketplace product in order to deploy.
218-
This exception is raised when a caller tries to deploy a JumpStart Marketplace
218+
This exception is raised when a caller tries to deploy a JumpStart Marketplace model
219219
but the caller is not subscribed to the model.
220220
"""
221221

@@ -227,8 +227,11 @@ def __init__(
227227
if message:
228228
self.message = message
229229
else:
230-
self.message = "You have not subscribed to this Marketplace model. "
230+
self.message = (
231+
"To use a proprietary JumpStart model, "
232+
"you must first subscribe to the model in AWS Marketplace. "
233+
)
231234
if model_subscription_link:
232-
self.message += f"Please subscribe following this link {model_subscription_link}"
235+
self.message += f"To subscribe to this model, see {model_subscription_link}"
233236

234237
super().__init__(self.message)

0 commit comments

Comments
 (0)