AptaArkana
commited on
Commit
•
e4f7694
1
Parent(s):
0980c9b
Training complete
Browse files- README.md +73 -0
- config.json +108 -0
- model.safetensors +3 -0
- runs/Feb19_05-26-34_280a5290dce0/events.out.tfevents.1708320396.280a5290dce0.2510.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,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: cahya/bert-base-indonesian-1.5G
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: belajarner_bert_case
|
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 |
+
# belajarner_bert_case
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [cahya/bert-base-indonesian-1.5G](https://huggingface.co/cahya/bert-base-indonesian-1.5G) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.3302
|
24 |
+
- Precision: 0.8314
|
25 |
+
- Recall: 0.8484
|
26 |
+
- F1: 0.8398
|
27 |
+
- Accuracy: 0.9471
|
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: 8
|
48 |
+
- eval_batch_size: 8
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- num_epochs: 8
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
57 |
+
|:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
58 |
+
| 0.1904 | 1.0 | 1567 | 0.2090 | 0.7825 | 0.8298 | 0.8054 | 0.9385 |
|
59 |
+
| 0.1195 | 2.0 | 3134 | 0.2141 | 0.8312 | 0.8237 | 0.8274 | 0.9446 |
|
60 |
+
| 0.0772 | 3.0 | 4701 | 0.2200 | 0.8220 | 0.8427 | 0.8322 | 0.9457 |
|
61 |
+
| 0.0463 | 4.0 | 6268 | 0.2636 | 0.8158 | 0.8498 | 0.8324 | 0.9446 |
|
62 |
+
| 0.0342 | 5.0 | 7835 | 0.2878 | 0.8351 | 0.8392 | 0.8372 | 0.9456 |
|
63 |
+
| 0.0223 | 6.0 | 9402 | 0.3066 | 0.8267 | 0.8414 | 0.8340 | 0.9454 |
|
64 |
+
| 0.0139 | 7.0 | 10969 | 0.3250 | 0.8302 | 0.8476 | 0.8388 | 0.9466 |
|
65 |
+
| 0.0096 | 8.0 | 12536 | 0.3302 | 0.8314 | 0.8484 | 0.8398 | 0.9471 |
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- Transformers 4.35.2
|
71 |
+
- Pytorch 2.1.0+cu121
|
72 |
+
- Datasets 2.17.0
|
73 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "cahya/bert-base-indonesian-1.5G",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "B-CRD",
|
14 |
+
"1": "B-DAT",
|
15 |
+
"2": "B-EVT",
|
16 |
+
"3": "B-FAC",
|
17 |
+
"4": "B-GPE",
|
18 |
+
"5": "B-LAN",
|
19 |
+
"6": "B-LAW",
|
20 |
+
"7": "B-LOC",
|
21 |
+
"8": "B-MON",
|
22 |
+
"9": "B-NOR",
|
23 |
+
"10": "B-ORD",
|
24 |
+
"11": "B-ORG",
|
25 |
+
"12": "B-PER",
|
26 |
+
"13": "B-PRC",
|
27 |
+
"14": "B-PRD",
|
28 |
+
"15": "B-QTY",
|
29 |
+
"16": "B-REG",
|
30 |
+
"17": "B-TIM",
|
31 |
+
"18": "B-WOA",
|
32 |
+
"19": "I-CRD",
|
33 |
+
"20": "I-DAT",
|
34 |
+
"21": "I-EVT",
|
35 |
+
"22": "I-FAC",
|
36 |
+
"23": "I-GPE",
|
37 |
+
"24": "I-LAN",
|
38 |
+
"25": "I-LAW",
|
39 |
+
"26": "I-LOC",
|
40 |
+
"27": "I-MON",
|
41 |
+
"28": "I-NOR",
|
42 |
+
"29": "I-ORD",
|
43 |
+
"30": "I-ORG",
|
44 |
+
"31": "I-PER",
|
45 |
+
"32": "I-PRC",
|
46 |
+
"33": "I-PRD",
|
47 |
+
"34": "I-QTY",
|
48 |
+
"35": "I-REG",
|
49 |
+
"36": "I-TIM",
|
50 |
+
"37": "I-WOA",
|
51 |
+
"38": "O"
|
52 |
+
},
|
53 |
+
"initializer_range": 0.02,
|
54 |
+
"intermediate_size": 3072,
|
55 |
+
"label2id": {
|
56 |
+
"B-CRD": 0,
|
57 |
+
"B-DAT": 1,
|
58 |
+
"B-EVT": 2,
|
59 |
+
"B-FAC": 3,
|
60 |
+
"B-GPE": 4,
|
61 |
+
"B-LAN": 5,
|
62 |
+
"B-LAW": 6,
|
63 |
+
"B-LOC": 7,
|
64 |
+
"B-MON": 8,
|
65 |
+
"B-NOR": 9,
|
66 |
+
"B-ORD": 10,
|
67 |
+
"B-ORG": 11,
|
68 |
+
"B-PER": 12,
|
69 |
+
"B-PRC": 13,
|
70 |
+
"B-PRD": 14,
|
71 |
+
"B-QTY": 15,
|
72 |
+
"B-REG": 16,
|
73 |
+
"B-TIM": 17,
|
74 |
+
"B-WOA": 18,
|
75 |
+
"I-CRD": 19,
|
76 |
+
"I-DAT": 20,
|
77 |
+
"I-EVT": 21,
|
78 |
+
"I-FAC": 22,
|
79 |
+
"I-GPE": 23,
|
80 |
+
"I-LAN": 24,
|
81 |
+
"I-LAW": 25,
|
82 |
+
"I-LOC": 26,
|
83 |
+
"I-MON": 27,
|
84 |
+
"I-NOR": 28,
|
85 |
+
"I-ORD": 29,
|
86 |
+
"I-ORG": 30,
|
87 |
+
"I-PER": 31,
|
88 |
+
"I-PRC": 32,
|
89 |
+
"I-PRD": 33,
|
90 |
+
"I-QTY": 34,
|
91 |
+
"I-REG": 35,
|
92 |
+
"I-TIM": 36,
|
93 |
+
"I-WOA": 37,
|
94 |
+
"O": 38
|
95 |
+
},
|
96 |
+
"layer_norm_eps": 1e-12,
|
97 |
+
"max_position_embeddings": 512,
|
98 |
+
"model_type": "bert",
|
99 |
+
"num_attention_heads": 12,
|
100 |
+
"num_hidden_layers": 12,
|
101 |
+
"pad_token_id": 0,
|
102 |
+
"position_embedding_type": "absolute",
|
103 |
+
"torch_dtype": "float32",
|
104 |
+
"transformers_version": "4.35.2",
|
105 |
+
"type_vocab_size": 2,
|
106 |
+
"use_cache": true,
|
107 |
+
"vocab_size": 32000
|
108 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f48a4068dfc6c563caa3269fa4354d48b78e054e08c560b9d28fa3c9b46343dc
|
3 |
+
size 440250324
|
runs/Feb19_05-26-34_280a5290dce0/events.out.tfevents.1708320396.280a5290dce0.2510.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f56f4670881ec522c334121e4391f474cee70a809af5c76a17d0fb900f68fd66
|
3 |
+
size 13699
|
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 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[UNK]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "[SEP]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "[PAD]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "[CLS]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"4": {
|
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_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"full_tokenizer_file": null,
|
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:089227e81d92fd690978c5ba0e6b83d332833d004b1e9c55aab1b9fbaff3fc02
|
3 |
+
size 4600
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|