End of training
Browse files- README.md +81 -0
- config.json +103 -0
- model.safetensors +3 -0
- runs/Dec20_03-02-36_bb56e48de815/events.out.tfevents.1703041365.bb56e48de815.654.0 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: mit
|
5 |
+
base_model: prajjwal1/bert-tiny
|
6 |
+
tags:
|
7 |
+
- pytorch
|
8 |
+
- BertForTokenClassification
|
9 |
+
- named-entity-recognition
|
10 |
+
- roberta-base
|
11 |
+
- generated_from_trainer
|
12 |
+
metrics:
|
13 |
+
- recall
|
14 |
+
- precision
|
15 |
+
- f1
|
16 |
+
- accuracy
|
17 |
+
model-index:
|
18 |
+
- name: bert-tiny-ontonotes
|
19 |
+
results: []
|
20 |
+
---
|
21 |
+
|
22 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
23 |
+
should probably proofread and complete it, then remove this comment. -->
|
24 |
+
|
25 |
+
# bert-tiny-ontonotes
|
26 |
+
|
27 |
+
This model is a fine-tuned version of [prajjwal1/bert-tiny](https://huggingface.co/prajjwal1/bert-tiny) on the tner/ontonotes5 dataset.
|
28 |
+
It achieves the following results on the evaluation set:
|
29 |
+
- Loss: 0.1917
|
30 |
+
- Recall: 0.7193
|
31 |
+
- Precision: 0.6817
|
32 |
+
- F1: 0.7000
|
33 |
+
- Accuracy: 0.9476
|
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: 8e-05
|
53 |
+
- train_batch_size: 32
|
54 |
+
- eval_batch_size: 160
|
55 |
+
- seed: 75241309
|
56 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
57 |
+
- lr_scheduler_type: cosine
|
58 |
+
- training_steps: 6000
|
59 |
+
|
60 |
+
### Training results
|
61 |
+
|
62 |
+
| Training Loss | Epoch | Step | Validation Loss | Recall | Precision | F1 | Accuracy |
|
63 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:--------:|
|
64 |
+
| 0.4283 | 0.31 | 600 | 0.3864 | 0.4561 | 0.4260 | 0.4405 | 0.9058 |
|
65 |
+
| 0.3214 | 0.63 | 1200 | 0.2865 | 0.5865 | 0.5485 | 0.5669 | 0.9265 |
|
66 |
+
| 0.2886 | 0.94 | 1800 | 0.2439 | 0.6432 | 0.6165 | 0.6295 | 0.9354 |
|
67 |
+
| 0.2511 | 1.25 | 2400 | 0.2233 | 0.6765 | 0.6250 | 0.6497 | 0.9389 |
|
68 |
+
| 0.2224 | 1.56 | 3000 | 0.2088 | 0.6878 | 0.6642 | 0.6758 | 0.9433 |
|
69 |
+
| 0.2181 | 1.88 | 3600 | 0.2001 | 0.7105 | 0.6684 | 0.6888 | 0.9451 |
|
70 |
+
| 0.215 | 2.19 | 4200 | 0.1954 | 0.7140 | 0.6795 | 0.6963 | 0.9469 |
|
71 |
+
| 0.1907 | 2.5 | 4800 | 0.1934 | 0.7169 | 0.6776 | 0.6967 | 0.9470 |
|
72 |
+
| 0.209 | 2.82 | 5400 | 0.1918 | 0.7185 | 0.6812 | 0.6994 | 0.9475 |
|
73 |
+
| 0.2073 | 3.13 | 6000 | 0.1917 | 0.7193 | 0.6817 | 0.7000 | 0.9476 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- Transformers 4.36.2
|
79 |
+
- Pytorch 2.1.0+cu121
|
80 |
+
- Datasets 2.15.0
|
81 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "prajjwal1/bert-tiny",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 128,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "B-CARDINAL",
|
14 |
+
"2": "B-DATE",
|
15 |
+
"3": "I-DATE",
|
16 |
+
"4": "B-PERSON",
|
17 |
+
"5": "I-PERSON",
|
18 |
+
"6": "B-NORP",
|
19 |
+
"7": "B-GPE",
|
20 |
+
"8": "I-GPE",
|
21 |
+
"9": "B-LAW",
|
22 |
+
"10": "I-LAW",
|
23 |
+
"11": "B-ORG",
|
24 |
+
"12": "I-ORG",
|
25 |
+
"13": "B-PERCENT",
|
26 |
+
"14": "I-PERCENT",
|
27 |
+
"15": "B-ORDINAL",
|
28 |
+
"16": "B-MONEY",
|
29 |
+
"17": "I-MONEY",
|
30 |
+
"18": "B-WORK_OF_ART",
|
31 |
+
"19": "I-WORK_OF_ART",
|
32 |
+
"20": "B-FAC",
|
33 |
+
"21": "B-TIME",
|
34 |
+
"22": "I-CARDINAL",
|
35 |
+
"23": "B-LOC",
|
36 |
+
"24": "B-QUANTITY",
|
37 |
+
"25": "I-QUANTITY",
|
38 |
+
"26": "I-NORP",
|
39 |
+
"27": "I-LOC",
|
40 |
+
"28": "B-PRODUCT",
|
41 |
+
"29": "I-TIME",
|
42 |
+
"30": "B-EVENT",
|
43 |
+
"31": "I-EVENT",
|
44 |
+
"32": "I-FAC",
|
45 |
+
"33": "B-LANGUAGE",
|
46 |
+
"34": "I-PRODUCT",
|
47 |
+
"35": "I-ORDINAL",
|
48 |
+
"36": "I-LANGUAGE"
|
49 |
+
},
|
50 |
+
"initializer_range": 0.02,
|
51 |
+
"intermediate_size": 512,
|
52 |
+
"label2id": {
|
53 |
+
"B-CARDINAL": 1,
|
54 |
+
"B-DATE": 2,
|
55 |
+
"B-EVENT": 30,
|
56 |
+
"B-FAC": 20,
|
57 |
+
"B-GPE": 7,
|
58 |
+
"B-LANGUAGE": 33,
|
59 |
+
"B-LAW": 9,
|
60 |
+
"B-LOC": 23,
|
61 |
+
"B-MONEY": 16,
|
62 |
+
"B-NORP": 6,
|
63 |
+
"B-ORDINAL": 15,
|
64 |
+
"B-ORG": 11,
|
65 |
+
"B-PERCENT": 13,
|
66 |
+
"B-PERSON": 4,
|
67 |
+
"B-PRODUCT": 28,
|
68 |
+
"B-QUANTITY": 24,
|
69 |
+
"B-TIME": 21,
|
70 |
+
"B-WORK_OF_ART": 18,
|
71 |
+
"I-CARDINAL": 22,
|
72 |
+
"I-DATE": 3,
|
73 |
+
"I-EVENT": 31,
|
74 |
+
"I-FAC": 32,
|
75 |
+
"I-GPE": 8,
|
76 |
+
"I-LANGUAGE": 36,
|
77 |
+
"I-LAW": 10,
|
78 |
+
"I-LOC": 27,
|
79 |
+
"I-MONEY": 17,
|
80 |
+
"I-NORP": 26,
|
81 |
+
"I-ORDINAL": 35,
|
82 |
+
"I-ORG": 12,
|
83 |
+
"I-PERCENT": 14,
|
84 |
+
"I-PERSON": 5,
|
85 |
+
"I-PRODUCT": 34,
|
86 |
+
"I-QUANTITY": 25,
|
87 |
+
"I-TIME": 29,
|
88 |
+
"I-WORK_OF_ART": 19,
|
89 |
+
"O": 0
|
90 |
+
},
|
91 |
+
"layer_norm_eps": 1e-12,
|
92 |
+
"max_position_embeddings": 512,
|
93 |
+
"model_type": "bert",
|
94 |
+
"num_attention_heads": 2,
|
95 |
+
"num_hidden_layers": 2,
|
96 |
+
"pad_token_id": 0,
|
97 |
+
"position_embedding_type": "absolute",
|
98 |
+
"torch_dtype": "float32",
|
99 |
+
"transformers_version": "4.36.2",
|
100 |
+
"type_vocab_size": 2,
|
101 |
+
"use_cache": true,
|
102 |
+
"vocab_size": 30522
|
103 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f11063ab296de73911abc220e5aeceff90836d0eaff4e2f70086fb80f6d11923
|
3 |
+
size 17501140
|
runs/Dec20_03-02-36_bb56e48de815/events.out.tfevents.1703041365.bb56e48de815.654.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63347dc6413d9d08d24cd6b710c05e3bdf3bb8171714d1ba9cd6fb4b38d998c0
|
3 |
+
size 20305
|
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,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": true,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "[PAD]",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"100": {
|
13 |
+
"content": "[UNK]",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"101": {
|
21 |
+
"content": "[CLS]",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"102": {
|
29 |
+
"content": "[SEP]",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"103": {
|
37 |
+
"content": "[MASK]",
|
38 |
+
"lstrip": false,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"clean_up_tokenization_spaces": true,
|
46 |
+
"cls_token": "[CLS]",
|
47 |
+
"do_basic_tokenize": true,
|
48 |
+
"do_lower_case": true,
|
49 |
+
"mask_token": "[MASK]",
|
50 |
+
"model_max_length": 1000000000000000019884624838656,
|
51 |
+
"never_split": null,
|
52 |
+
"pad_token": "[PAD]",
|
53 |
+
"sep_token": "[SEP]",
|
54 |
+
"strip_accents": null,
|
55 |
+
"tokenize_chinese_chars": true,
|
56 |
+
"tokenizer_class": "BertTokenizer",
|
57 |
+
"unk_token": "[UNK]"
|
58 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a73c8bd77b573e6809d8c77e8a018f2d6bfc19542e44e803a2ce065b83ae8cd0
|
3 |
+
size 4728
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|