Adapting `distilbert/distilbert-base-uncased` for `wnut_17`.
Browse files- README.md +98 -0
- config.json +54 -0
- model.safetensors +3 -0
- runs/Aug31_23-52-36_26ec1493bf73/events.out.tfevents.1725148357.26ec1493bf73.2602.0 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: distilbert/distilbert-base-uncased
|
5 |
+
tags:
|
6 |
+
- trl
|
7 |
+
- sft
|
8 |
+
- generated_from_trainer
|
9 |
+
datasets:
|
10 |
+
- wnut_17
|
11 |
+
metrics:
|
12 |
+
- precision
|
13 |
+
- recall
|
14 |
+
- f1
|
15 |
+
- accuracy
|
16 |
+
model-index:
|
17 |
+
- name: distilbert-base-uncased-wnut_17-full
|
18 |
+
results:
|
19 |
+
- task:
|
20 |
+
name: Token Classification
|
21 |
+
type: token-classification
|
22 |
+
dataset:
|
23 |
+
name: wnut_17
|
24 |
+
type: wnut_17
|
25 |
+
config: wnut_17
|
26 |
+
split: test
|
27 |
+
args: wnut_17
|
28 |
+
metrics:
|
29 |
+
- name: Precision
|
30 |
+
type: precision
|
31 |
+
value: 0.6038781163434903
|
32 |
+
- name: Recall
|
33 |
+
type: recall
|
34 |
+
value: 0.4040778498609824
|
35 |
+
- name: F1
|
36 |
+
type: f1
|
37 |
+
value: 0.484175458078845
|
38 |
+
- name: Accuracy
|
39 |
+
type: accuracy
|
40 |
+
value: 0.9478859390363815
|
41 |
+
---
|
42 |
+
|
43 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
44 |
+
should probably proofread and complete it, then remove this comment. -->
|
45 |
+
|
46 |
+
# distilbert-base-uncased-wnut_17-full
|
47 |
+
|
48 |
+
This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on the wnut_17 dataset.
|
49 |
+
It achieves the following results on the evaluation set:
|
50 |
+
- Loss: 0.3599
|
51 |
+
- Precision: 0.6039
|
52 |
+
- Recall: 0.4041
|
53 |
+
- F1: 0.4842
|
54 |
+
- Accuracy: 0.9479
|
55 |
+
|
56 |
+
## Model description
|
57 |
+
|
58 |
+
More information needed
|
59 |
+
|
60 |
+
## Intended uses & limitations
|
61 |
+
|
62 |
+
More information needed
|
63 |
+
|
64 |
+
## Training and evaluation data
|
65 |
+
|
66 |
+
More information needed
|
67 |
+
|
68 |
+
## Training procedure
|
69 |
+
|
70 |
+
### Training hyperparameters
|
71 |
+
|
72 |
+
The following hyperparameters were used during training:
|
73 |
+
- learning_rate: 5e-05
|
74 |
+
- train_batch_size: 16
|
75 |
+
- eval_batch_size: 16
|
76 |
+
- seed: 42
|
77 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
78 |
+
- lr_scheduler_type: linear
|
79 |
+
- num_epochs: 10
|
80 |
+
|
81 |
+
### Training results
|
82 |
+
|
83 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
84 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
85 |
+
| No log | 1.0 | 213 | 0.2609 | 0.5911 | 0.3309 | 0.4242 | 0.9420 |
|
86 |
+
| No log | 2.0 | 426 | 0.2808 | 0.5679 | 0.3373 | 0.4233 | 0.9447 |
|
87 |
+
| 0.133 | 3.0 | 639 | 0.3328 | 0.6591 | 0.3244 | 0.4348 | 0.9461 |
|
88 |
+
| 0.133 | 4.0 | 852 | 0.3302 | 0.5976 | 0.3689 | 0.4562 | 0.9465 |
|
89 |
+
| 0.0224 | 5.0 | 1065 | 0.3142 | 0.4955 | 0.4041 | 0.4451 | 0.9445 |
|
90 |
+
| 0.0224 | 6.0 | 1278 | 0.3599 | 0.6039 | 0.4041 | 0.4842 | 0.9479 |
|
91 |
+
|
92 |
+
|
93 |
+
### Framework versions
|
94 |
+
|
95 |
+
- Transformers 4.45.0.dev0
|
96 |
+
- Pytorch 2.4.0+cu121
|
97 |
+
- Datasets 2.21.0
|
98 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert/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.45.0.dev0",
|
53 |
+
"vocab_size": 30522
|
54 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f970da5da1a01ab76f4904344378615e2fc8c07b50c697c1afd29c8d6060aad
|
3 |
+
size 265503852
|
runs/Aug31_23-52-36_26ec1493bf73/events.out.tfevents.1725148357.26ec1493bf73.2602.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da61fb3000af4594a45cf8fd651a663983ea6599e9a06f20a4f06e2935ee47a8
|
3 |
+
size 9414
|
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,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_lower_case": true,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "DistilBertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cbf195f4ce79db8a2acdacf927b719eb0ef0b4c75ca541657b637049c72fb1de
|
3 |
+
size 5496
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|