Riad commited on
Commit
b667776
1 Parent(s): d078094
.gitignore ADDED
@@ -0,0 +1 @@
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - glue
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ model-index:
11
+ - name: finetuned-bert-mrpc
12
+ results:
13
+ - task:
14
+ name: Text Classification
15
+ type: text-classification
16
+ dataset:
17
+ name: glue
18
+ type: glue
19
+ args: mrpc
20
+ metrics:
21
+ - name: Accuracy
22
+ type: accuracy
23
+ value: 0.8676470588235294
24
+ - name: F1
25
+ type: f1
26
+ value: 0.9084745762711864
27
+ ---
28
+
29
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
+ should probably proofread and complete it, then remove this comment. -->
31
+
32
+ # finetuned-bert-mrpc
33
+
34
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the glue dataset.
35
+ It achieves the following results on the evaluation set:
36
+ - Loss: 0.4382
37
+ - Accuracy: 0.8676
38
+ - F1: 0.9085
39
+
40
+ ## Model description
41
+
42
+ More information needed
43
+
44
+ ## Intended uses & limitations
45
+
46
+ More information needed
47
+
48
+ ## Training and evaluation data
49
+
50
+ More information needed
51
+
52
+ ## Training procedure
53
+
54
+ ### Training hyperparameters
55
+
56
+ The following hyperparameters were used during training:
57
+ - learning_rate: 2e-05
58
+ - train_batch_size: 16
59
+ - eval_batch_size: 16
60
+ - seed: 42
61
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
+ - lr_scheduler_type: linear
63
+ - num_epochs: 3.0
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
68
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
69
+ | 0.5454 | 1.0 | 230 | 0.4396 | 0.8309 | 0.8871 |
70
+ | 0.3387 | 2.0 | 460 | 0.3783 | 0.8529 | 0.8976 |
71
+ | 0.1956 | 3.0 | 690 | 0.4382 | 0.8676 | 0.9085 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - Transformers 4.10.0
77
+ - Pytorch 1.9.0+cu102
78
+ - Datasets 1.11.0
79
+ - Tokenizers 0.10.3
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-cased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "problem_type": "single_label_classification",
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.10.0",
24
+ "type_vocab_size": 2,
25
+ "use_cache": true,
26
+ "vocab_size": 28996
27
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:939c66a1af515c44c9107eb4aa73666619c5f2b497c48684eefe66e1dbbcad2a
3
+ size 433331373
runs/Sep10_11-34-36_27fb359638d9/1631273962.6230474/events.out.tfevents.1631273962.27fb359638d9.78.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2fceebec16ca3ba1db97c02727dbef7ea1b156c38a6829615b94027b3249c0c
3
+ size 4340
runs/Sep10_11-34-36_27fb359638d9/events.out.tfevents.1631273962.27fb359638d9.78.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c126fd32f6783d647bc97d94c0e4ce837298c3e2a9ce80b8186fdd536c33ba64
3
+ size 5031
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
1
+ {"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "bert-base-cased", "tokenizer_class": "BertTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8acba4de2efca10915f86fca053d07d51bea5419b3626980738a03c276237ab6
3
+ size 2799
vocab.txt ADDED
The diff for this file is too large to render. See raw diff