-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.sh
executable file
·14 lines (13 loc) · 933 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export TPU_NAME=v3-256-4tb
export INFER_NAME=v3-8-4tb
export DATA_DIR=gs://bert-pretrain-data/imagenet/imagenet-2012-tfrecord
export MODEL_DIR=gs://bert-pretrain-data/imagenet/$INFER_NAME
for warmup in 782 #warmup for 20 epochs
do
for lr in 0.04
do
gsutil rm -R -f $MODEL_DIR/*
python resnet_main.py --tpu=$TPU_NAME --data_dir=$DATA_DIR --model_dir=$MODEL_DIR --num_cores=256 --iterations_per_loop=200 --train_batch_size=32768 --steps_per_eval=100000 --mode=train --learning_rate=$lr --train_steps=3519 --weight_decay=0.0 --num_warmup_steps=$warmup --weight_decay_input=1.5 --label_smoothing=0.1
python resnet_main.py --tpu=$INFER_NAME --data_dir=$DATA_DIR --model_dir=$MODEL_DIR --num_cores=8 --iterations_per_loop=200 --train_batch_size=32768 --steps_per_eval=100000 --mode=eval --learning_rate=$lr --train_steps=3519 --weight_decay=0.0 --num_warmup_steps=$warmup --weight_decay_input=1.5 --label_smoothing=0.1
done
done