describe-model-package
Description
Returns a description of the specified model package, which is used to create SageMaker models or list them on Amazon Web Services Marketplace.
Warning
If you provided a KMS Key ID when you created your model package, you will see the KMS Decrypt API call in your CloudTrail logs when you use this API.To create models in SageMaker, buyers can subscribe to model packages listed on Amazon Web Services Marketplace.
See also: AWS API Documentation
Synopsis
describe-model-package
--model-package-name <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
Options
--model-package-name (string)
The name or Amazon Resource Name (ARN) of the model package to describe.
When you specify a name, the name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).
--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
Global Options
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
- json
- text
- table
- yaml
- yaml-stream
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
- on
- off
- auto
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
- base64
- raw-in-base64-out
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
Output
ModelPackageName -> (string)
ModelPackageGroupName -> (string)
ModelPackageVersion -> (integer)
ModelPackageArn -> (string)
ModelPackageDescription -> (string)
CreationTime -> (timestamp)
InferenceSpecification -> (structure)
Details about inference jobs that you can run with models based on this model package.
Containers -> (list)
The Amazon ECR registry path of the Docker image that contains the inference code.
(structure)
Describes the Docker container for the model package.
ContainerHostname -> (string)
Image -> (string)
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 .
ImageDigest -> (string)
ModelDataUrl -> (string)
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).
Note
The model artifacts must be in an S3 bucket that is in the same region as the model package.ModelDataSource -> (structure)
Specifies the location of ML model data to deploy during endpoint creation.
S3DataSource -> (structure)
Specifies the S3 location of ML model data to deploy.
S3Uri -> (string)
S3DataType -> (string)
Specifies the type of ML model data to deploy.
If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix identified by S3Uri always ends with a forward slash (/).
If you choose S3Object , S3Uri identifies an object that is the ML model data to deploy.
CompressionType -> (string)
Specifies how the ML model data is prepared.
If you choose Gzip and choose S3Object as the value of S3DataType , S3Uri identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to decompress and untar the object during model deployment.
If you choose None and chooose S3Object as the value of S3DataType , S3Uri identifies an object that represents an uncompressed ML model to deploy.
If you choose None and choose S3Prefix as the value of S3DataType , S3Uri identifies a key name prefix, under which all objects represents the uncompressed ML model to deploy.
If you choose None, then SageMaker will follow rules below when creating model data files under /opt/ml/model directory for use by your inference code:
- If you choose
S3Objectas the value ofS3DataType, then SageMaker will split the key of the S3 object referenced byS3Uriby slash (/), and use the last part as the filename of the file holding the content of the S3 object. - If you choose
S3Prefixas the value ofS3DataType, then for each S3 object under the key name pefix referenced byS3Uri, SageMaker will trim its key by the prefix, and use the remainder as the path (relative to/opt/ml/model) of the file holding the content of the S3 object. SageMaker will split the remainder by slash (/), using intermediate parts as directory names and the last part as filename of the file holding the content of the S3 object. - Do not use any of the following as file names or directory names:
- An empty or blank string
- A string which contains null bytes
- A string longer than 255 bytes
- A single dot (
.) - A double dot (
..)
- Ambiguous file names will result in model deployment failure. For example, if your uncompressed ML model consists of two S3 objects
s3://mybucket/model/weightsands3://mybucket/model/weights/part1and you specifys3://mybucket/model/as the value ofS3UriandS3Prefixas the value ofS3DataType, then it will result in name clash between/opt/ml/model/weights(a regular file) and/opt/ml/model/weights/(a directory). - Do not organize the model artifacts in S3 console using folders . When you create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name you provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker restrictions on model artifact file names, leading to model deployment failure.
ModelAccessConfig -> (structure)
Specifies the access configuration file for the ML model. You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig . You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.
AcceptEula -> (boolean)
AcceptEula value must be explicitly defined as True in order to accept the EULA that this model requires. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.HubAccessConfig -> (structure)
Configuration information for hub access.
HubContentArn -> (string)
ManifestS3Uri -> (string)
ETag -> (string)
ManifestEtag -> (string)
ProductId -> (string)
Environment -> (map)
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.
key -> (string)
value -> (string)
ModelInput -> (structure)
A structure with Model Input details.
DataInputConfig -> (string)
Framework -> (string)
FrameworkVersion -> (string)
NearestModelName -> (string)
ListModelMetadata .AdditionalS3DataSource -> (structure)
The additional data source that is used during inference in the Docker container for your model package.
S3DataType -> (string)
S3Uri -> (string)
CompressionType -> (string)
None if your additional data source is not compressed.ETag -> (string)
ModelDataETag -> (string)
SupportedTransformInstanceTypes -> (list)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
This parameter is required for unversioned models, and optional for versioned models.
(string)
SupportedRealtimeInferenceInstanceTypes -> (list)
A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
(string)
SupportedContentTypes -> (list)
The supported MIME types for the input data.
(string)
SupportedResponseMIMETypes -> (list)
The supported MIME types for the output data.
(string)
SourceAlgorithmSpecification -> (structure)
Details about the algorithm that was used to create the model package.
SourceAlgorithms -> (list)
A list of the algorithms that were used to create a model package.
(structure)
Specifies an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in Amazon Web Services Marketplace that you are subscribed to.
ModelDataUrl -> (string)
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).
Note
The model artifacts must be in an S3 bucket that is in the same Amazon Web Services region as the algorithm.ModelDataSource -> (structure)
Specifies the location of ML model data to deploy during endpoint creation.
S3DataSource -> (structure)
Specifies the S3 location of ML model data to deploy.
S3Uri -> (string)
S3DataType -> (string)
Specifies the type of ML model data to deploy.
If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix identified by S3Uri always ends with a forward slash (/).
If you choose S3Object , S3Uri identifies an object that is the ML model data to deploy.
CompressionType -> (string)
Specifies how the ML model data is prepared.
If you choose Gzip and choose S3Object as the value of S3DataType , S3Uri identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to decompress and untar the object during model deployment.
If you choose None and chooose S3Object as the value of S3DataType , S3Uri identifies an object that represents an uncompressed ML model to deploy.
If you choose None and choose S3Prefix as the value of S3DataType , S3Uri identifies a key name prefix, under which all objects represents the uncompressed ML model to deploy.
If you choose None, then SageMaker will follow rules below when creating model data files under /opt/ml/model directory for use by your inference code:
- If you choose
S3Objectas the value ofS3DataType, then SageMaker will split the key of the S3 object referenced byS3Uriby slash (/), and use the last part as the filename of the file holding the content of the S3 object. - If you choose
S3Prefixas the value ofS3DataType, then for each S3 object under the key name pefix referenced byS3Uri, SageMaker will trim its key by the prefix, and use the remainder as the path (relative to/opt/ml/model) of the file holding the content of the S3 object. SageMaker will split the remainder by slash (/), using intermediate parts as directory names and the last part as filename of the file holding the content of the S3 object. - Do not use any of the following as file names or directory names:
- An empty or blank string
- A string which contains null bytes
- A string longer than 255 bytes
- A single dot (
.) - A double dot (
..)
- Ambiguous file names will result in model deployment failure. For example, if your uncompressed ML model consists of two S3 objects
s3://mybucket/model/weightsands3://mybucket/model/weights/part1and you specifys3://mybucket/model/as the value ofS3UriandS3Prefixas the value ofS3DataType, then it will result in name clash between/opt/ml/model/weights(a regular file) and/opt/ml/model/weights/(a directory). - Do not organize the model artifacts in S3 console using folders . When you create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name you provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker restrictions on model artifact file names, leading to model deployment failure.
ModelAccessConfig -> (structure)
Specifies the access configuration file for the ML model. You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig . You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.
AcceptEula -> (boolean)
AcceptEula value must be explicitly defined as True in order to accept the EULA that this model requires. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.HubAccessConfig -> (structure)
Configuration information for hub access.
HubContentArn -> (string)
ManifestS3Uri -> (string)
ETag -> (string)
ManifestEtag -> (string)
ModelDataETag -> (string)
AlgorithmName -> (string)
ValidationSpecification -> (structure)
Configurations for one or more transform jobs that SageMaker runs to test the model package.
ValidationRole -> (string)
ValidationProfiles -> (list)
An array of ModelPackageValidationProfile objects, each of which specifies a batch transform job that SageMaker runs to validate your model package.
(structure)
Contains data, such as the inputs and targeted instance types that are used in the process of validating the model package.
The data provided in the validation profile is made available to your buyers on Amazon Web Services Marketplace.
ProfileName -> (string)
TransformJobDefinition -> (structure)
The TransformJobDefinition object that describes the transform job used for the validation of the model package.
MaxConcurrentTransforms -> (integer)
MaxPayloadInMB -> (integer)
BatchStrategy -> (string)
A string that determines the number of records included in a single mini-batch.
SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit.Environment -> (map)
The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.
key -> (string)
value -> (string)
TransformInput -> (structure)
A description of the input source and the way the transform job consumes it.
DataSource -> (structure)
Describes the location of the channel data, which is, the S3 location of the input data that the model can consume.
S3DataSource -> (structure)
The S3 location of the data source that is associated with a channel.
S3DataType -> (string)
If you choose S3Prefix , S3Uri identifies a key name prefix. Amazon SageMaker uses all objects with the specified key name prefix for batch transform.
If you choose ManifestFile , S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for batch transform.
The following values are compatible: ManifestFile , S3Prefix
The following value is not compatible: AugmentedManifestFile
S3Uri -> (string)
Depending on the value specified for the S3DataType , identifies either a key name prefix or a manifest. For example:
- A key name prefix might look like this:
s3://bucketname/exampleprefix/. - A manifest might look like this:
s3://bucketname/example.manifestThe manifest is an S3 object which is a JSON file with the following format:[ {"prefix": "s3://customer_bucket/some/prefix/"},"relative/path/to/custdata-1","relative/path/custdata-2",..."relative/path/custdata-N"]The preceding JSON matches the followingS3Uris:s3://customer_bucket/some/prefix/relative/path/to/custdata-1s3://customer_bucket/some/prefix/relative/path/custdata-2...s3://customer_bucket/some/prefix/relative/path/custdata-NThe complete set ofS3Urisin this manifest constitutes the input data for the channel for this datasource. The object that eachS3Urispoints to must be readable by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.
ContentType -> (string)
CompressionType -> (string)
None .SplitType -> (string)
The method to use to split the transform job’s data files into smaller batches. Splitting is necessary when the total size of each object is too large to fit in a single request. You can also use data splitting to improve performance by processing multiple concurrent mini-batches. The default value for SplitType is None , which indicates that input data files are not split, and request payloads contain the entire contents of an input object. Set the value of this parameter to Line to split records on a newline character boundary. SplitType also supports a number of record-oriented binary data formats. Currently, the supported record formats are:
- RecordIO
- TFRecord
When splitting is enabled, the size of a mini-batch depends on the values of the BatchStrategy and MaxPayloadInMB parameters. When the value of BatchStrategy is MultiRecord , Amazon SageMaker sends the maximum number of records in each request, up to the MaxPayloadInMB limit. If the value of BatchStrategy is SingleRecord , Amazon SageMaker sends individual records in each request.
Note
Some data formats represent a record as a binary payload wrapped with extra padding bytes. When splitting is applied to a binary data format, padding is removed if the value of BatchStrategy is set to SingleRecord . Padding is not removed if the value of BatchStrategy is set to MultiRecord .
For more information about RecordIO , see Create a Dataset Using RecordIO in the MXNet documentation. For more information about TFRecord , see Consuming TFRecord data in the TensorFlow documentation.
TransformOutput -> (structure)
Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.
S3OutputPath -> (string)
The Amazon S3 path where you want Amazon SageMaker to store the results of the transform job. For example, s3://bucket-name/key-name-prefix .
For every S3 object used as input for the transform job, batch transform stores the transformed data with an .``out`` suffix in a corresponding subfolder in the location in the output prefix. For example, for the input data stored at s3://bucket-name/input-name-prefix/dataset01/data.csv , batch transform stores the transformed data at s3://bucket-name/output-name-prefix/input-name-prefix/data.csv.out . Batch transform doesn’t upload partially processed objects. For an input S3 object that contains multiple records, it creates an .``out`` file only if the transform job succeeds on the entire file. When the input contains multiple S3 objects, the batch transform job processes the listed S3 objects and uploads only the output for successfully processed objects. If any object fails in the transform job batch transform marks the job as failed to prompt investigation.
Accept -> (string)
AssembleWith -> (string)
None . To add a newline character at the end of every transformed record, specify Line .KmsKeyId -> (string)
The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:
- Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab - Key ARN:
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - Alias name:
alias/ExampleAlias - Alias name ARN:
arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias
If you don’t provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role’s account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.
The KMS key policy must grant permission to the IAM role that you specify in your CreateModel request. For more information, see Using Key Policies in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide .
TransformResources -> (structure)
Identifies the ML compute instances for the transform job.
InstanceType -> (string)
ml.m5.large instance types.InstanceCount -> (integer)
1 , and the maximum is 100 . For distributed transform jobs, specify a value greater than 1 .VolumeKmsKeyId -> (string)
The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt model data on the storage volume attached to the ML compute instance(s) that run the batch transform job.
Note
Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can’t request a VolumeKmsKeyId when using an instance type with local storage.
For a list of instance types that support local instance storage, see Instance Store Volumes .
For more information about local instance storage encryption, see SSD Instance Store Volumes .
The VolumeKmsKeyId can be any of the following formats:
- Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab - Key ARN:
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - Alias name:
alias/ExampleAlias - Alias name ARN:
arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias
TransformAmiVersion -> (string)
Specifies an option from a collection of preconfigured Amazon Machine Image (AMI) images. Each image is configured by Amazon Web Services with a set of software and driver versions.
-
Accelerator: GPU
-
NVIDIA driver version: 470
al2-ami-sagemaker-batch-gpu-535
-
Accelerator: GPU
-
NVIDIA driver version: 535
ModelPackageStatus -> (string)
ModelPackageStatusDetails -> (structure)
Details about the current status of the model package.
ValidationStatuses -> (list)
The validation status of the model package.
(structure)
Represents the overall status of a model package.
Name -> (string)
Status -> (string)
FailureReason -> (string)
Failed , the reason for the failure.ImageScanStatuses -> (list)
The status of the scan of the Docker image container for the model package.
(structure)
Represents the overall status of a model package.
Name -> (string)
Status -> (string)
FailureReason -> (string)
Failed , the reason for the failure.CertifyForMarketplace -> (boolean)
ModelApprovalStatus -> (string)
CreatedBy -> (structure)
Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
UserProfileArn -> (string)
UserProfileName -> (string)
DomainId -> (string)
IamIdentity -> (structure)
The IAM Identity details associated with the user. These details are associated with model package groups, model packages, and project entities only.
Arn -> (string)
PrincipalId -> (string)
SourceIdentity -> (string)
MetadataProperties -> (structure)
Metadata properties of the tracking entity, trial, or trial component.
CommitId -> (string)
Repository -> (string)
GeneratedBy -> (string)
ProjectId -> (string)
ModelMetrics -> (structure)
Metrics for the model.
ModelQuality -> (structure)
Metrics that measure the quality of a model.
Statistics -> (structure)
Model quality statistics.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
Constraints -> (structure)
Model quality constraints.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
ModelDataQuality -> (structure)
Metrics that measure the quality of the input data for a model.
Statistics -> (structure)
Data quality statistics for a model.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
Constraints -> (structure)
Data quality constraints for a model.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
Bias -> (structure)
Metrics that measure bias in a model.
Report -> (structure)
The bias report for a model
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
PreTrainingReport -> (structure)
The pre-training bias report for a model.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
PostTrainingReport -> (structure)
The post-training bias report for a model.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
Explainability -> (structure)
Metrics that help explain a model.
Report -> (structure)
The explainability report for a model.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
LastModifiedTime -> (timestamp)
LastModifiedBy -> (structure)
Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
UserProfileArn -> (string)
UserProfileName -> (string)
DomainId -> (string)
IamIdentity -> (structure)
The IAM Identity details associated with the user. These details are associated with model package groups, model packages, and project entities only.
Arn -> (string)
PrincipalId -> (string)
SourceIdentity -> (string)
ApprovalDescription -> (string)
Domain -> (string)
Task -> (string)
SamplePayloadUrl -> (string)
CustomerMetadataProperties -> (map)
The metadata properties associated with the model package versions.
key -> (string)
value -> (string)
DriftCheckBaselines -> (structure)
Represents the drift check baselines that can be used when the model monitor is set using the model package. For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer Guide .
Bias -> (structure)
Represents the drift check bias baselines that can be used when the model monitor is set using the model package.
ConfigFile -> (structure)
The bias config file for a model.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
PreTrainingConstraints -> (structure)
The pre-training constraints.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
PostTrainingConstraints -> (structure)
The post-training constraints.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
Explainability -> (structure)
Represents the drift check explainability baselines that can be used when the model monitor is set using the model package.
Constraints -> (structure)
The drift check explainability constraints.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
ConfigFile -> (structure)
The explainability config file for the model.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
ModelQuality -> (structure)
Represents the drift check model quality baselines that can be used when the model monitor is set using the model package.
Statistics -> (structure)
The drift check model quality statistics.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
Constraints -> (structure)
The drift check model quality constraints.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
ModelDataQuality -> (structure)
Represents the drift check model data quality baselines that can be used when the model monitor is set using the model package.
Statistics -> (structure)
The drift check model data quality statistics.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
Constraints -> (structure)
The drift check model data quality constraints.
ContentType -> (string)
ContentDigest -> (string)
S3Uri -> (string)
AdditionalInferenceSpecifications -> (list)
An array of additional Inference Specification objects. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
(structure)
A structure of additional Inference Specification. Additional Inference Specification specifies details about inference jobs that can be run with models based on this model package
Name -> (string)
Description -> (string)
Containers -> (list)
The Amazon ECR registry path of the Docker image that contains the inference code.
(structure)
Describes the Docker container for the model package.
ContainerHostname -> (string)
Image -> (string)
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 .
ImageDigest -> (string)
ModelDataUrl -> (string)
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).
Note
The model artifacts must be in an S3 bucket that is in the same region as the model package.ModelDataSource -> (structure)
Specifies the location of ML model data to deploy during endpoint creation.
S3DataSource -> (structure)
Specifies the S3 location of ML model data to deploy.
S3Uri -> (string)
S3DataType -> (string)
Specifies the type of ML model data to deploy.
If you choose S3Prefix , S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix identified by S3Uri always ends with a forward slash (/).
If you choose S3Object , S3Uri identifies an object that is the ML model data to deploy.
CompressionType -> (string)
Specifies how the ML model data is prepared.
If you choose Gzip and choose S3Object as the value of S3DataType , S3Uri identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to decompress and untar the object during model deployment.
If you choose None and chooose S3Object as the value of S3DataType , S3Uri identifies an object that represents an uncompressed ML model to deploy.
If you choose None and choose S3Prefix as the value of S3DataType , S3Uri identifies a key name prefix, under which all objects represents the uncompressed ML model to deploy.
If you choose None, then SageMaker will follow rules below when creating model data files under /opt/ml/model directory for use by your inference code:
- If you choose
S3Objectas the value ofS3DataType, then SageMaker will split the key of the S3 object referenced byS3Uriby slash (/), and use the last part as the filename of the file holding the content of the S3 object. - If you choose
S3Prefixas the value ofS3DataType, then for each S3 object under the key name pefix referenced byS3Uri, SageMaker will trim its key by the prefix, and use the remainder as the path (relative to/opt/ml/model) of the file holding the content of the S3 object. SageMaker will split the remainder by slash (/), using intermediate parts as directory names and the last part as filename of the file holding the content of the S3 object. - Do not use any of the following as file names or directory names:
- An empty or blank string
- A string which contains null bytes
- A string longer than 255 bytes
- A single dot (
.) - A double dot (
..)
- Ambiguous file names will result in model deployment failure. For example, if your uncompressed ML model consists of two S3 objects
s3://mybucket/model/weightsands3://mybucket/model/weights/part1and you specifys3://mybucket/model/as the value ofS3UriandS3Prefixas the value ofS3DataType, then it will result in name clash between/opt/ml/model/weights(a regular file) and/opt/ml/model/weights/(a directory). - Do not organize the model artifacts in S3 console using folders . When you create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name you provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker restrictions on model artifact file names, leading to model deployment failure.
ModelAccessConfig -> (structure)
Specifies the access configuration file for the ML model. You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig . You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.
AcceptEula -> (boolean)
AcceptEula value must be explicitly defined as True in order to accept the EULA that this model requires. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.HubAccessConfig -> (structure)
Configuration information for hub access.
HubContentArn -> (string)
ManifestS3Uri -> (string)
ETag -> (string)
ManifestEtag -> (string)
ProductId -> (string)
Environment -> (map)
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.
key -> (string)
value -> (string)
ModelInput -> (structure)
A structure with Model Input details.
DataInputConfig -> (string)
Framework -> (string)
FrameworkVersion -> (string)
NearestModelName -> (string)
ListModelMetadata .AdditionalS3DataSource -> (structure)
The additional data source that is used during inference in the Docker container for your model package.
S3DataType -> (string)
S3Uri -> (string)
CompressionType -> (string)
None if your additional data source is not compressed.ETag -> (string)
ModelDataETag -> (string)
SupportedTransformInstanceTypes -> (list)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
(string)
SupportedRealtimeInferenceInstanceTypes -> (list)
A list of the instance types that are used to generate inferences in real-time.
(string)
SupportedContentTypes -> (list)
The supported MIME types for the input data.
(string)
SupportedResponseMIMETypes -> (list)
The supported MIME types for the output data.
(string)
SkipModelValidation -> (string)
SourceUri -> (string)
SecurityConfig -> (structure)
The KMS Key ID (KMSKeyId ) used for encryption of model package information.
KmsKeyId -> (string)
KMSKeyId ) used for encryption of model package information.ModelCard -> (structure)
The model card associated with the model package. Since ModelPackageModelCard is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of ModelCard . The ModelPackageModelCard schema does not include model_package_details , and model_overview is composed of the model_creator and model_artifact properties. For more information about the model package model card schema, see Model package model card schema . For more information about the model card associated with the model package, see View the Details of a Model Version .
ModelCardContent -> (string)
ModelCardStatus -> (string)
The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.
-
Draft: The model card is a work in progress. -
PendingReview: The model card is pending review. -
Approved: The model card is approved. -
Archived: The model card is archived. No more updates can be made to the model card content. If you try to update the model card content, you will receive the messageModel Card is in Archived state.
ModelLifeCycle -> (structure)
A structure describing the current state of the model in its life cycle.
Stage -> (string)
StageStatus -> (string)
StageDescription -> (string)
© Copyright 2025, Amazon Web Services. Created using Sphinx.