-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathall_explore.sh
29 lines (23 loc) · 936 Bytes
/
all_explore.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
GPU=$1
TARGET_DATASET=$2
WEIGHT_INIT_SAMPLES=1000
SEEDS=( 42 100 222 3456 5876 )
MODELS=( "google/t5-xl-lm-adapt" "bigscience/T0_3B" "google/t5-base-lm-adapt")
AUX_DATASETS=( "T0Mixture" "P3" )
for SEED in ${SEEDS[@]}; do
for AUX_DATASET in ${AUX_DATASETS[@]}; do
for MODEL in ${MODELS[@]}; do
OUTPUT_DIR="outputs/train_logs/explore_only/$SEED/$MODEL/${AUX_DATASET}/${TARGET_DATASET}"
mkdir -p $OUTPUT_DIR
echo $(date)
echo "Running $SEED $MODEL $AUX_DATASET $TARGET_DATASET explore_only"
echo "Saving log to ${OUTPUT_DIR}"
CUDA_VISIBLE_DEVICES=$GPU python src/multirun_train_mixed.py \
--seed $SEED \
--target_dataset $TARGET_DATASET \
--aux_dataset $AUX_DATASET \
--model $MODEL \
> $OUTPUT_DIR/log.log 2> $OUTPUT_DIR/err.log
done
done
done