@@ -76,8 +76,7 @@ def __init__(
76
76
endpoints use this role to access training data and model
77
77
artifacts. After the endpoint is created, the inference code
78
78
might use the IAM role, if it needs to access an AWS resource.
79
- model_data (str): The S3 location of a SageMaker model data
80
- ``.tar.gz`` file.
79
+ model_data (str): The S3 location of a SageMaker model data `.tar.gz` file.
81
80
entry_point (str): Path (absolute or relative) to the local Python
82
81
source file which should be executed as the entry point to
83
82
inference. If ``source_dir`` is specified, then ``entry_point``
@@ -94,6 +93,8 @@ def __init__(
94
93
>>> |----- test.py
95
94
96
95
You can assign entry_point='src/train.py'.
96
+ display_name (str): The display name of this `_RepackModelStep` step (default: None).
97
+ description (str): The description of this `_RepackModelStep` (default: None).
97
98
source_dir (str): A relative location to a directory with other training
98
99
or model hosting source code dependencies aside from the entry point
99
100
file in the Git repo (default: None). Structure within this
@@ -124,12 +125,14 @@ def __init__(
124
125
125
126
This is not supported with "local code" in Local Mode.
126
127
depends_on (List[str] or List[Step]): A list of step names or instances
127
- this step depends on
128
+ this step depends on (default: None).
128
129
retry_policies (List[RetryPolicy]): The list of retry policies for the current step
130
+ (default: None).
129
131
subnets (list[str]): List of subnet ids. If not specified, the re-packing
130
- job will be created without VPC config.
132
+ job will be created without VPC config (default: None) .
131
133
security_group_ids (list[str]): List of security group ids. If not
132
- specified, the re-packing job will be created without VPC config.
134
+ specified, the re-packing job will be created without VPC config (default: None).
135
+ **kwargs: additional arguments for the repacking job.
133
136
"""
134
137
self ._model_data = model_data
135
138
self .sagemaker_session = sagemaker_session
@@ -283,36 +286,38 @@ def __init__(
283
286
284
287
Args:
285
288
name (str): The name of the training step.
286
- step_args (dict): The arguments for the `_RegisterModelStep` definition (default: None).
287
- estimator (EstimatorBase): A `sagemaker.estimator.EstimatorBase` instance
289
+ step_args (dict): The arguments for this `_RegisterModelStep` definition
288
290
(default: None).
289
- model_data: the S3 URI to the model data from training (default: None).
290
- content_types (list): The supported MIME types for the
291
- input data (default: None).
292
- response_types (list): The supported MIME types for
293
- the output data (default: None).
291
+ content_types (list): The supported MIME types for the input data (default: None).
292
+ response_types (list): The supported MIME types for the output data (default: None).
294
293
inference_instances (list): A list of the instance types that are used to
295
294
generate inferences in real-time (default: None).
296
295
transform_instances (list): A list of the instance types on which a
297
296
transformation job can be run or on which an endpoint
298
297
can be deployed (default: None).
298
+ estimator (EstimatorBase): A `sagemaker.estimator.EstimatorBase` instance
299
+ (default: None).
300
+ model_data: the S3 URI to the model data from training (default: None).
299
301
model_package_group_name (str): Model Package Group name, exclusive to
300
302
`model_package_name`, using `model_package_group_name`
301
303
makes the Model Package versioned (default: None).
302
304
model_metrics (ModelMetrics): ModelMetrics object (default: None).
303
- metadata_properties (MetadataProperties): MetadataProperties object
304
- (default: None).
305
+ metadata_properties (MetadataProperties): MetadataProperties object (default: None).
305
306
approval_status (str): Model Approval Status, values can be "Approved",
306
- "Rejected", or "PendingManualApproval"
307
- (default: "PendingManualApproval").
307
+ "Rejected", or "PendingManualApproval" (default: "PendingManualApproval").
308
308
image_uri (str): The container image uri for Model Package, if not specified,
309
309
Estimator's training container image will be used (default: None).
310
310
compile_model_family (str): Instance family for compiled model,
311
311
if specified, a compiled model will be used (default: None).
312
+ display_name (str): The display name of this `_RegisterModelStep` step (default: None).
312
313
description (str): Model Package description (default: None).
313
314
depends_on (List[str] or List[Step]): A list of step names or instances
314
315
this step depends on (default: None).
315
316
retry_policies (List[RetryPolicy]): The list of retry policies for the current step
317
+ (default: None).
318
+ tags (List[dict[str, str]]): A list of dictionaries containing key-value pairs used to
319
+ configure the create model package request (default: None).
320
+ container_def_list (list): A list of container definitions (default: None).
316
321
drift_check_baselines (DriftCheckBaselines): DriftCheckBaselines object (default: None).
317
322
customer_metadata_properties (dict[str, str]): A dictionary of key-value paired
318
323
metadata properties (default: None).
0 commit comments