OUTPUT_DIR='./stsb_deberta'
num_gpus=4
CUDA_VISIBLE_DEVICES=4,5,6,7 python -m torch.distributed.launch --nproc_per_node=$num_gpus --master_port=12345 non-GPT-2/examples/pytorch/text-classification/run_glue.py \
    --model_name_or_path microsoft/deberta-large \
    --save_total_limit 20 \
    --task_name stsb \
    --output_dir ${OUTPUT_DIR} \
    --do_train \
    --do_eval \
    --num_train_epochs 6 \
    --save_steps 100 \
    --seed 1 \
    --per_device_train_batch_size 4 \
    --max_seq_length 256 \
    --per_device_eval_batch_size 4 \
    --overwrite_output_dir \
    --logging_steps 100 \
    --load_best_model_at_end True \
    --metric_for_best_model eval_pearson \
    --evaluation_strategy steps > 0922_stsb_dense.out &
