@@ -341,7 +341,9 @@ def register(
341341 "MACHINE_LEARNING" (default: None).
342342
343343 Returns:
344- A `sagemaker.model.ModelPackage` instance.
344+ A `sagemaker.model.ModelPackage` instance or pipeline step arguments
345+ in case the Model instance is built with
346+ :class:`~sagemaker.workflow.pipeline_context.PipelineSession`
345347 """
346348 if self .model_data is None :
347349 raise ValueError ("SageMaker Model Package cannot be created without model data." )
@@ -398,15 +400,22 @@ def create(
398400 attach to an endpoint for model loading and inference, for
399401 example, 'ml.eia1.medium'. If not specified, no Elastic
400402 Inference accelerator will be attached to the endpoint (default: None).
401- serverless_inference_config (sagemaker.serverless. ServerlessInferenceConfig):
403+ serverless_inference_config (ServerlessInferenceConfig):
402404 Specifies configuration related to serverless endpoint. Instance type is
403405 not provided in serverless inference. So this is used to find image URIs
404406 (default: None).
405407 tags (List[Dict[str, str]]): The list of tags to add to
406- the model (default: None). Example: >>> tags = [{'Key': 'tagname', 'Value':
407- 'tagvalue'}] For more information about tags, see
408- https://boto3.amazonaws.com/v1/documentation
409- /api/latest/reference/services/sagemaker.html#SageMaker.Client.add_tags
408+ the model (default: None). Example::
409+
410+ tags = [{'Key': 'tagname', 'Value':'tagvalue'}]
411+
412+ For more information about tags, see
413+ `boto3 documentation <https://boto3.amazonaws.com/v1/documentation/\
414+ api/latest/reference/services/sagemaker.html#SageMaker.Client.add_tags>`_
415+
416+ Returns:
417+ None or pipeline step arguments in case the Model instance is built with
418+ :class:`~sagemaker.workflow.pipeline_context.PipelineSession`
410419 """
411420 # TODO: we should replace _create_sagemaker_model() with create()
412421 self ._create_sagemaker_model (
0 commit comments