Views
No views yet
1#!/usr/bin/bash
2
3python ../run_glue.py \\n --model_name_or_path bert-base-cased \\n --task_name wnli \\n --do_train \\n --do_eval \\n --max_seq_length 512 \\n --per_device_train_batch_size 16 \\n --learning_rate 2e-5 \\n --num_train_epochs 5 \\n --output_dir bert-base-cased-finetuned-wnli \\n --push_to_hub \\n --hub_strategy all_checkpoints \\n --logging_strategy epoch \\n --save_strategy epoch \\n --evaluation_strategy epoch \\n```
4
5### Training hyperparameters
6
7The following hyperparameters were used during training:
8- learning_rate: 2e-05
9- train_batch_size: 16
10- eval_batch_size: 8
11- seed: 42
12- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
13- lr_scheduler_type: linear
14- num_epochs: 5.0
15
16### Training results
17
18| Training Loss | Epoch | Step | Validation Loss | Accuracy |
19|:-------------:|:-----:|:----:|:---------------:|:--------:|
20| 0.7299 | 1.0 | 40 | 0.6923 | 0.5634 |
21| 0.6982 | 2.0 | 80 | 0.7027 | 0.3803 |
22| 0.6972 | 3.0 | 120 | 0.7005 | 0.4507 |
23| 0.6992 | 4.0 | 160 | 0.6977 | 0.5352 |
24| 0.699 | 5.0 | 200 | 0.6996 | 0.4648 |
25
26
27### Framework versions
28
29- Transformers 4.11.0.dev0
30- Pytorch 1.9.0
31- Datasets 1.12.1
32- Tokenizers 0.10.3