22
22
fi
23
23
24
24
TIMEOUT=600
25
- LONGTIMEOUT=600
25
+ LONGTIMEOUT=3600
26
26
27
27
runcmd () {
28
28
LFILE=log/$2 $GPUSUF /$4 .log
@@ -32,6 +32,8 @@ runcmd() {
32
32
mycmd=" $1 /$2 $GPUSUF $DYFLAGS "
33
33
if [[ $4 =~ dynet-cpp-bs01-ws128-hs256-.* ]] || [[ $4 =~ dynet-cpp-bs16-ws128-hs256-.* ]] || [[ $2 =~ bilstm.* ]] || [[ $2 =~ treenn ]]; then
34
34
MYTIMEOUT=$LONGTIMEOUT
35
+ else
36
+ return
35
37
fi
36
38
elif [[ $1 == " dynet-py" ]]; then
37
39
mycmd=" $PYTHON -u $1 /$2 .py $DYFLAGS "
@@ -48,11 +50,38 @@ runcmd() {
48
50
49
51
for trial in 1 2 3; do
50
52
53
+ # Run rnnlm-batch
54
+ for embsize in 128; do
55
+ hidsize=$(( $embsize * 2 ))
56
+ # for mbsize in 64 32 16 08 04 02 01; do
57
+ for mbsize in 64 16 04 01; do
58
+ # for f in dynet-cpp dynet-py chainer theano tensorflow; do
59
+ for f in dynet-cpp dynet-py; do
60
+ runcmd $f rnnlm-batch " $mbsize $embsize $hidsize 0" $f -ms$mbsize -es$embsize -hs$hidsize -sp0-t$trial
61
+ if [[ $f == " dynet-cpp" ]]; then
62
+ runcmd $f rnnlm-seq " $mbsize $embsize $hidsize 0" $f -ms$mbsize -es$embsize -hs$hidsize -sp0-t$trial
63
+ fi
64
+ done
65
+ done
66
+ done
67
+
68
+ # run sparse rnnlm-seq on a subset
69
+ for embsize in 128; do
70
+ hidsize=$(( $embsize * 2 ))
71
+ for mbsize in 16 01; do
72
+ # for f in dynet-cpp dynet-py; do
73
+ for f in dynet-cpp; do
74
+ runcmd $f rnnlm-seq " $mbsize $embsize $hidsize 1" $f -ms$mbsize -es$embsize -hs$hidsize -sp0-t$trial
75
+ done
76
+ done
77
+ done
78
+
51
79
# Run bilstm-tagger
52
80
wembsize=128
53
81
hidsize=50
54
82
mlpsize=32
55
- for f in dynet-cpp dynet-py theano chainer tensorflow; do
83
+ # for f in dynet-cpp dynet-py chainer theano tensorflow; do
84
+ for f in dynet-cpp dynet-py; do
56
85
runcmd $f bilstm-tagger " $wembsize $hidsize $mlpsize 0" $f -ws$wembsize -hs$hidsize -mlps$mlpsize -su0-t$trial
57
86
if [[ $f == dynet* ]]; then
58
87
runcmd $f bilstm-tagger " $wembsize $hidsize $mlpsize 1" $f -ws$wembsize -hs$hidsize -mlps$mlpsize -su1-t$trial
@@ -64,7 +93,8 @@ for trial in 1 2 3; do
64
93
wembsize=128
65
94
hidsize=50
66
95
mlpsize=32
67
- for f in dynet-cpp dynet-py theano chainer; do
96
+ # for f in dynet-cpp dynet-py theano chainer; do
97
+ for f in dynet-cpp dynet-py; do
68
98
runcmd $f bilstm-tagger-withchar " $cembsize $wembsize $hidsize $mlpsize 0" $f -cs$cembsize -ws$wembsize -hs$hidsize -mlps$mlpsize -su0-t$trial
69
99
if [[ $f == dynet* ]]; then
70
100
runcmd $f bilstm-tagger-withchar " $cembsize $wembsize $hidsize $mlpsize 1" $f -cs$cembsize -ws$wembsize -hs$hidsize -mlps$mlpsize -su1-t$trial
@@ -74,32 +104,12 @@ for trial in 1 2 3; do
74
104
# Run treenn
75
105
wembsize=128
76
106
hidsize=128
77
- for f in dynet-cpp dynet-py chainer; do
107
+ # for f in dynet-cpp dynet-py chainer; do
108
+ for f in dynet-cpp dynet-py; do
78
109
runcmd $f treenn " $wembsize $hidsize 0" $f -ws$wembsize -hs$hidsize -su0-t$trial
79
110
if [[ $f == dynet* ]]; then
80
111
runcmd $f treenn " $wembsize $hidsize 1" $f -ws$wembsize -hs$hidsize -su1-t$trial
81
112
fi
82
113
done
83
114
84
- # Run rnnlm-batch
85
- for embsize in 64 128 256; do
86
- hidsize=$(( $embsize * 2 ))
87
- # for mbsize in 64 32 16 08 04 02 01; do
88
- for mbsize in 64 16 04 01; do
89
- for f in dynet-cpp dynet-py theano chainer tensorflow; do
90
- runcmd $f rnnlm-batch " $mbsize $embsize $hidsize 0" $f -ms$mbsize -es$embsize -hs$hidsize -sp0-t$trial
91
- done
92
- done
93
- done
94
-
95
- # run sparse rnnlm-batch on a subset
96
- for embsize in 128; do
97
- hidsize=$(( $embsize * 2 ))
98
- for mbsize in 16 01; do
99
- for f in dynet-cpp dynet-py; do
100
- runcmd $f rnnlm-batch " $mbsize $embsize $hidsize 1" $f -ms$mbsize -es$embsize -hs$hidsize -sp0-t$trial
101
- done
102
- done
103
- done
104
-
105
115
done
0 commit comments