Commit
·
1342bc1
1
Parent(s):
cb1fc63
add model
Browse files- .gitignore +1 -0
- README.md +76 -0
- config.json +25 -0
- pytorch_model.bin +3 -0
- runs/Jul30_05-25-19_27a653daf5cc/1627622728.1097205/events.out.tfevents.1627622728.27a653daf5cc.77.1 +3 -0
- runs/Jul30_05-25-19_27a653daf5cc/events.out.tfevents.1627622728.27a653daf5cc.77.0 +3 -0
- runs/Jul30_05-25-19_27a653daf5cc/events.out.tfevents.1627622840.27a653daf5cc.77.2 +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
README.md
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
datasets:
|
6 |
+
- glue
|
7 |
+
metrics:
|
8 |
+
- matthews_correlation
|
9 |
+
model_index:
|
10 |
+
- name: distilbert-base-uncased-finetuned-cola
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Text Classification
|
14 |
+
type: text-classification
|
15 |
+
dataset:
|
16 |
+
name: glue
|
17 |
+
type: glue
|
18 |
+
args: cola
|
19 |
+
metric:
|
20 |
+
name: Matthews Correlation
|
21 |
+
type: matthews_correlation
|
22 |
+
value: 0.520875943143754
|
23 |
+
---
|
24 |
+
|
25 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
26 |
+
should probably proofread and complete it, then remove this comment. -->
|
27 |
+
|
28 |
+
# distilbert-base-uncased-finetuned-cola
|
29 |
+
|
30 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the glue dataset.
|
31 |
+
It achieves the following results on the evaluation set:
|
32 |
+
- Loss: 0.8486
|
33 |
+
- Matthews Correlation: 0.5209
|
34 |
+
|
35 |
+
## Model description
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Intended uses & limitations
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Training and evaluation data
|
44 |
+
|
45 |
+
More information needed
|
46 |
+
|
47 |
+
## Training procedure
|
48 |
+
|
49 |
+
### Training hyperparameters
|
50 |
+
|
51 |
+
The following hyperparameters were used during training:
|
52 |
+
- learning_rate: 2e-05
|
53 |
+
- train_batch_size: 16
|
54 |
+
- eval_batch_size: 16
|
55 |
+
- seed: 42
|
56 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
57 |
+
- lr_scheduler_type: linear
|
58 |
+
- num_epochs: 5
|
59 |
+
|
60 |
+
### Training results
|
61 |
+
|
62 |
+
| Training Loss | Epoch | Step | Validation Loss | Matthews Correlation |
|
63 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------------------:|
|
64 |
+
| 0.5265 | 1.0 | 535 | 0.5479 | 0.4049 |
|
65 |
+
| 0.3571 | 2.0 | 1070 | 0.5002 | 0.5164 |
|
66 |
+
| 0.2432 | 3.0 | 1605 | 0.6242 | 0.5091 |
|
67 |
+
| 0.173 | 4.0 | 2140 | 0.7559 | 0.5120 |
|
68 |
+
| 0.1352 | 5.0 | 2675 | 0.8486 | 0.5209 |
|
69 |
+
|
70 |
+
|
71 |
+
### Framework versions
|
72 |
+
|
73 |
+
- Transformers 4.9.1
|
74 |
+
- Pytorch 1.9.0+cu102
|
75 |
+
- Datasets 1.10.2
|
76 |
+
- Tokenizers 0.10.3
|
config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-uncased",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"DistilBertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"hidden_dim": 3072,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"max_position_embeddings": 512,
|
13 |
+
"model_type": "distilbert",
|
14 |
+
"n_heads": 12,
|
15 |
+
"n_layers": 6,
|
16 |
+
"pad_token_id": 0,
|
17 |
+
"problem_type": "single_label_classification",
|
18 |
+
"qa_dropout": 0.1,
|
19 |
+
"seq_classif_dropout": 0.2,
|
20 |
+
"sinusoidal_pos_embds": false,
|
21 |
+
"tie_weights_": true,
|
22 |
+
"torch_dtype": "float32",
|
23 |
+
"transformers_version": "4.9.1",
|
24 |
+
"vocab_size": 30522
|
25 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:de9f1b731ae01a707e204cbaa0bf70a79addad83e8fde9192c829f1b47d51d29
|
3 |
+
size 267860081
|
runs/Jul30_05-25-19_27a653daf5cc/1627622728.1097205/events.out.tfevents.1627622728.27a653daf5cc.77.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:86848481690e69e0a0999d2225206fd54a8f9b54b134ffe0d8a134632b60a923
|
3 |
+
size 4221
|
runs/Jul30_05-25-19_27a653daf5cc/events.out.tfevents.1627622728.27a653daf5cc.77.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e0c2bbebebd92e1dc2bfe3d573a00fee38ffeffff9b653c92fd1c37bde6a7d11
|
3 |
+
size 5681
|
runs/Jul30_05-25-19_27a653daf5cc/events.out.tfevents.1627622840.27a653daf5cc.77.2
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:24dd1c29f716b0e3436e0113c58549cedd27f2bf49c8b555d6f82be86349bfa0
|
3 |
+
size 375
|
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": true, "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": "distilbert-base-uncased", "tokenizer_class": "DistilBertTokenizer"}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e770334376d5a096c89b5181662256b17ed283a45f954160a1daf2ade121fff5
|
3 |
+
size 2671
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|