Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

buildspec.yml 1.2 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  1. version: 0.2
  2. phases:
  3. install:
  4. runtime-versions:
  5. python: 3.8
  6. commands:
  7. # Upgrade AWS CLI to the latest version
  8. - pip install --upgrade --force-reinstall "botocore>1.21.30" "boto3>1.18.30" "awscli>1.20.30" "mlflow" "sagemaker" "tensorflow"
  9. pre_build:
  10. commands:
  11. - TRACKING_URI="https://dagshub.com/Nikitha-Narendra/Sagemaker-Deployment.mlflow"
  12. - MODEL_NAME="kvasir-segmentation"
  13. - MODEL_VERSION="5"
  14. - INSTANCE_TYPE="ml.m5.xlarge"
  15. - CONTAINER_URI="456428195471.dkr.ecr.us-east-2.amazonaws.com/mlflow-pyfunc:2.5.0"
  16. - INITIAL_INSTANCE_COUNT="1"
  17. build:
  18. commands:
  19. # Export the staging and production configuration files
  20. - python build.py --model-execution-role ${MODEL_EXECUTION_ROLE_ARN} --sagemaker-project-id ${SAGEMAKER_PROJECT_ID} --sagemaker-project-name ${SAGEMAKER_PROJECT_NAME} --s3-bucket ${ARTIFACT_BUCKET} --tracking-uri ${TRACKING_URI} --model-name ${MODEL_NAME} --model-version ${MODEL_VERSION} --container-image-uri ${CONTAINER_URI} --initial-instance-count ${INITIAL_INSTANCE_COUNT} --instance-type ${INSTANCE_TYPE} --mlflow-username ${MLFLOW_TRACKING_USERNAME} --mlflow-token ${MLFLOW_TRACKING_PASSWORD}
  21. - echo "Deployment complete"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...