Created
December 24, 2022 07:54
-
-
Save kobrinartem/76be90504e6b7396d0cad57027969b7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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