-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun.sh
26 lines (26 loc) · 909 Bytes
/
run.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
HUB_TOKEN=`cat $HOME/.huggingface/token`
# first login with following command to set API token:
# $ python -m wandb login
export WANDB_ENTITY='nipunsadvilkar'
export WANDB_PROJECT='roberta-base-mr'
python run_mlm_flax.py \
--output_dir="${MODEL_DIR}" \
--model_type="roberta" \
--config_name="${MODEL_DIR}" \
--tokenizer_name="${MODEL_DIR}" \
--train_file="/home/nipunsadvilkar/mr_data/mr_train_punctrm.csv" \
--validation_split_percentage=10 \
--max_seq_length="128" \
--weight_decay="0.01" \
--per_device_train_batch_size="128" \
--per_device_eval_batch_size="128" \
--learning_rate="3e-4" \
--warmup_steps="1000" \
--overwrite_output_dir \
--num_train_epochs="18" \
--adam_beta1="0.9" \
--adam_beta2="0.98" \
--logging_steps="500" \
--save_steps="2500" \
--eval_steps="2500" \
--preprocessing_num_workers=80 2>&1 | tee run.log