OUTPUT_DIR='./deberta_mnli_16_s1'
num_gpus=4
NCCL_P2P_DISABLE=1 nohup python -m torch.distributed.launch --nproc_per_node=$num_gpus --master_port=12345 non-GPT-2/examples/pytorch/text-classification/run_glue.py \
    --save_total_limit 10 \
    --model_name_or_path microsoft/deberta-large \
    --task_name mnli \
    --output_dir ${OUTPUT_DIR} \
    --do_train \
    --do_eval \
    --learning_rate 1e-4 \
    --num_train_epochs 5 \
    --save_steps 1000 \
    --seed 1 \
    --per_device_train_batch_size 4 \
    --max_seq_length 256 \
    --per_device_eval_batch_size 4 \
    --overwrite_output_dir \
    --logging_steps 1000 \
    --overwrite_output_dir \
    --weight_decay 0 \
    --load_best_model_at_end True \
    --metric_for_best_model eval_accuracy \
    --evaluation_strategy steps \
    --apply_lora \
    --apply_sparse \
    --lora_r 16 \
    --lora_alpha 32 > 0926_deberta_mnli_rank16_s1.out &
