-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_ZsLR.sh
32 lines (30 loc) · 900 Bytes
/
run_ZsLR.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
#!/usr/bin/env bash
export RECLOR_DIR=reclor_data
export TASK_NAME=reclor
# export RECLOR_DIR=logiqa_data
# export TASK_NAME=logiqa
export MODEL_DIR=roberta-large
export SAVE_DIR=ZsLR_global_one_graph
CUDA_VISIBLE_DEVICES=2 python run_multiple_choice.py \
--task_name $TASK_NAME \
--model_name_or_path $MODEL_DIR \
--init_weights \
--do_train \
--do_eval \
--do_predict \
--data_dir $RECLOR_DIR \
--max_seq_length 256 \
--per_device_eval_batch_size 1 \
--per_device_train_batch_size 1 \
--gradient_accumulation_steps 4 \
--num_train_epochs 30 \
--output_dir checkpoints/$TASK_NAME/${SAVE_DIR} \
--logging_steps 200 \
--adam_epsilon 1e-6 \
--weight_decay 0.01 \
--overwrite_output_dir \
--load_best_model_at_end \
--metric_for_best_model eval_acc \
--fp16 \
# --overwrite_cache \
# --evaluation_strategy epoch\