-
Notifications
You must be signed in to change notification settings - Fork 0
/
spotty_template.yaml
45 lines (35 loc) · 956 Bytes
/
spotty_template.yaml
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
42
43
44
45
# Documentation covering installation, user instructions and configuration template
# can be found here: https://spotty.cloud/docs/user-guide/getting-started.html
project:
name: tfg-code
syncFilters:
- exclude:
- .venv/*
- .git/*
- .idea/*
- '*/__pycache__/*'
containers:
- projectDir: /workspace/project
image: tensorflow/tensorflow:latest-gpu
env:
PYTHONPATH: /workspace/project
LOGTAIL_TOKEN: '' # Add here your logtail token
volumeMounts:
- name: workspace
mountPath: /workspace
instances:
- name: aws-execution-1
provider: aws
parameters:
region: eu-west-3
instanceType: g4dn.xlarge
spotInstance: True
volumes:
- name: workspace
parameters:
size: 50
deletionPolicy: CreateSnapshot
scripts:
main: |
pip install -r requirements.txt
python scripts/deep_cross_entropy_method.py