Model save
Browse files- README.md +50 -0
- config.json +37 -37
- generation_config.json +8 -0
- model.safetensors +1 -1
- special_tokens_map.json +15 -15
- tokenizer_config.json +55 -55
- training_args.bin +1 -1
README.md
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: vinai/bartpho-syllable
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
model-index:
|
6 |
+
- name: vietnamese-correction-v2
|
7 |
+
results: []
|
8 |
+
---
|
9 |
+
|
10 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
11 |
+
should probably proofread and complete it, then remove this comment. -->
|
12 |
+
|
13 |
+
# vietnamese-correction-v2
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [vinai/bartpho-syllable](https://huggingface.co/vinai/bartpho-syllable) on an unknown dataset.
|
16 |
+
|
17 |
+
## Model description
|
18 |
+
|
19 |
+
More information needed
|
20 |
+
|
21 |
+
## Intended uses & limitations
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Training and evaluation data
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training procedure
|
30 |
+
|
31 |
+
### Training hyperparameters
|
32 |
+
|
33 |
+
The following hyperparameters were used during training:
|
34 |
+
- learning_rate: 1e-05
|
35 |
+
- train_batch_size: 1
|
36 |
+
- eval_batch_size: 1
|
37 |
+
- seed: 42
|
38 |
+
- gradient_accumulation_steps: 4
|
39 |
+
- total_train_batch_size: 4
|
40 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
41 |
+
- lr_scheduler_type: linear
|
42 |
+
- num_epochs: 1
|
43 |
+
- mixed_precision_training: Native AMP
|
44 |
+
|
45 |
+
### Framework versions
|
46 |
+
|
47 |
+
- Transformers 4.41.2
|
48 |
+
- Pytorch 2.3.1+cpu
|
49 |
+
- Datasets 2.20.0
|
50 |
+
- Tokenizers 0.19.1
|
config.json
CHANGED
@@ -1,37 +1,37 @@
|
|
1 |
-
{
|
2 |
-
"_name_or_path": "vinai/bartpho-syllable",
|
3 |
-
"activation_dropout": 0.0,
|
4 |
-
"activation_function": "gelu",
|
5 |
-
"architectures": [
|
6 |
-
"MBartForConditionalGeneration"
|
7 |
-
],
|
8 |
-
"attention_dropout": 0.0,
|
9 |
-
"bos_token_id": 0,
|
10 |
-
"classifier_dropout": 0.0,
|
11 |
-
"d_model": 1024,
|
12 |
-
"decoder_attention_heads": 16,
|
13 |
-
"decoder_ffn_dim": 4096,
|
14 |
-
"decoder_layerdrop": 0.0,
|
15 |
-
"decoder_layers": 12,
|
16 |
-
"decoder_start_token_id": 2,
|
17 |
-
"dropout": 0.1,
|
18 |
-
"encoder_attention_heads": 16,
|
19 |
-
"encoder_ffn_dim": 4096,
|
20 |
-
"encoder_layerdrop": 0.0,
|
21 |
-
"encoder_layers": 12,
|
22 |
-
"eos_token_id": 2,
|
23 |
-
"forced_eos_token_id": 2,
|
24 |
-
"gradient_checkpointing": false,
|
25 |
-
"init_std": 0.02,
|
26 |
-
"is_encoder_decoder": true,
|
27 |
-
"max_position_embeddings": 1024,
|
28 |
-
"model_type": "mbart",
|
29 |
-
"num_hidden_layers": 12,
|
30 |
-
"pad_token_id": 1,
|
31 |
-
"scale_embedding": false,
|
32 |
-
"tokenizer_class": "BartphoTokenizer",
|
33 |
-
"torch_dtype": "float32",
|
34 |
-
"transformers_version": "4.41.2",
|
35 |
-
"use_cache": true,
|
36 |
-
"vocab_size": 40030
|
37 |
-
}
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "vinai/bartpho-syllable",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"activation_function": "gelu",
|
5 |
+
"architectures": [
|
6 |
+
"MBartForConditionalGeneration"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"bos_token_id": 0,
|
10 |
+
"classifier_dropout": 0.0,
|
11 |
+
"d_model": 1024,
|
12 |
+
"decoder_attention_heads": 16,
|
13 |
+
"decoder_ffn_dim": 4096,
|
14 |
+
"decoder_layerdrop": 0.0,
|
15 |
+
"decoder_layers": 12,
|
16 |
+
"decoder_start_token_id": 2,
|
17 |
+
"dropout": 0.1,
|
18 |
+
"encoder_attention_heads": 16,
|
19 |
+
"encoder_ffn_dim": 4096,
|
20 |
+
"encoder_layerdrop": 0.0,
|
21 |
+
"encoder_layers": 12,
|
22 |
+
"eos_token_id": 2,
|
23 |
+
"forced_eos_token_id": 2,
|
24 |
+
"gradient_checkpointing": false,
|
25 |
+
"init_std": 0.02,
|
26 |
+
"is_encoder_decoder": true,
|
27 |
+
"max_position_embeddings": 1024,
|
28 |
+
"model_type": "mbart",
|
29 |
+
"num_hidden_layers": 12,
|
30 |
+
"pad_token_id": 1,
|
31 |
+
"scale_embedding": false,
|
32 |
+
"tokenizer_class": "BartphoTokenizer",
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.41.2",
|
35 |
+
"use_cache": true,
|
36 |
+
"vocab_size": 40030
|
37 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 0,
|
3 |
+
"decoder_start_token_id": 2,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"forced_eos_token_id": 2,
|
6 |
+
"pad_token_id": 1,
|
7 |
+
"transformers_version": "4.41.2"
|
8 |
+
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1583480280
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c6fe161d6020bfe16cf5adf3fd5de00933dfe01d0361f60c6591b4939a786b9
|
3 |
size 1583480280
|
special_tokens_map.json
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
{
|
2 |
-
"bos_token": "<s>",
|
3 |
-
"cls_token": "<s>",
|
4 |
-
"eos_token": "</s>",
|
5 |
-
"mask_token": {
|
6 |
-
"content": "<mask>",
|
7 |
-
"lstrip": true,
|
8 |
-
"normalized": true,
|
9 |
-
"rstrip": false,
|
10 |
-
"single_word": false
|
11 |
-
},
|
12 |
-
"pad_token": "<pad>",
|
13 |
-
"sep_token": "</s>",
|
14 |
-
"unk_token": "<unk>"
|
15 |
-
}
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer_config.json
CHANGED
@@ -1,55 +1,55 @@
|
|
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 |
-
"40029": {
|
36 |
-
"content": "<mask>",
|
37 |
-
"lstrip": true,
|
38 |
-
"normalized": true,
|
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 |
-
"sp_model_kwargs": {},
|
53 |
-
"tokenizer_class": "BartphoTokenizer",
|
54 |
-
"unk_token": "<unk>"
|
55 |
-
}
|
|
|
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 |
+
"40029": {
|
36 |
+
"content": "<mask>",
|
37 |
+
"lstrip": true,
|
38 |
+
"normalized": true,
|
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 |
+
"sp_model_kwargs": {},
|
53 |
+
"tokenizer_class": "BartphoTokenizer",
|
54 |
+
"unk_token": "<unk>"
|
55 |
+
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5240
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a7a5387e49cbe1a5ee2093f250e3a6ffcc96f98ef628c5c24e601e348c6b520
|
3 |
size 5240
|