@@ -185,6 +185,7 @@ def __init__(
185
185
custom_attributes = None ,
186
186
accelerator_type = None ,
187
187
endpoint_name_prefix = None ,
188
+ target_model = None ,
188
189
):
189
190
r"""Initializes a configuration of a model and the endpoint to be created for it.
190
191
@@ -218,6 +219,9 @@ def __init__(
218
219
https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html.
219
220
endpoint_name_prefix (str): The endpoint name prefix of a new endpoint. Must follow
220
221
pattern "^[a-zA-Z0-9](-\*[a-zA-Z0-9]".
222
+ target_model (str): Sets the target model name when using a multi-model endpoint. For
223
+ more information about multi-model endpoints, see
224
+ https://docs.aws.amazon.com/sagemaker/latest/dg/multi-model-endpoints.html
221
225
"""
222
226
self .predictor_config = {
223
227
"model_name" : model_name ,
@@ -261,6 +265,7 @@ def __init__(
261
265
self .predictor_config ["content_template" ] = content_template
262
266
_set (custom_attributes , "custom_attributes" , self .predictor_config )
263
267
_set (accelerator_type , "accelerator_type" , self .predictor_config )
268
+ _set (target_model , "target_model" , self .predictor_config )
264
269
265
270
def get_predictor_config (self ):
266
271
"""Returns part of the predictor dictionary of the analysis config."""
0 commit comments