sagemaker_create_optimization_job: Creates a job that optimizes a model for inference...

View source: R/sagemaker_operations.R

sagemaker_create_optimization_jobR Documentation

Creates a job that optimizes a model for inference performance

Description

Creates a job that optimizes a model for inference performance. To create the job, you provide the location of a source model, and you provide the settings for the optimization techniques that you want the job to apply. When the job completes successfully, SageMaker uploads the new optimized model to the output destination that you specify.

See https://www.paws-r-sdk.com/docs/sagemaker_create_optimization_job/ for full documentation.

Usage

sagemaker_create_optimization_job(
  OptimizationJobName,
  RoleArn,
  ModelSource,
  DeploymentInstanceType,
  OptimizationEnvironment = NULL,
  OptimizationConfigs,
  OutputConfig,
  StoppingCondition,
  Tags = NULL,
  VpcConfig = NULL
)

Arguments

OptimizationJobName

[required] A custom name for the new optimization job.

RoleArn

[required] The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.

During model optimization, Amazon SageMaker needs your permission to:

  • Read input data from an S3 bucket

  • Write model artifacts to an S3 bucket

  • Write logs to Amazon CloudWatch Logs

  • Publish metrics to Amazon CloudWatch

You grant permissions for all of these tasks to an IAM role. To pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission. For more information, see Amazon SageMaker Roles.

ModelSource

[required] The location of the source model to optimize with an optimization job.

DeploymentInstanceType

[required] The type of instance that hosts the optimized model that you create with the optimization job.

OptimizationEnvironment

The environment variables to set in the model container.

OptimizationConfigs

[required] Settings for each of the optimization techniques that the job applies.

OutputConfig

[required] Details for where to store the optimized model that you create with the optimization job.

StoppingCondition

[required]

Tags

A list of key-value pairs associated with the optimization job. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.

VpcConfig

A VPC in Amazon VPC that your optimized model has access to.


paws.machine.learning documentation built on Sept. 12, 2024, 6:23 a.m.