-
Notifications
You must be signed in to change notification settings - Fork 5
/
run_dagn.sh
42 lines (41 loc) · 1.14 KB
/
run_dagn.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
40
41
42
#!/usr/bin/env bash
export RECLOR_DIR=reclor_data
export TASK_NAME=reclor
export MODEL_DIR=roberta-large
export MODEL_TYPE=DAGN
export GRAPH_VERSION=4
export DATA_PROCESSING_VERSION=32
export MODEL_VERSION=2132
export GNN_VERSION=GCN
export SAVE_DIR=dagn
CUDA_VISIBLE_DEVICES=0 python3 run_multiple_choice.py \
--disable_tqdm \
--task_name $TASK_NAME \
--model_type $MODEL_TYPE \
--model_name_or_path $MODEL_DIR \
--init_weights \
--do_train \
--do_eval \
--do_predict \
--data_dir $RECLOR_DIR \
--graph_building_block_version $GRAPH_VERSION \
--data_processing_version $DATA_PROCESSING_VERSION \
--model_version $MODEL_VERSION \
--merge_type 4 \
--gnn_version $GNN_VERSION \
--use_gcn \
--gcn_steps 2 \
--max_seq_length 256 \
--per_device_eval_batch_size 4 \
--per_device_train_batch_size 4 \
--gradient_accumulation_steps 4 \
--roberta_lr 5e-6 \
--gcn_lr 5e-6 \
--proj_lr 5e-6 \
--num_train_epochs 10 \
--output_dir Checkpoints/$TASK_NAME/${SAVE_DIR} \
--fp16 \
--logging_steps 200 \
--save_steps 200 \
--adam_epsilon 1e-6 \
--weight_decay 0.01