Skip to content

Instantly share code, notes, and snippets.

@kobrinartem
Created December 24, 2022 07:54
Show Gist options
  • Save kobrinartem/76be90504e6b7396d0cad57027969b7c to your computer and use it in GitHub Desktop.
Save kobrinartem/76be90504e6b7396d0cad57027969b7c to your computer and use it in GitHub Desktop.
client.create_model(
ModelName=“Your model name”,
PrimaryContainer={
“Image”: <AWS_DEEP_LEARNING_CONTAINER_URI>,
“ModelDataUrl”: <MODEL_S3_LOCATION>,
“Environment”: {
“SAGEMAKER_PROGRAM”: “inference.py”,
“SAGEMAKER_SUBMIT_DIRECTORY”: “<INFERENCE_SCRIPT_S3_LOCATION>”,
“SAGEMAKER_CONTAINER_LOG_LEVEL”: “20”,
“SAGEMAKER_REGION”: <REGION>,
“TF_ENABLE_ONEDNN_OPTS”: “1”,
“DNNL_DEFAULT_FPMATH_MODE”: “BF16”
}
},
ExecutionRoleArn=‘ARN for AmazonSageMaker-ExecutionRole’
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment