ModelPackageContainerDefinition
¶
Source code in docs_src/capo_sagemaker/types/model_package_container_definition.py
additional_model_data_sources
instance-attribute
¶
additional_model_data_sources: NotRequired[AdditionalModelDataSources]
Data sources that are available to your model in addition to the one that you specify for ModelDataSource when you use the CreateModelPackage action.
additional_s3_data_source
instance-attribute
¶
additional_s3_data_source: NotRequired[AdditionalS3DataSource]
The additional data source that is used during inference in the Docker container for your model package.
base_model
instance-attribute
¶
base_model: NotRequired[BaseModel]
Identifies the foundation model that was used as the starting point for model customization.
container_hostname
instance-attribute
¶
container_hostname: NotRequired[ContainerHostname]
The DNS host name for the Docker container.
environment
instance-attribute
¶
environment: NotRequired[EnvironmentMap]
The environment variables to set in the Docker container. Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map.
framework
instance-attribute
¶
framework: NotRequired[String]
The machine learning framework of the model package container image.
framework_version
instance-attribute
¶
framework_version: NotRequired[ModelPackageFrameworkVersion]
The framework version of the Model Package Container Image.
image
instance-attribute
¶
image: NotRequired[ContainerImage]
The Amazon Elastic Container Registry (Amazon ECR) path where inference code is stored.
If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code must meet SageMaker requirements. SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker.
image_digest
instance-attribute
¶
image_digest: NotRequired[ImageDigest]
An MD5 hash of the training algorithm that identifies the Docker image used for training.
is_checkpoint
instance-attribute
¶
is_checkpoint: NotRequired[Boolean]
Specifies whether the model data is a training checkpoint.
model_data_e_tag
instance-attribute
¶
model_data_e_tag: NotRequired[String]
The ETag associated with Model Data URL.
model_data_source
instance-attribute
¶
model_data_source: NotRequired[ModelDataSource]
Specifies the location of ML model data to deploy during endpoint creation.
model_data_url
instance-attribute
¶
model_data_url: NotRequired[Url]
The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
The model artifacts must be in an S3 bucket that is in the same region as the model package.
model_input
instance-attribute
¶
model_input: NotRequired[ModelInput]
A structure with Model Input details.