Views
No views yet
1#!/usr/bin/env bash
2
3export CUDA_VISIBLE_DEVICES=0
4
5OUTDIR=bert-based-uncased-mnli
6WORKDIR=transformers/examples/pytorch/text-classification
7cd $WORKDIR
8
9nohup python run_glue.py \
10 --model_name_or_path bert-base-uncased \
11 --task_name mnli \
12 --do_eval \
13 --do_train \
14 --per_device_train_batch_size 16 \
15 --per_device_eval_batch_size 16 \
16 --max_seq_length 128 \
17 --num_train_epochs 3 \
18 --overwrite_output_dir \
19 --output_dir $OUTDIR 2>&1 | tee $OUTDIR/run.log &1export CUDA_VISIBLE_DEVICES=0
2
3OUTDIR=eval-bert-based-uncased-mnli
4WORKDIR=transformers/examples/pytorch/text-classification
5cd $WORKDIR
6
7nohup python run_glue.py \
8 --model_name_or_path vuiseng9/bert-base-uncased-mnli \
9 --task_name mnli \
10 --do_eval \
11 --per_device_eval_batch_size 16 \
12 --max_seq_length 128 \
13 --overwrite_output_dir \
14 --output_dir $OUTDIR 2>&1 | tee $OUTDIR/run.log &