Skip to content

Instantly share code, notes, and snippets.

@gleeb
Created August 8, 2022 11:52
Show Gist options
  • Save gleeb/e4d83452059fa1255abfbb970456343c to your computer and use it in GitHub Desktop.
Save gleeb/e4d83452059fa1255abfbb970456343c to your computer and use it in GitHub Desktop.
sagemaker reate endpoint config
import boto3
sm_client = boto3.client('sagemaker', region_name='us-east-1')
endpoint_config_name = 'titanic-survival-endpoint-config'
print(endpoint_config_name)
create_endpoint_config_response = sm_client.create_endpoint_config(
EndpointConfigName = endpoint_config_name,
ProductionVariants=[{
'InstanceType':'ml.m4.xlarge',
'InitialVariantWeight':1,
'InitialInstanceCount':1,
'ModelName':'titanic-survival-v1',
'VariantName':'AllTraffic'}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment