File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ def _get_open_weight_manifest_key_from_model_id(
319
319
key : JumpStartVersionedModelId ,
320
320
value : Optional [JumpStartVersionedModelId ], # pylint: disable=W0613
321
321
) -> 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.
323
323
324
324
Filters models list by supported versions.
325
325
"""
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ class ModelFramework(str, Enum):
37
37
class JumpStartModelType (str , Enum ):
38
38
"""Enum class for JumpStart model type.
39
39
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.
42
44
"""
43
45
44
46
OPEN_WEIGHTS = "open_weights"
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def get_proprietary_model_subscription_msg(
71
71
72
72
return (
73
73
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 } "
75
75
)
76
76
77
77
@@ -215,7 +215,7 @@ class MarketplaceModelSubscriptionError(ValueError):
215
215
"""Exception raised when trying to deploy a JumpStart Marketplace model.
216
216
217
217
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
219
219
but the caller is not subscribed to the model.
220
220
"""
221
221
@@ -227,8 +227,11 @@ def __init__(
227
227
if message :
228
228
self .message = message
229
229
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
+ )
231
234
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 } "
233
236
234
237
super ().__init__ (self .message )
You can’t perform that action at this time.
0 commit comments