-
Notifications
You must be signed in to change notification settings - Fork 0
/
tuneIt.sh
39 lines (30 loc) · 1.09 KB
/
tuneIt.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
27
28
29
30
31
32
33
34
35
36
37
38
39
#----------------------------------------------------------
MODEL=$1 #'mobilenetv2'
INPUT='ImageNet'
ID=$2 # '_tuning'
FOLDER=$3 #'tuning'/'baseline'
ws='/home/aming/MICRO/mobilenetv2/imagenet_pytorch_training'
rs='/home/aming/MICRO/mobilenetv2/imagenet_pytorch_training'
#----------------------------------------------------------
BENCH=${INPUT}_${MODEL} #'ImageNet_mobileNetv2'
mkdir -p $FOLDER
mkdir -p $FOLDER/tmps
mkdir -p $FOLDER/tmps/$BENCH
mkdir -p $FOLDER/logs/$BENCH
# find the best performing in past
FILTER='' #'_2000000'
bash helpers/tuning_best.sh $BENCH $FOLDER $FILTER
now=$(echo $(date) | sed 's/ /_/g' | sed 's/:/_/g')
python tuning.py $MODEL $ID > tuning.log # outputs to tuning.runs
# just for profiling
cp tuning.log $FOLDER/logs/$BENCH/tuning_${now}.log
cp tuning.runs $FOLDER/logs/$BENCH/tuning_${now}.runs
GPUs=1
#Submit jobs randomly
shuf tuning.runs > tuning.runs.shuf
while IFS= read -r CONFIG
do
echo "submitting $CONFIG $BENCH $FOLDER"
bash submit_tune.sh $CONFIG $BENCH $FOLDER $GPUs
done < tuning.runs.shuf
#----------------------------------------------------------