production_variant: Create a production variant description suitable for use in a...

View source: R/session.R

production_variantR Documentation

Create a production variant description suitable for use in a “ProductionVariant“ list.

Description

This is also part of a “CreateEndpointConfig“ request.

Usage

production_variant(
  model_name,
  instance_type = NULL,
  initial_instance_count = NULL,
  variant_name = "AllTraffic",
  initial_weight = 1,
  accelerator_type = NULL,
  serverless_inference_config = NULL
)

Arguments

model_name

(str): The name of the SageMaker model this production variant references.

instance_type

(str): The EC2 instance type for this production variant. For example, ml.c4.8xlarge'.

initial_instance_count

(int): The initial instance count for this production variant (default: 1).

variant_name

(string): The “VariantName“ of this production variant (default: 'AllTraffic').

initial_weight

(int): The relative “InitialVariantWeight“ of this production variant (default: 1).

accelerator_type

(str): Type of Elastic Inference accelerator for this production variant. For example, 'ml.eia1.medium'. For more information: https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html

serverless_inference_config

(list): Specifies configuration dict related to serverless endpoint. The dict is converted from sagemaker.model_monitor.ServerlessInferenceConfig object (default: None)

Value

dict[str, str]: An SageMaker “ProductionVariant“ description


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.