-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrain.sh
executable file
·27 lines (20 loc) · 886 Bytes
/
train.sh
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
#!/usr/bin/env bash
# esetstore MPI setting
PY="python"
MPIPATH="/usr"
hosts="-np 8 -H host1:4,host2:4"
# train the large super net
$MPIPATH/bin/mpirun --oversubscribe --prefix $MPIPATH $hosts -bind-to none -map-by slot \
$PY train_ofa_stereo.py --task large
# shrink the kernel size
$MPIPATH/bin/mpirun --oversubscribe --prefix $MPIPATH $hosts -bind-to none -map-by slot \
$PY train_ofa_stereo.py --task kernel
# shrink the network depth
$MPIPATH/bin/mpirun --oversubscribe --prefix $MPIPATH $hosts -bind-to none -map-by slot \
$PY train_ofa_stereo.py --task depth
# shrink the network width
$MPIPATH/bin/mpirun --oversubscribe --prefix $MPIPATH $hosts -bind-to none -map-by slot \
$PY train_ofa_stereo.py --task width
# shrink the network scale
$MPIPATH/bin/mpirun --oversubscribe --prefix $MPIPATH $hosts -bind-to none -map-by slot \
$PY train_ofa_stereo.py --task scale