JumpStartModelsCache | R Documentation |
The manifest and specs associated with JumpStart models provide the information necessary for launching JumpStart models from the SageMaker SDK.
new()
Initialize a “JumpStartModelsCache“ instance.
JumpStartModelsCache$new( region = JUMPSTART_DEFAULT_REGION_NAME(), max_s3_cache_items = JUMPSTART_DEFAULT_MAX_S3_CACHE_ITEMS, s3_cache_expiration_horizon = JUMPSTART_DEFAULT_S3_CACHE_EXPIRATION_HORIZON, max_semantic_version_cache_items = JUMPSTART_DEFAULT_MAX_SEMANTIC_VERSION_CACHE_ITEMS, semantic_version_cache_expiration_horizon = JUMPSTART_DEFAULT_SEMANTIC_VERSION_CACHE_EXPIRATION_HORIZON, manifest_file_s3_key = JUMPSTART_DEFAULT_MANIFEST_FILE_S3_KEY, s3_bucket_name = NULL )
region
(str): AWS region to associate with cache. Default: region associated with boto3 session.
max_s3_cache_items
(int): Maximum number of items to store in s3 cache. Default: 20.
s3_cache_expiration_horizon
(datetime.timedelta): Maximum time to hold items in s3 cache before invalidation. Default: 6 hours.
max_semantic_version_cache_items
(int): Maximum number of items to store in semantic version cache. Default: 20.
semantic_version_cache_expiration_horizon
(datetime.timedelta): Maximum time to hold items in semantic version cache before invalidation. Default: 6 hours.
manifest_file_s3_key
(str): The key in S3 corresponding to the sdk metadata manifest.
s3_bucket_name
(Optional[str]): S3 bucket to associate with cache. Default: JumpStart-hosted content bucket for region.
set_region()
Set region for cache. Clears cache after new region is set.
JumpStartModelsCache$set_region(region)
region
AWS region to associate with cache.
get_region()
Return region for cache.
JumpStartModelsCache$get_region()
set_manifest_file_s3_key()
Set manifest file s3 key. Clears cache after new key is set.
JumpStartModelsCache$set_manifest_file_s3_key(key)
key
(str): The key in S3 corresponding to the sdk metadata manifest.
get_manifest_file_s3_key()
Return manifest file s3 key for cache.
JumpStartModelsCache$get_manifest_file_s3_key()
set_s3_bucket_name()
Set s3 bucket used for cache.
JumpStartModelsCache$set_s3_bucket_name()
s3_bucket_name
(str): S3 bucket to associate with cache.
get_bucket()
Return bucket used for cache.
JumpStartModelsCache$get_bucket()
get_manifest()
Return entire JumpStart models manifest.
JumpStartModelsCache$get_manifest()
get_header()
Return header for a given JumpStart model ID and semantic version.
JumpStartModelsCache$get_header()
model_id
(str): model ID for which to get a header.
semantic_version_str
(str): The semantic version for which to get a header.
get_specs()
Return specs for a given JumpStart model ID and semantic version.
JumpStartModelsCache$get_specs()
model_id
(str): model ID for which to get specs.
semantic_version_str
(str): The semantic version for which to get specs.
clear()
Clears the model ID/version and s3 cache.
JumpStartModelsCache$clear()
clone()
The objects of this class are cloneable with this method.
JumpStartModelsCache$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.