forked from huawei-noah/HEBO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MLproject
36 lines (34 loc) · 1.11 KB
/
MLproject
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
name: HDBO
conda_env: hdbo.yml
entry_points:
main:
parameters:
param_file: {type: path, default: config/default.yml}
command: "LOGGING_TYPE=local CUDA_VISIBLE_DEVICES=-1 nice -1 python hdbo/main.py {param_file}"
start:
parameters:
param_file: {type: path}
command: "LOGGING_TYPE=server CUDA_VISIBLE_DEVICES=-1 python hdbo/main.py {param_file} /dev/shm"
stop:
parameters:
exe_hash: {type: str}
command: "kill `cat /tmp/mlflow-pid/{exe_hash}.pid`"
stop_all:
command: "for p in /tmp/mlflow-pid/*.pid; do kill `cat $p`; done"
status:
command: "ls /tmp/mlflow-pid"
test:
command: "mlflow run test"
doc:
command: "mlflow run doc"
generate:
command: "python hdbo/generation_script.py"
profile:
parameters:
param_file: {type: path, default: config/default.yml}
profile_file: {type: string, default: program.profile}
command: "LOGGING_TYPE=local python -m cProfile -o {profile_file} hdbo/main.py {param_file}"
view-profile:
parameters:
profile_file: {type: string, default: program.profile}
command: "snakeviz {profile_file}"