Upload 10 files
Browse files- README.md +55 -0
- added_tokens.json +3 -0
- all_results.json +14 -0
- bpe.codes +0 -0
- special_tokens_map.json +9 -0
- tokenizer_config.json +54 -0
- train_results.json +8 -0
- trainer_state.json +121 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,3 +1,58 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
base_model: bmd1905/vietnamese-correction
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: my-vietnamese-correction
|
8 |
+
results: []
|
9 |
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# my-vietnamese-correction
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [bmd1905/vietnamese-correction](https://huggingface.co/bmd1905/vietnamese-correction) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 0.7591
|
19 |
+
- Cer: 0.1234
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 0.0001
|
39 |
+
- train_batch_size: 4
|
40 |
+
- eval_batch_size: 4
|
41 |
+
- seed: 42
|
42 |
+
- gradient_accumulation_steps: 32
|
43 |
+
- total_train_batch_size: 128
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 2.0
|
47 |
+
- mixed_precision_training: Native AMP
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- Transformers 4.38.2
|
56 |
+
- Pytorch 2.2.1+cu121
|
57 |
+
- Datasets 2.18.0
|
58 |
+
- Tokenizers 0.15.2
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<mask>": 64000
|
3 |
+
}
|
all_results.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.99,
|
3 |
+
"eval_cer": 0.12337560670111164,
|
4 |
+
"eval_loss": 0.7591257095336914,
|
5 |
+
"eval_runtime": 172.1415,
|
6 |
+
"eval_samples": 1999,
|
7 |
+
"eval_samples_per_second": 11.613,
|
8 |
+
"eval_steps_per_second": 2.905,
|
9 |
+
"train_loss": 0.23782958757521502,
|
10 |
+
"train_runtime": 525.475,
|
11 |
+
"train_samples": 8599,
|
12 |
+
"train_samples_per_second": 32.728,
|
13 |
+
"train_steps_per_second": 0.255
|
14 |
+
}
|
bpe.codes
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": "<mask>",
|
6 |
+
"pad_token": "<pad>",
|
7 |
+
"sep_token": "</s>",
|
8 |
+
"unk_token": "<unk>"
|
9 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<s>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<pad>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "<unk>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"64000": {
|
36 |
+
"content": "<mask>",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"bos_token": "<s>",
|
45 |
+
"clean_up_tokenization_spaces": true,
|
46 |
+
"cls_token": "<s>",
|
47 |
+
"eos_token": "</s>",
|
48 |
+
"mask_token": "<mask>",
|
49 |
+
"model_max_length": 1000000000000000019884624838656,
|
50 |
+
"pad_token": "<pad>",
|
51 |
+
"sep_token": "</s>",
|
52 |
+
"tokenizer_class": "PhobertTokenizer",
|
53 |
+
"unk_token": "<unk>"
|
54 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.99,
|
3 |
+
"train_loss": 0.23782958757521502,
|
4 |
+
"train_runtime": 525.475,
|
5 |
+
"train_samples": 8599,
|
6 |
+
"train_samples_per_second": 32.728,
|
7 |
+
"train_steps_per_second": 0.255
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.994418604651163,
|
5 |
+
"eval_steps": 10000,
|
6 |
+
"global_step": 134,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.15,
|
13 |
+
"grad_norm": 5.033292770385742,
|
14 |
+
"learning_rate": 9.253731343283582e-05,
|
15 |
+
"loss": 1.2697,
|
16 |
+
"step": 10
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.3,
|
20 |
+
"grad_norm": 2.4899826049804688,
|
21 |
+
"learning_rate": 8.507462686567164e-05,
|
22 |
+
"loss": 0.3049,
|
23 |
+
"step": 20
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.45,
|
27 |
+
"grad_norm": 1.5415112972259521,
|
28 |
+
"learning_rate": 7.761194029850747e-05,
|
29 |
+
"loss": 0.2733,
|
30 |
+
"step": 30
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.6,
|
34 |
+
"grad_norm": 1.638880968093872,
|
35 |
+
"learning_rate": 7.014925373134329e-05,
|
36 |
+
"loss": 0.2333,
|
37 |
+
"step": 40
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.74,
|
41 |
+
"grad_norm": 1.1440837383270264,
|
42 |
+
"learning_rate": 6.268656716417911e-05,
|
43 |
+
"loss": 0.1867,
|
44 |
+
"step": 50
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.89,
|
48 |
+
"grad_norm": 1.1239829063415527,
|
49 |
+
"learning_rate": 5.5223880597014934e-05,
|
50 |
+
"loss": 0.192,
|
51 |
+
"step": 60
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.04,
|
55 |
+
"grad_norm": 1.2518362998962402,
|
56 |
+
"learning_rate": 4.7761194029850745e-05,
|
57 |
+
"loss": 0.1704,
|
58 |
+
"step": 70
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 1.19,
|
62 |
+
"grad_norm": 0.8198823928833008,
|
63 |
+
"learning_rate": 4.029850746268657e-05,
|
64 |
+
"loss": 0.0894,
|
65 |
+
"step": 80
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 1.34,
|
69 |
+
"grad_norm": 0.8759316205978394,
|
70 |
+
"learning_rate": 3.283582089552239e-05,
|
71 |
+
"loss": 0.1051,
|
72 |
+
"step": 90
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 1.49,
|
76 |
+
"grad_norm": 1.0815106630325317,
|
77 |
+
"learning_rate": 2.537313432835821e-05,
|
78 |
+
"loss": 0.0918,
|
79 |
+
"step": 100
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 1.64,
|
83 |
+
"grad_norm": 0.6786580085754395,
|
84 |
+
"learning_rate": 1.791044776119403e-05,
|
85 |
+
"loss": 0.0828,
|
86 |
+
"step": 110
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 1.79,
|
90 |
+
"grad_norm": 0.5591555833816528,
|
91 |
+
"learning_rate": 1.0447761194029851e-05,
|
92 |
+
"loss": 0.0796,
|
93 |
+
"step": 120
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 1.93,
|
97 |
+
"grad_norm": 0.9764952659606934,
|
98 |
+
"learning_rate": 2.9850746268656716e-06,
|
99 |
+
"loss": 0.0783,
|
100 |
+
"step": 130
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 1.99,
|
104 |
+
"step": 134,
|
105 |
+
"total_flos": 708532919205888.0,
|
106 |
+
"train_loss": 0.23782958757521502,
|
107 |
+
"train_runtime": 525.475,
|
108 |
+
"train_samples_per_second": 32.728,
|
109 |
+
"train_steps_per_second": 0.255
|
110 |
+
}
|
111 |
+
],
|
112 |
+
"logging_steps": 10,
|
113 |
+
"max_steps": 134,
|
114 |
+
"num_input_tokens_seen": 0,
|
115 |
+
"num_train_epochs": 2,
|
116 |
+
"save_steps": 500,
|
117 |
+
"total_flos": 708532919205888.0,
|
118 |
+
"train_batch_size": 4,
|
119 |
+
"trial_name": null,
|
120 |
+
"trial_params": null
|
121 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e79714b4283c43871bdb862f10df6f362f15c585840b5895dabf27d5fbde1a07
|
3 |
+
size 5048
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|