End of training
Browse files- README.md +68 -0
- all_results.json +11 -0
- config.json +91 -0
- model.safetensors +3 -0
- runs/Dec12_14-48-39_a84a099a6836/events.out.tfevents.1702392525.a84a099a6836.170.0 +3 -0
- runs/Dec12_14-48-39_a84a099a6836/events.out.tfevents.1702397678.a84a099a6836.170.1 +3 -0
- special_tokens_map.json +7 -0
- test_results.json +11 -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,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert-base-cased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: distilbert_system_A
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# distilbert_system_A
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.0547
|
24 |
+
- Precision: 0.8996
|
25 |
+
- Recall: 0.9132
|
26 |
+
- F1: 0.9063
|
27 |
+
- Accuracy: 0.9850
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 2e-05
|
47 |
+
- train_batch_size: 32
|
48 |
+
- eval_batch_size: 32
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 3
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
57 |
+
|:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
58 |
+
| 0.0278 | 1.0 | 8205 | 0.0434 | 0.8992 | 0.8977 | 0.8984 | 0.9843 |
|
59 |
+
| 0.0161 | 2.0 | 16410 | 0.0477 | 0.9067 | 0.9065 | 0.9066 | 0.9851 |
|
60 |
+
| 0.0097 | 3.0 | 24615 | 0.0547 | 0.8996 | 0.9132 | 0.9063 | 0.9850 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- Transformers 4.35.2
|
66 |
+
- Pytorch 2.1.0+cu118
|
67 |
+
- Datasets 2.15.0
|
68 |
+
- Tokenizers 0.15.0
|
all_results.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"test_accuracy": 0.9894704992435703,
|
4 |
+
"test_f1": 0.9351623370314959,
|
5 |
+
"test_loss": 0.02968989498913288,
|
6 |
+
"test_precision": 0.93195724575943,
|
7 |
+
"test_recall": 0.9383895496198089,
|
8 |
+
"test_runtime": 86.156,
|
9 |
+
"test_samples_per_second": 381.958,
|
10 |
+
"test_steps_per_second": 11.943
|
11 |
+
}
|
config.json
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert-base-cased",
|
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 |
+
"B-ANIM": 7,
|
13 |
+
"B-BIO": 9,
|
14 |
+
"B-CEL": 11,
|
15 |
+
"B-DIS": 13,
|
16 |
+
"B-EVE": 15,
|
17 |
+
"B-FOOD": 17,
|
18 |
+
"B-INST": 19,
|
19 |
+
"B-LOC": 5,
|
20 |
+
"B-MEDIA": 21,
|
21 |
+
"B-MYTH": 23,
|
22 |
+
"B-ORG": 3,
|
23 |
+
"B-PER": 1,
|
24 |
+
"B-PLANT": 25,
|
25 |
+
"B-TIME": 27,
|
26 |
+
"B-VEHI": 29,
|
27 |
+
"I-ANIM": 8,
|
28 |
+
"I-BIO": 10,
|
29 |
+
"I-CEL": 12,
|
30 |
+
"I-DIS": 14,
|
31 |
+
"I-EVE": 16,
|
32 |
+
"I-FOOD": 18,
|
33 |
+
"I-INST": 20,
|
34 |
+
"I-LOC": 6,
|
35 |
+
"I-MEDIA": 22,
|
36 |
+
"I-MYTH": 24,
|
37 |
+
"I-ORG": 4,
|
38 |
+
"I-PER": 2,
|
39 |
+
"I-PLANT": 26,
|
40 |
+
"I-TIME": 28,
|
41 |
+
"I-VEHI": 30,
|
42 |
+
"O": 0
|
43 |
+
},
|
44 |
+
"initializer_range": 0.02,
|
45 |
+
"label2id": {
|
46 |
+
"0": "O",
|
47 |
+
"1": "B-PER",
|
48 |
+
"2": "I-PER",
|
49 |
+
"3": "B-ORG",
|
50 |
+
"4": "I-ORG",
|
51 |
+
"5": "B-LOC",
|
52 |
+
"6": "I-LOC",
|
53 |
+
"7": "B-ANIM",
|
54 |
+
"8": "I-ANIM",
|
55 |
+
"9": "B-BIO",
|
56 |
+
"10": "I-BIO",
|
57 |
+
"11": "B-CEL",
|
58 |
+
"12": "I-CEL",
|
59 |
+
"13": "B-DIS",
|
60 |
+
"14": "I-DIS",
|
61 |
+
"15": "B-EVE",
|
62 |
+
"16": "I-EVE",
|
63 |
+
"17": "B-FOOD",
|
64 |
+
"18": "I-FOOD",
|
65 |
+
"19": "B-INST",
|
66 |
+
"20": "I-INST",
|
67 |
+
"21": "B-MEDIA",
|
68 |
+
"22": "I-MEDIA",
|
69 |
+
"23": "B-MYTH",
|
70 |
+
"24": "I-MYTH",
|
71 |
+
"25": "B-PLANT",
|
72 |
+
"26": "I-PLANT",
|
73 |
+
"27": "B-TIME",
|
74 |
+
"28": "I-TIME",
|
75 |
+
"29": "B-VEHI",
|
76 |
+
"30": "I-VEHI"
|
77 |
+
},
|
78 |
+
"max_position_embeddings": 512,
|
79 |
+
"model_type": "distilbert",
|
80 |
+
"n_heads": 12,
|
81 |
+
"n_layers": 6,
|
82 |
+
"output_past": true,
|
83 |
+
"pad_token_id": 0,
|
84 |
+
"qa_dropout": 0.1,
|
85 |
+
"seq_classif_dropout": 0.2,
|
86 |
+
"sinusoidal_pos_embds": false,
|
87 |
+
"tie_weights_": true,
|
88 |
+
"torch_dtype": "float32",
|
89 |
+
"transformers_version": "4.35.2",
|
90 |
+
"vocab_size": 28996
|
91 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ee975ea43c2a4ee4adb112738ae55dc4f8e88725de5b1a3ad49fc5bdbc54d4f
|
3 |
+
size 260871348
|
runs/Dec12_14-48-39_a84a099a6836/events.out.tfevents.1702392525.a84a099a6836.170.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4351cb152c88983cdcd1cfde326bd0988c2d68401b850dc4e68f08a25cb2433a
|
3 |
+
size 14836
|
runs/Dec12_14-48-39_a84a099a6836/events.out.tfevents.1702397678.a84a099a6836.170.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ba31a8994ec988a9bf6d1da9fda1840fae0c0f0b3e07f16cc8a54cd7ee2bade6
|
3 |
+
size 569
|
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 |
+
}
|
test_results.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"test_accuracy": 0.9894704992435703,
|
4 |
+
"test_f1": 0.9351623370314959,
|
5 |
+
"test_loss": 0.02968989498913288,
|
6 |
+
"test_precision": 0.93195724575943,
|
7 |
+
"test_recall": 0.9383895496198089,
|
8 |
+
"test_runtime": 86.156,
|
9 |
+
"test_samples_per_second": 381.958,
|
10 |
+
"test_steps_per_second": 11.943
|
11 |
+
}
|
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": false,
|
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:b5b65fa37b02c351ae9ff3be097393f68d392645a0c9e0030899908c3ae88519
|
3 |
+
size 4600
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|