Skip to content

MultiModelConfig

Source code in docs_src/capo_sagemaker/types/multi_model_config.py
class MultiModelConfig(TypedDict, closed=True):
    model_cache_setting: NotRequired[
        "capo_sagemaker.types.model_cache_setting.ModelCacheSetting"
    ]
    """<p>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 <code>Disabled</code>.</p>"""

model_cache_setting instance-attribute

model_cache_setting: NotRequired[ModelCacheSetting]

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.