DylanonWic
commited on
Commit
•
3a2f4d6
1
Parent(s):
2d28408
Upload 15 files
Browse files- .gitignore +1 -0
- README.md +66 -0
- added_tokens.json +4 -0
- alphabet.json +1 -0
- config.json +116 -0
- language_model/attrs.json +1 -0
- language_model/internet-crawled.3gram-002.bin +3 -0
- language_model/unigrams.txt +0 -0
- preprocessor_config.json +10 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +36 -0
- tokenizer_config.json +14 -0
- training_args.bin +3 -0
- vocab.json +72 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
metrics:
|
5 |
+
- wer
|
6 |
+
model-index:
|
7 |
+
- name: wav2vec2-large-asr-th-2
|
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 |
+
# wav2vec2-large-asr-th-2
|
15 |
+
|
16 |
+
This model was trained from scratch on the None dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 0.2590
|
19 |
+
- Wer: 0.4210
|
20 |
+
- Cer: 0.1146
|
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: 0.0002
|
40 |
+
- train_batch_size: 16
|
41 |
+
- eval_batch_size: 8
|
42 |
+
- seed: 42
|
43 |
+
- gradient_accumulation_steps: 3
|
44 |
+
- total_train_batch_size: 48
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- lr_scheduler_warmup_steps: 600
|
48 |
+
- training_steps: 4000
|
49 |
+
- mixed_precision_training: Native AMP
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Wer | Cer |
|
54 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|
|
55 |
+
| 0.6189 | 0.24 | 1000 | 0.3571 | 0.5060 | 0.1449 |
|
56 |
+
| 0.5435 | 0.47 | 2000 | 0.3255 | 0.4712 | 0.1328 |
|
57 |
+
| 0.5612 | 0.71 | 3000 | 0.2870 | 0.4464 | 0.1233 |
|
58 |
+
| 0.6737 | 0.95 | 4000 | 0.2590 | 0.4210 | 0.1146 |
|
59 |
+
|
60 |
+
|
61 |
+
### Framework versions
|
62 |
+
|
63 |
+
- Transformers 4.27.3
|
64 |
+
- Pytorch 1.13.1+cu116
|
65 |
+
- Datasets 2.10.1
|
66 |
+
- Tokenizers 0.13.2
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s>": 71,
|
3 |
+
"<s>": 70
|
4 |
+
}
|
alphabet.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"labels": ["\u0e11", "\u0e45", "\u0e01", "\u0e07", "\u0e12", "\u0e30", "\u0e4a", "\u0e49", "\u0e0c", "\u0e0b", "\u0e14", "\u0e2f", "\u0e43", "\u0e36", "\u0e0d", "\u0e48", "\u0e32", "\u0e24", "\u0e4b", "\u0e2d", "\u0e2c", "\u0e17", "\u0e42", "\u0e20", "\u0e22", "\u0e47", "\u0e25", "\u0e38", "\u0e40", "\u0e2e", "\u0e1d", "\u0e1b", "\u0e35", "\u0e1a", "\u0e10", "\u0e15", "\u0e16", "\u0e28", "\u0e1f", "\u0e13", "\u0e2b", "\u0e23", " ", "\u0e1e", "\u0e06", "\u0e31", "\u0e04", "\u0e27", "\u0e0f", "\u0e08", "\u0e41", "\u0e21", "\u0e0e", "\u0e09", "\u0e4c", "\u0e29", "\u0e33", "\u0e1c", "\u0e02", "\u0e44", "\u0e39", "\u0e37", "\u0e19", "\u0e0a", "\u0e34", "\u0e18", "\u0e03", "\u0e2a", "\u2047", "", "<s>", "</s>"], "is_bpe": false}
|
config.json
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "DylanonWic/wav2vec2-large-asr-th-2",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"adapter_kernel_size": 3,
|
5 |
+
"adapter_stride": 2,
|
6 |
+
"add_adapter": false,
|
7 |
+
"apply_spec_augment": true,
|
8 |
+
"architectures": [
|
9 |
+
"Wav2Vec2ForCTC"
|
10 |
+
],
|
11 |
+
"attention_dropout": 0.08,
|
12 |
+
"bos_token_id": 1,
|
13 |
+
"classifier_proj_size": 256,
|
14 |
+
"codevector_dim": 768,
|
15 |
+
"contrastive_logits_temperature": 0.1,
|
16 |
+
"conv_bias": true,
|
17 |
+
"conv_dim": [
|
18 |
+
512,
|
19 |
+
512,
|
20 |
+
512,
|
21 |
+
512,
|
22 |
+
512,
|
23 |
+
512,
|
24 |
+
512
|
25 |
+
],
|
26 |
+
"conv_kernel": [
|
27 |
+
10,
|
28 |
+
3,
|
29 |
+
3,
|
30 |
+
3,
|
31 |
+
3,
|
32 |
+
2,
|
33 |
+
2
|
34 |
+
],
|
35 |
+
"conv_stride": [
|
36 |
+
5,
|
37 |
+
2,
|
38 |
+
2,
|
39 |
+
2,
|
40 |
+
2,
|
41 |
+
2,
|
42 |
+
2
|
43 |
+
],
|
44 |
+
"ctc_loss_reduction": "mean",
|
45 |
+
"ctc_zero_infinity": false,
|
46 |
+
"diversity_loss_weight": 0.1,
|
47 |
+
"do_stable_layer_norm": true,
|
48 |
+
"eos_token_id": 2,
|
49 |
+
"feat_extract_activation": "gelu",
|
50 |
+
"feat_extract_dropout": 0.0,
|
51 |
+
"feat_extract_norm": "layer",
|
52 |
+
"feat_proj_dropout": 0.1,
|
53 |
+
"feat_quantizer_dropout": 0.0,
|
54 |
+
"final_dropout": 0.0,
|
55 |
+
"gradient_checkpointing": false,
|
56 |
+
"hidden_act": "gelu",
|
57 |
+
"hidden_dropout": 0.1,
|
58 |
+
"hidden_size": 1024,
|
59 |
+
"initializer_range": 0.02,
|
60 |
+
"intermediate_size": 4096,
|
61 |
+
"layer_norm_eps": 1e-05,
|
62 |
+
"layerdrop": 0.1,
|
63 |
+
"mask_channel_length": 10,
|
64 |
+
"mask_channel_min_space": 1,
|
65 |
+
"mask_channel_other": 0.0,
|
66 |
+
"mask_channel_prob": 0.0,
|
67 |
+
"mask_channel_selection": "static",
|
68 |
+
"mask_feature_length": 10,
|
69 |
+
"mask_feature_min_masks": 0,
|
70 |
+
"mask_feature_prob": 0.0,
|
71 |
+
"mask_time_length": 10,
|
72 |
+
"mask_time_min_masks": 2,
|
73 |
+
"mask_time_min_space": 1,
|
74 |
+
"mask_time_other": 0.0,
|
75 |
+
"mask_time_prob": 0.1,
|
76 |
+
"mask_time_selection": "static",
|
77 |
+
"model_type": "wav2vec2",
|
78 |
+
"num_adapter_layers": 3,
|
79 |
+
"num_attention_heads": 16,
|
80 |
+
"num_codevector_groups": 2,
|
81 |
+
"num_codevectors_per_group": 320,
|
82 |
+
"num_conv_pos_embedding_groups": 16,
|
83 |
+
"num_conv_pos_embeddings": 128,
|
84 |
+
"num_feat_extract_layers": 7,
|
85 |
+
"num_hidden_layers": 24,
|
86 |
+
"num_negatives": 100,
|
87 |
+
"output_hidden_size": 1024,
|
88 |
+
"pad_token_id": 69,
|
89 |
+
"proj_codevector_dim": 768,
|
90 |
+
"tdnn_dilation": [
|
91 |
+
1,
|
92 |
+
2,
|
93 |
+
3,
|
94 |
+
1,
|
95 |
+
1
|
96 |
+
],
|
97 |
+
"tdnn_dim": [
|
98 |
+
512,
|
99 |
+
512,
|
100 |
+
512,
|
101 |
+
512,
|
102 |
+
1500
|
103 |
+
],
|
104 |
+
"tdnn_kernel": [
|
105 |
+
5,
|
106 |
+
3,
|
107 |
+
3,
|
108 |
+
1,
|
109 |
+
1
|
110 |
+
],
|
111 |
+
"torch_dtype": "float32",
|
112 |
+
"transformers_version": "4.27.3",
|
113 |
+
"use_weighted_layer_sum": false,
|
114 |
+
"vocab_size": 72,
|
115 |
+
"xvector_output_dim": 512
|
116 |
+
}
|
language_model/attrs.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"alpha": 0.5, "beta": 1.5, "unk_score_offset": -10.0, "score_boundary": true}
|
language_model/internet-crawled.3gram-002.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c42eeb703599fbfa67a1992abf89231027c54dbb8e093cf1c395ae954be6c3b6
|
3 |
+
size 2515339944
|
language_model/unigrams.txt
ADDED
File without changes
|
preprocessor_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"padding_side": "right",
|
6 |
+
"padding_value": 0,
|
7 |
+
"processor_class": "Wav2Vec2ProcessorWithLM",
|
8 |
+
"return_attention_mask": true,
|
9 |
+
"sampling_rate": 16000
|
10 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f3db9d140ed973d933448e83b4a3d7c72b7683b7a077f52c258594763abf2139
|
3 |
+
size 1262197037
|
special_tokens_map.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
{
|
4 |
+
"content": "<s>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": true,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"content": "</s>",
|
12 |
+
"lstrip": false,
|
13 |
+
"normalized": true,
|
14 |
+
"rstrip": false,
|
15 |
+
"single_word": false
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"content": "<s>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": true,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"content": "</s>",
|
26 |
+
"lstrip": false,
|
27 |
+
"normalized": true,
|
28 |
+
"rstrip": false,
|
29 |
+
"single_word": false
|
30 |
+
}
|
31 |
+
],
|
32 |
+
"bos_token": "<s>",
|
33 |
+
"eos_token": "</s>",
|
34 |
+
"pad_token": "[PAD]",
|
35 |
+
"unk_token": "[UNK]"
|
36 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"do_lower_case": false,
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"model_max_length": 1000000000000000019884624838656,
|
6 |
+
"num_proc": 2,
|
7 |
+
"pad_token": "[PAD]",
|
8 |
+
"processor_class": "Wav2Vec2ProcessorWithLM",
|
9 |
+
"replace_word_delimiter_char": " ",
|
10 |
+
"special_tokens_map_file": "/root/.cache/huggingface/hub/models--airesearch--wav2vec2-large-xlsr-53-th/snapshots/3155938c549b23eee16b1d4b55dcb161b7fe4bcf/special_tokens_map.json",
|
11 |
+
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
12 |
+
"unk_token": "[UNK]",
|
13 |
+
"word_delimiter_token": "|"
|
14 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ab1acd7b1adc89516ec5569b2e31e361d047913189de035bffe974d3c7e42c8a
|
3 |
+
size 3643
|
vocab.json
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"[PAD]": 69,
|
3 |
+
"[UNK]": 68,
|
4 |
+
"|": 42,
|
5 |
+
"ก": 2,
|
6 |
+
"ข": 58,
|
7 |
+
"ฃ": 66,
|
8 |
+
"ค": 46,
|
9 |
+
"ฆ": 44,
|
10 |
+
"ง": 3,
|
11 |
+
"จ": 49,
|
12 |
+
"ฉ": 53,
|
13 |
+
"ช": 63,
|
14 |
+
"ซ": 9,
|
15 |
+
"ฌ": 8,
|
16 |
+
"ญ": 14,
|
17 |
+
"ฎ": 52,
|
18 |
+
"ฏ": 48,
|
19 |
+
"ฐ": 34,
|
20 |
+
"ฑ": 0,
|
21 |
+
"ฒ": 4,
|
22 |
+
"ณ": 39,
|
23 |
+
"ด": 10,
|
24 |
+
"ต": 35,
|
25 |
+
"ถ": 36,
|
26 |
+
"ท": 21,
|
27 |
+
"ธ": 65,
|
28 |
+
"น": 62,
|
29 |
+
"บ": 33,
|
30 |
+
"ป": 31,
|
31 |
+
"ผ": 57,
|
32 |
+
"ฝ": 30,
|
33 |
+
"พ": 43,
|
34 |
+
"ฟ": 38,
|
35 |
+
"ภ": 23,
|
36 |
+
"ม": 51,
|
37 |
+
"ย": 24,
|
38 |
+
"ร": 41,
|
39 |
+
"ฤ": 17,
|
40 |
+
"ล": 26,
|
41 |
+
"ว": 47,
|
42 |
+
"ศ": 37,
|
43 |
+
"ษ": 55,
|
44 |
+
"ส": 67,
|
45 |
+
"ห": 40,
|
46 |
+
"ฬ": 20,
|
47 |
+
"อ": 19,
|
48 |
+
"ฮ": 29,
|
49 |
+
"ฯ": 11,
|
50 |
+
"ะ": 5,
|
51 |
+
"ั": 45,
|
52 |
+
"า": 16,
|
53 |
+
"ำ": 56,
|
54 |
+
"ิ": 64,
|
55 |
+
"ี": 32,
|
56 |
+
"ึ": 13,
|
57 |
+
"ื": 61,
|
58 |
+
"ุ": 27,
|
59 |
+
"ู": 60,
|
60 |
+
"เ": 28,
|
61 |
+
"แ": 50,
|
62 |
+
"โ": 22,
|
63 |
+
"ใ": 12,
|
64 |
+
"ไ": 59,
|
65 |
+
"ๅ": 1,
|
66 |
+
"็": 25,
|
67 |
+
"่": 15,
|
68 |
+
"้": 7,
|
69 |
+
"๊": 6,
|
70 |
+
"๋": 18,
|
71 |
+
"์": 54
|
72 |
+
}
|