interface MultiModelConfigProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Sagemaker.CfnModel.MultiModelConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnModel_MultiModelConfigProperty |
Java | software.amazon.awscdk.services.sagemaker.CfnModel.MultiModelConfigProperty |
Python | aws_cdk.aws_sagemaker.CfnModel.MultiModelConfigProperty |
TypeScript | aws-cdk-lib » aws_sagemaker » CfnModel » MultiModelConfigProperty |
Specifies additional configuration for hosting multi-model endpoints.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const multiModelConfigProperty: sagemaker.CfnModel.MultiModelConfigProperty = {
modelCacheSetting: 'modelCacheSetting',
};
Properties
Name | Type | Description |
---|---|---|
model | string | Whether to cache models for a multi-model endpoint. |
modelCacheSetting?
Type:
string
(optional)
Whether to cache models for a multi-model endpoint.
By default, multi-model endpoints cache models so that a model does not have to be loaded into memory each time it is invoked. Some use cases do not benefit from model caching. For example, if an endpoint hosts a large number of models that are each invoked infrequently, the endpoint might perform better if you disable model caching. To disable model caching, set the value of this parameter to Disabled.