Chua, Vui Seng commited on
Commit
8e0524e
1 Parent(s): 6484a29

Add readme

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This model is developed with transformers v4.10.3.
2
+
3
+ # Train
4
+ ```bash
5
+ #!/usr/bin/env bash
6
+
7
+ export CUDA_VISIBLE_DEVICES=0
8
+
9
+ OUTDIR=bert-based-uncased-mnli
10
+ WORKDIR=transformers/examples/pytorch/text-classification
11
+ cd $WORKDIR
12
+
13
+ nohup python run_glue.py \
14
+ --model_name_or_path bert-base-uncased \
15
+ --task_name mnli \
16
+ --do_eval \
17
+ --do_train \
18
+ --per_device_train_batch_size 16 \
19
+ --per_device_eval_batch_size 16 \
20
+ --max_seq_length 128 \
21
+ --num_train_epochs 3 \
22
+ --overwrite_output_dir \
23
+ --output_dir $OUTDIR 2>&1 | tee $OUTDIR/run.log &
24
+ ```
25
+
26
+ # Eval
27
+ ```bash
28
+ export CUDA_VISIBLE_DEVICES=0
29
+
30
+ OUTDIR=eval-bert-based-uncased-mnli
31
+ WORKDIR=transformers/examples/pytorch/text-classification
32
+ cd $WORKDIR
33
+
34
+ nohup python run_glue.py \
35
+ --model_name_or_path vuiseng9/bert-base-uncased-mnli \
36
+ --task_name mnli \
37
+ --do_eval \
38
+ --per_device_eval_batch_size 16 \
39
+ --max_seq_length 128 \
40
+ --overwrite_output_dir \
41
+ --output_dir $OUTDIR 2>&1 | tee $OUTDIR/run.log &
42
+ ```