praysimanjuntak
commited on
Commit
•
363ce87
1
Parent(s):
bfd6dfd
praysimanjuntak/distilbert-cased-lft
Browse files- README.md +89 -0
- config.json +43 -0
- model.safetensors +3 -0
- runs/May27_03-19-02_48beaa2b1cd3/events.out.tfevents.1716779944.48beaa2b1cd3.431.9 +3 -0
- runs/May27_03-19-51_48beaa2b1cd3/events.out.tfevents.1716779992.48beaa2b1cd3.431.10 +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,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: distilbert/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-cased-lft
|
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-cased-lft
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [distilbert/distilbert-base-cased](https://huggingface.co/distilbert/distilbert-base-cased) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.1017
|
24 |
+
- Precision: 0.8722
|
25 |
+
- Recall: 0.8905
|
26 |
+
- F1: 0.8813
|
27 |
+
- Accuracy: 0.9764
|
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: 64
|
48 |
+
- eval_batch_size: 64
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 10
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
57 |
+
|:-------------:|:------:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
58 |
+
| No log | 0.4065 | 100 | 0.1106 | 0.8374 | 0.7969 | 0.8167 | 0.9647 |
|
59 |
+
| No log | 0.8130 | 200 | 0.0926 | 0.8242 | 0.8474 | 0.8356 | 0.9690 |
|
60 |
+
| No log | 1.2195 | 300 | 0.0898 | 0.8325 | 0.8671 | 0.8494 | 0.9704 |
|
61 |
+
| No log | 1.6260 | 400 | 0.0873 | 0.8591 | 0.8614 | 0.8602 | 0.9729 |
|
62 |
+
| 0.0943 | 2.0325 | 500 | 0.0829 | 0.8563 | 0.8765 | 0.8662 | 0.9740 |
|
63 |
+
| 0.0943 | 2.4390 | 600 | 0.0864 | 0.8656 | 0.8747 | 0.8701 | 0.9746 |
|
64 |
+
| 0.0943 | 2.8455 | 700 | 0.0842 | 0.8652 | 0.8761 | 0.8706 | 0.9746 |
|
65 |
+
| 0.0943 | 3.2520 | 800 | 0.0875 | 0.8627 | 0.8823 | 0.8724 | 0.9746 |
|
66 |
+
| 0.0943 | 3.6585 | 900 | 0.0887 | 0.8564 | 0.8829 | 0.8694 | 0.9744 |
|
67 |
+
| 0.0444 | 4.0650 | 1000 | 0.0875 | 0.8801 | 0.8797 | 0.8799 | 0.9763 |
|
68 |
+
| 0.0444 | 4.4715 | 1100 | 0.0944 | 0.8516 | 0.8901 | 0.8704 | 0.9746 |
|
69 |
+
| 0.0444 | 4.8780 | 1200 | 0.0906 | 0.8607 | 0.8891 | 0.8746 | 0.9752 |
|
70 |
+
| 0.0444 | 5.2846 | 1300 | 0.0934 | 0.8706 | 0.8896 | 0.8800 | 0.9765 |
|
71 |
+
| 0.0444 | 5.6911 | 1400 | 0.0914 | 0.8784 | 0.8862 | 0.8823 | 0.9765 |
|
72 |
+
| 0.0248 | 6.0976 | 1500 | 0.0918 | 0.8796 | 0.8896 | 0.8846 | 0.9772 |
|
73 |
+
| 0.0248 | 6.5041 | 1600 | 0.0960 | 0.8711 | 0.8916 | 0.8812 | 0.9765 |
|
74 |
+
| 0.0248 | 6.9106 | 1700 | 0.0970 | 0.8678 | 0.8876 | 0.8776 | 0.9763 |
|
75 |
+
| 0.0248 | 7.3171 | 1800 | 0.1008 | 0.8690 | 0.8887 | 0.8787 | 0.9759 |
|
76 |
+
| 0.0248 | 7.7236 | 1900 | 0.1012 | 0.8650 | 0.8926 | 0.8786 | 0.9759 |
|
77 |
+
| 0.0153 | 8.1301 | 2000 | 0.1002 | 0.8715 | 0.8921 | 0.8817 | 0.9762 |
|
78 |
+
| 0.0153 | 8.5366 | 2100 | 0.1003 | 0.8749 | 0.8889 | 0.8818 | 0.9763 |
|
79 |
+
| 0.0153 | 8.9431 | 2200 | 0.1015 | 0.8680 | 0.8917 | 0.8797 | 0.9760 |
|
80 |
+
| 0.0153 | 9.3496 | 2300 | 0.1015 | 0.8716 | 0.8882 | 0.8798 | 0.9764 |
|
81 |
+
| 0.0153 | 9.7561 | 2400 | 0.1017 | 0.8722 | 0.8905 | 0.8813 | 0.9764 |
|
82 |
+
|
83 |
+
|
84 |
+
### Framework versions
|
85 |
+
|
86 |
+
- Transformers 4.41.0
|
87 |
+
- Pytorch 2.3.0+cu121
|
88 |
+
- Datasets 2.19.1
|
89 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "distilbert/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 |
+
"0": "O",
|
13 |
+
"1": "B-PERSON",
|
14 |
+
"2": "I-PERSON",
|
15 |
+
"3": "B-ORGANISATION",
|
16 |
+
"4": "I-ORGANISATION",
|
17 |
+
"5": "B-LOCATION",
|
18 |
+
"6": "I-LOCATION"
|
19 |
+
},
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"label2id": {
|
22 |
+
"B-LOCATION": 5,
|
23 |
+
"B-ORGANISATION": 3,
|
24 |
+
"B-PERSON": 1,
|
25 |
+
"I-LOCATION": 6,
|
26 |
+
"I-ORGANISATION": 4,
|
27 |
+
"I-PERSON": 2,
|
28 |
+
"O": 0
|
29 |
+
},
|
30 |
+
"max_position_embeddings": 512,
|
31 |
+
"model_type": "distilbert",
|
32 |
+
"n_heads": 12,
|
33 |
+
"n_layers": 6,
|
34 |
+
"output_past": true,
|
35 |
+
"pad_token_id": 0,
|
36 |
+
"qa_dropout": 0.1,
|
37 |
+
"seq_classif_dropout": 0.2,
|
38 |
+
"sinusoidal_pos_embds": false,
|
39 |
+
"tie_weights_": true,
|
40 |
+
"torch_dtype": "float32",
|
41 |
+
"transformers_version": "4.41.0",
|
42 |
+
"vocab_size": 28996
|
43 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9df95680fec780c883b2600fb0d081f75e06bed8eef20960745fd06485362af5
|
3 |
+
size 260797516
|
runs/May27_03-19-02_48beaa2b1cd3/events.out.tfevents.1716779944.48beaa2b1cd3.431.9
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fad8c1ffc0646c05311f1e94bef95a6c1539bfcaea06cb4733ad62f495595435
|
3 |
+
size 5075
|
runs/May27_03-19-51_48beaa2b1cd3/events.out.tfevents.1716779992.48beaa2b1cd3.431.10
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:833b259162fc366fafa2fb7c9aa93af6345cdf2803414c02ed418707a79f0b0e
|
3 |
+
size 17592
|
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": 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:b806f2233173bb38e18be523e02ab3a69e9359f386dc94d3915edcafbc801dcf
|
3 |
+
size 5112
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|