Quinta6728
commited on
Commit
•
12c7621
1
Parent(s):
7e2822e
Quinta6728/my_awesome_wnut_model
Browse files- README.md +91 -0
- config.json +54 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +13 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- wnut_17
|
8 |
+
metrics:
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
- accuracy
|
13 |
+
model-index:
|
14 |
+
- name: my_awesome_wnut_model
|
15 |
+
results:
|
16 |
+
- task:
|
17 |
+
name: Token Classification
|
18 |
+
type: token-classification
|
19 |
+
dataset:
|
20 |
+
name: wnut_17
|
21 |
+
type: wnut_17
|
22 |
+
config: wnut_17
|
23 |
+
split: test
|
24 |
+
args: wnut_17
|
25 |
+
metrics:
|
26 |
+
- name: Precision
|
27 |
+
type: precision
|
28 |
+
value: 0.6145833333333334
|
29 |
+
- name: Recall
|
30 |
+
type: recall
|
31 |
+
value: 0.32808155699721964
|
32 |
+
- name: F1
|
33 |
+
type: f1
|
34 |
+
value: 0.4277945619335347
|
35 |
+
- name: Accuracy
|
36 |
+
type: accuracy
|
37 |
+
value: 0.9424992518490017
|
38 |
+
---
|
39 |
+
|
40 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
41 |
+
should probably proofread and complete it, then remove this comment. -->
|
42 |
+
|
43 |
+
# my_awesome_wnut_model
|
44 |
+
|
45 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the wnut_17 dataset.
|
46 |
+
It achieves the following results on the evaluation set:
|
47 |
+
- Loss: 0.2697
|
48 |
+
- Precision: 0.6146
|
49 |
+
- Recall: 0.3281
|
50 |
+
- F1: 0.4278
|
51 |
+
- Accuracy: 0.9425
|
52 |
+
|
53 |
+
## Model description
|
54 |
+
|
55 |
+
More information needed
|
56 |
+
|
57 |
+
## Intended uses & limitations
|
58 |
+
|
59 |
+
More information needed
|
60 |
+
|
61 |
+
## Training and evaluation data
|
62 |
+
|
63 |
+
More information needed
|
64 |
+
|
65 |
+
## Training procedure
|
66 |
+
|
67 |
+
### Training hyperparameters
|
68 |
+
|
69 |
+
The following hyperparameters were used during training:
|
70 |
+
- learning_rate: 2e-05
|
71 |
+
- train_batch_size: 16
|
72 |
+
- eval_batch_size: 16
|
73 |
+
- seed: 42
|
74 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
75 |
+
- lr_scheduler_type: linear
|
76 |
+
- num_epochs: 2
|
77 |
+
|
78 |
+
### Training results
|
79 |
+
|
80 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
81 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
82 |
+
| No log | 1.0 | 213 | 0.2833 | 0.5687 | 0.2530 | 0.3502 | 0.9391 |
|
83 |
+
| No log | 2.0 | 426 | 0.2697 | 0.6146 | 0.3281 | 0.4278 | 0.9425 |
|
84 |
+
|
85 |
+
|
86 |
+
### Framework versions
|
87 |
+
|
88 |
+
- Transformers 4.33.0
|
89 |
+
- Pytorch 2.0.0+cpu
|
90 |
+
- Datasets 2.1.0
|
91 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-uncased",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"DistilBertForTokenClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"hidden_dim": 3072,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "B-corporation",
|
14 |
+
"2": "I-corporation",
|
15 |
+
"3": "B-creative-work",
|
16 |
+
"4": "I-creative-work",
|
17 |
+
"5": "B-group",
|
18 |
+
"6": "I-group",
|
19 |
+
"7": "B-location",
|
20 |
+
"8": "I-location",
|
21 |
+
"9": "B-person",
|
22 |
+
"10": "I-person",
|
23 |
+
"11": "B-product",
|
24 |
+
"12": "I-product"
|
25 |
+
},
|
26 |
+
"initializer_range": 0.02,
|
27 |
+
"label2id": {
|
28 |
+
"B-corporation": 1,
|
29 |
+
"B-creative-work": 3,
|
30 |
+
"B-group": 5,
|
31 |
+
"B-location": 7,
|
32 |
+
"B-person": 9,
|
33 |
+
"B-product": 11,
|
34 |
+
"I-corporation": 2,
|
35 |
+
"I-creative-work": 4,
|
36 |
+
"I-group": 6,
|
37 |
+
"I-location": 8,
|
38 |
+
"I-person": 10,
|
39 |
+
"I-product": 12,
|
40 |
+
"O": 0
|
41 |
+
},
|
42 |
+
"max_position_embeddings": 512,
|
43 |
+
"model_type": "distilbert",
|
44 |
+
"n_heads": 12,
|
45 |
+
"n_layers": 6,
|
46 |
+
"pad_token_id": 0,
|
47 |
+
"qa_dropout": 0.1,
|
48 |
+
"seq_classif_dropout": 0.2,
|
49 |
+
"sinusoidal_pos_embds": false,
|
50 |
+
"tie_weights_": true,
|
51 |
+
"torch_dtype": "float32",
|
52 |
+
"transformers_version": "4.33.0",
|
53 |
+
"vocab_size": 30522
|
54 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9aa86f068e41a149dcd4fee67cec46bb8aada337e502ac189bccb148a06fbfa7
|
3 |
+
size 265524901
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"clean_up_tokenization_spaces": true,
|
3 |
+
"cls_token": "[CLS]",
|
4 |
+
"do_lower_case": true,
|
5 |
+
"mask_token": "[MASK]",
|
6 |
+
"model_max_length": 512,
|
7 |
+
"pad_token": "[PAD]",
|
8 |
+
"sep_token": "[SEP]",
|
9 |
+
"strip_accents": null,
|
10 |
+
"tokenize_chinese_chars": true,
|
11 |
+
"tokenizer_class": "DistilBertTokenizer",
|
12 |
+
"unk_token": "[UNK]"
|
13 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:38624911cacc9cc21eeec78f957264796b349f321b188e23542598891875f99b
|
3 |
+
size 4027
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|