hoang.dang1
commited on
Commit
·
824ead0
1
Parent(s):
f881026
update
Browse files- README.md +56 -0
- all_results.json +14 -0
- config.json +68 -0
- eval_results.json +9 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- train_results.json +8 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: NlpHUST/electra-base-vn
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- accuracy
|
7 |
+
model-index:
|
8 |
+
- name: electra-vbpl_cls
|
9 |
+
results: []
|
10 |
+
---
|
11 |
+
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# electra-vbpl_cls
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [NlpHUST/electra-base-vn](https://huggingface.co/NlpHUST/electra-base-vn) on an unknown dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 0.0125
|
20 |
+
- Accuracy: 0.9972
|
21 |
+
|
22 |
+
## Model description
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Intended uses & limitations
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training and evaluation data
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training procedure
|
35 |
+
|
36 |
+
### Training hyperparameters
|
37 |
+
|
38 |
+
The following hyperparameters were used during training:
|
39 |
+
- learning_rate: 2e-05
|
40 |
+
- train_batch_size: 32
|
41 |
+
- eval_batch_size: 8
|
42 |
+
- seed: 42
|
43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
44 |
+
- lr_scheduler_type: linear
|
45 |
+
- num_epochs: 5.0
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
### Framework versions
|
52 |
+
|
53 |
+
- Transformers 4.35.2
|
54 |
+
- Pytorch 2.1.0+cu121
|
55 |
+
- Datasets 2.15.0
|
56 |
+
- Tokenizers 0.15.0
|
all_results.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"eval_accuracy": 0.9971590909090909,
|
4 |
+
"eval_loss": 0.012539840303361416,
|
5 |
+
"eval_runtime": 6.4144,
|
6 |
+
"eval_samples": 704,
|
7 |
+
"eval_samples_per_second": 109.753,
|
8 |
+
"eval_steps_per_second": 13.719,
|
9 |
+
"train_loss": 0.14407250677997416,
|
10 |
+
"train_runtime": 1327.6934,
|
11 |
+
"train_samples": 11263,
|
12 |
+
"train_samples_per_second": 42.416,
|
13 |
+
"train_steps_per_second": 1.326
|
14 |
+
}
|
config.json
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "NlpHUST/electra-base-vn",
|
3 |
+
"architectures": [
|
4 |
+
"ElectraForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"embedding_size": 768,
|
9 |
+
"finetuning_task": "text-classification",
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 768,
|
13 |
+
"id2label": {
|
14 |
+
"0": "B\u00e1o c\u00e1o",
|
15 |
+
"1": "Ch\u1ec9 th\u1ecb",
|
16 |
+
"2": "C\u00f4ng \u0111i\u1ec7n",
|
17 |
+
"3": "H\u01b0\u1edbng d\u1eabn",
|
18 |
+
"4": "K\u1ebf ho\u1ea1ch",
|
19 |
+
"5": "Lu\u1eadt",
|
20 |
+
"6": "Ngh\u1ecb quy\u1ebft",
|
21 |
+
"7": "Ngh\u1ecb \u0111\u1ecbnh",
|
22 |
+
"8": "Quy ch\u1ebf",
|
23 |
+
"9": "Quy \u0111\u1ecbnh",
|
24 |
+
"10": "Quy\u1ebft \u0111\u1ecbnh",
|
25 |
+
"11": "Th\u00f4ng b\u00e1o",
|
26 |
+
"12": "Th\u00f4ng t\u01b0",
|
27 |
+
"13": "Th\u00f4ng t\u01b0 li\u00ean t\u1ecbch",
|
28 |
+
"14": "V\u0103n b\u1ea3n kh\u00e1c",
|
29 |
+
"15": "\u0110i\u1ec1u \u01b0\u1edbc qu\u1ed1c t\u1ebf"
|
30 |
+
},
|
31 |
+
"initializer_range": 0.02,
|
32 |
+
"intermediate_size": 3072,
|
33 |
+
"label2id": {
|
34 |
+
"B\u00e1o c\u00e1o": 0,
|
35 |
+
"Ch\u1ec9 th\u1ecb": 1,
|
36 |
+
"C\u00f4ng \u0111i\u1ec7n": 2,
|
37 |
+
"H\u01b0\u1edbng d\u1eabn": 3,
|
38 |
+
"K\u1ebf ho\u1ea1ch": 4,
|
39 |
+
"Lu\u1eadt": 5,
|
40 |
+
"Ngh\u1ecb quy\u1ebft": 6,
|
41 |
+
"Ngh\u1ecb \u0111\u1ecbnh": 7,
|
42 |
+
"Quy ch\u1ebf": 8,
|
43 |
+
"Quy \u0111\u1ecbnh": 9,
|
44 |
+
"Quy\u1ebft \u0111\u1ecbnh": 10,
|
45 |
+
"Th\u00f4ng b\u00e1o": 11,
|
46 |
+
"Th\u00f4ng t\u01b0": 12,
|
47 |
+
"Th\u00f4ng t\u01b0 li\u00ean t\u1ecbch": 13,
|
48 |
+
"V\u0103n b\u1ea3n kh\u00e1c": 14,
|
49 |
+
"\u0110i\u1ec1u \u01b0\u1edbc qu\u1ed1c t\u1ebf": 15
|
50 |
+
},
|
51 |
+
"layer_norm_eps": 1e-12,
|
52 |
+
"max_position_embeddings": 512,
|
53 |
+
"model_type": "electra",
|
54 |
+
"num_attention_heads": 12,
|
55 |
+
"num_hidden_layers": 12,
|
56 |
+
"pad_token_id": 0,
|
57 |
+
"position_embedding_type": "absolute",
|
58 |
+
"problem_type": "single_label_classification",
|
59 |
+
"summary_activation": "gelu",
|
60 |
+
"summary_last_dropout": 0.1,
|
61 |
+
"summary_type": "first",
|
62 |
+
"summary_use_proj": true,
|
63 |
+
"torch_dtype": "float32",
|
64 |
+
"transformers_version": "4.35.2",
|
65 |
+
"type_vocab_size": 2,
|
66 |
+
"use_cache": true,
|
67 |
+
"vocab_size": 62000
|
68 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"eval_accuracy": 0.9971590909090909,
|
4 |
+
"eval_loss": 0.012539840303361416,
|
5 |
+
"eval_runtime": 6.4144,
|
6 |
+
"eval_samples": 704,
|
7 |
+
"eval_samples_per_second": 109.753,
|
8 |
+
"eval_steps_per_second": 13.719
|
9 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:01faa9e19d8b7dc11a3ba7d17425ee3646e7d0c57a88b4624a13ad906d2f1380
|
3 |
+
size 534702736
|
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,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"1": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "[SEP]",
|
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": false,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 1000000000000000019884624838656,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "ElectraTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"train_loss": 0.14407250677997416,
|
4 |
+
"train_runtime": 1327.6934,
|
5 |
+
"train_samples": 11263,
|
6 |
+
"train_samples_per_second": 42.416,
|
7 |
+
"train_steps_per_second": 1.326
|
8 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|