-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdvc.yaml
48 lines (48 loc) · 1.66 KB
/
dvc.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
46
47
48
# dvc parameters listed under `vars` will not be tracked
# which is used to list settings that do not affect the
# training or evaluation of the model, e.g. which logger
# has been used.
vars:
- logger: mlflow
stages:
check_for_venv_path:
cmd: machines/check_for_venv_path.sh
mllam_version:
cmd: '$MLLAM_VENV_PATH/bin/python -c "from neural_lam import __version__; print(__version__)" > version.mllam.txt'
prepare_dataset:
cmd: export DVC_WORKING_DIR=$(pwd); sbatch -W --chdir ~/logs machines/slurm.mllam-data-prep.sh data/datastore.yaml --output data/datastore.zarr
deps:
- data/datastore.yaml
outs:
- data/datastore.zarr
create_graph:
cmd: '$MLLAM_VENV_PATH/bin/python -m neural_lam.create_graph --config_path data/config.yaml ${graph-defaults}'
params:
- data/config.yaml:
- datastore
deps:
- data/datastore.zarr
outs:
- data/graph/
train:
cmd:
- export DVC_WORKING_DIR=$(pwd); sbatch -W ${slurm-defaults} --chdir ~/logs machines/slurm.neural-lam.sh --config_path ./data/config.yaml --logger ${logger} --logger-project ${logger-project} ${baseline-defaults}
deps:
- version.mllam.txt
- data/graph/
- data/config.yaml
- data/datastore.yaml
outs:
- saved_models
evaluate:
cmd:
- export DVC_WORKING_DIR=$(pwd); sbatch -W ${slurm-eval} --chdir ~/logs machines/slurm.neural-lam.sh --config_path ./data/config.yaml --eval val --load
./saved_models/*/last.ckpt --logger ${logger} --logger-project ${logger-project} ${baseline-eval}
deps:
- version.mllam.txt
- data/graph/
- data/config.yaml
- data/datastore.yaml
- saved_models
outs:
- mlruns