forked from s204431/mlops-CAPTCHA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvertex_ai_train.yaml
More file actions
41 lines (39 loc) · 918 Bytes
/
vertex_ai_train.yaml
File metadata and controls
41 lines (39 loc) · 918 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
steps:
- name: "alpine"
id: "Replace values in the training config"
entrypoint: "sh"
args:
- '-c'
- |
apk add --no-cache gettext
envsubst < config.yaml > config.yaml.tmp
mv config.yaml.tmp config.yaml
secretEnv: ['WANDB_API_KEY']
- name: 'alpine'
id: "Show config"
waitFor: ['Replace values in the training config']
entrypoint: "sh"
args:
- '-c'
- |
cat config.yaml
- name: 'gcr.io/cloud-builders/gcloud'
id: 'Train on vertex AI'
waitFor: ['Replace values in the training config']
args: [
'ai',
'custom-jobs',
'create',
'--region',
'europe-west1',
'--display-name',
'mlops-captcha',
'--config',
'${_VERTEX_TRAIN_CONFIG}',
]
substitutions:
_VERTEX_TRAIN_CONFIG: 'config.yaml'
availableSecrets:
secretManager:
- versionName: projects/mlops-captcha/secrets/WANDB_API_KEY/versions/latest
env: 'WANDB_API_KEY'