Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions supervised/dvc.aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ vars:
- models:
- name: pls
aws_prefix: pls
dockerfile: ../models/pls
dockerfile: ../models/pls/Dockerfile

stages:

Expand All @@ -33,7 +33,7 @@ stages:
cmd:
- aws ecr describe-repositories --repository-names ${item.model.name} --region ${aws.region_name} >/dev/null 2>&1 || aws ecr create-repository --repository-name ${item.model.name} --region ${aws.region_name} >/dev/null
- aws ecr get-login-password --region ${aws.region_name} | docker login --username AWS --password-stdin ${aws.account_id}.dkr.ecr.${aws.region_name}.amazonaws.com
- docker buildx build --build-arg GIT_CACHE_BUST=${git.git_cache_bust} --platform linux/amd64,linux/arm64 --secret id=git_auth,src=git-auth.txt -t ${aws.account_id}.dkr.ecr.${aws.region_name}.amazonaws.com/${item.model.name}:latest ${item.model.dockerfile} --push
- docker buildx build --build-arg GIT_CACHE_BUST=${git.git_cache_bust} --platform linux/amd64,linux/arm64 --secret id=git_auth,src=git-auth.txt -f ${item.model.dockerfile} -t ${aws.account_id}.dkr.ecr.${aws.region_name}.amazonaws.com/${item.model.name}:latest .. --push
- echo "ECR push completed at $(date)" > logs/ecr_push_complete.txt
- echo "${aws.account_id}.dkr.ecr.${aws.region_name}.amazonaws.com/${item.model.name}:latest" > logs/image_uri.txt
deps:
Expand Down Expand Up @@ -64,7 +64,7 @@ stages:
> logs/create_job_${item.dataset.name}_${item.model.name}.txt

deps:
- ../src/pg2_benchmark/cli/aws.py
- ../src/pg2_benchmark/cli/sagemaker.py
- logs/s3_upload_complete.txt
- logs/ecr_push_complete.txt
- logs/image_uri.txt
Expand All @@ -85,7 +85,7 @@ stages:
> logs/monitor_job_${item.dataset.name}_${item.model.name}.txt

deps:
- ../src/pg2_benchmark/cli/aws.py
- ../src/pg2_benchmark/cli/sagemaker.py
- logs/create_job_${item.dataset.name}_${item.model.name}.txt

outs:
Expand All @@ -107,4 +107,4 @@ stages:
- logs/monitor_job_${item.dataset.name}_${item.model.name}.txt
outs:
- ${destination.aws.metric_dir}/${item.dataset.name}_${item.model.name}.csv:
cache: true
cache: true
10 changes: 5 additions & 5 deletions zero_shot/dvc.aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ vars:
- models:
- name: esm
aws_prefix: esm
dockerfile: ../models/esm
dockerfile: ../models/esm/Dockerfile

stages:
upload_to_s3:
Expand All @@ -29,7 +29,7 @@ stages:
cmd:
- aws ecr describe-repositories --repository-names ${item.model.name} --region ${aws.region_name} >/dev/null 2>&1 || aws ecr create-repository --repository-name ${item.model.name} --region ${aws.region_name} >/dev/null
- aws ecr get-login-password --region ${aws.region_name} | docker login --username AWS --password-stdin ${aws.account_id}.dkr.ecr.${aws.region_name}.amazonaws.com
- docker buildx build --build-arg GIT_CACHE_BUST=${git.git_cache_bust} --platform linux/amd64,linux/arm64 --secret id=git_auth,src=git-auth.txt -t ${aws.account_id}.dkr.ecr.${aws.region_name}.amazonaws.com/${item.model.name}:latest ${item.model.dockerfile} --push
- docker buildx build --build-arg GIT_CACHE_BUST=${git.git_cache_bust} --platform linux/amd64,linux/arm64 --secret id=git_auth,src=git-auth.txt -f ${item.model.dockerfile} -t ${aws.account_id}.dkr.ecr.${aws.region_name}.amazonaws.com/${item.model.name}:latest .. --push
- echo "ECR push completed at $(date)" > logs/ecr_push_complete.txt
- echo "${aws.account_id}.dkr.ecr.${aws.region_name}.amazonaws.com/${item.model.name}:latest" > logs/image_uri.txt
deps:
Expand Down Expand Up @@ -60,7 +60,7 @@ stages:
> logs/create_job_${item.dataset.name}_${item.model.name}.txt

deps:
- ../src/pg2_benchmark/cli/aws.py
- ../src/pg2_benchmark/cli/sagemaker.py
- logs/s3_upload_complete.txt
- logs/ecr_push_complete.txt
- logs/image_uri.txt
Expand All @@ -81,7 +81,7 @@ stages:
> logs/monitor_job_${item.dataset.name}_${item.model.name}.txt

deps:
- ../src/pg2_benchmark/cli/aws.py
- ../src/pg2_benchmark/cli/sagemaker.py
- logs/create_job_${item.dataset.name}_${item.model.name}.txt

outs:
Expand All @@ -103,4 +103,4 @@ stages:
- logs/monitor_job_${item.dataset.name}_${item.model.name}.txt
outs:
- ${destination.aws.metric_dir}/${item.dataset.name}_${item.model.name}.csv:
cache: true
cache: true