-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
67 lines (45 loc) · 1.22 KB
/
Makefile
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
setup:
python -m pip install -r requirements.txt --user
python -c 'import nltk; nltk.download("punkt")'
cd data_in && ./download_data.sh
clean:
yapf -ir cil/ glove/ fasttext/
train:
python -m cil.train
check:
flake8 cil/ glove/ fasttext/
job:
bsub -W 24:00 -n 4 -R "rusage[mem=3000, ngpus_excl_p=1]" ./train.sh
status:
watch -n 1 bbjobs
output:
bpeek -f
# Experiments
lstm128:
cp cil/experiments/lstm128.py cil/flags.py
lstm128_ce:
cp cil/experiments/lstm128_ce.py cil/flags.py
lstm128_we:
cp cil/experiments/lstm128_we.py cil/flags.py
gru256:
cp cil/experiments/gru256.py cil/flags.py
stacklstm:
cp cil/experiments/stacklstm.py cil/flags.py
transformer-train-serve:
cd transformer && ./train_and_serve.sh
transformer-predict:
cd transformer && ./predict.sh
glove-setup:
cd glove && ./setup.sh
glove-run:
cd glove && ./run.sh
glove-job:
bsub -W 24:00 -n 4 -R "rusage[mem=13000, ngpus_excl_p=1]" ./train_glove_job.sh
cnn512:
cp cil/experiments/cnn512.py cil/flags.py
fasttext:
./train_fasttext.sh
# End experiments
%:
@:
.PHONY: setup clean train check job status output lstm128 lstm128_ce lstm128_we gru256 stacklstm transformer-train-serve transformer-predict glove-setup glove-run glove-job cnn512 fasttext