Xabi Ezpeleta
commited on
Commit
•
d206943
1
Parent(s):
027f7a3
Fine-tuned with CV17.0
Browse files- README.md +23 -26
- config.json +13 -6
- generation_config.json +264 -0
- merges.txt +1 -0
- model.safetensors +3 -0
- preprocessor_config.json +0 -0
- run.sh +1 -1
- run_speech_recognition_seq2seq_streaming.py +5 -4
- special_tokens_map.json +10 -4
- tokenizer.json +0 -0
- tokenizer_config.json +0 -0
- training_args.bin +2 -2
- vocab.json +0 -0
README.md
CHANGED
@@ -1,43 +1,40 @@
|
|
1 |
---
|
2 |
-
|
3 |
-
- eu
|
4 |
license: apache-2.0
|
|
|
5 |
tags:
|
6 |
-
- whisper-event
|
7 |
- generated_from_trainer
|
8 |
datasets:
|
9 |
-
-
|
10 |
metrics:
|
11 |
- wer
|
12 |
model-index:
|
13 |
-
- name:
|
14 |
results:
|
15 |
- task:
|
16 |
name: Automatic Speech Recognition
|
17 |
type: automatic-speech-recognition
|
18 |
dataset:
|
19 |
-
name:
|
20 |
-
type:
|
21 |
config: eu
|
22 |
split: test
|
23 |
args: eu
|
24 |
metrics:
|
25 |
- name: Wer
|
26 |
type: wer
|
27 |
-
value:
|
28 |
---
|
29 |
|
30 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
31 |
should probably proofread and complete it, then remove this comment. -->
|
32 |
|
33 |
-
#
|
34 |
|
35 |
-
This model is a fine-tuned version of [openai/whisper-small](https://huggingface.co/openai/whisper-small) on the
|
36 |
It achieves the following results on the evaluation set:
|
37 |
-
- Loss: 0.
|
38 |
-
- Wer:
|
39 |
-
|
40 |
-
If you need to use this model with whisper.cpp, you can download the ggml file: [ggml-small-eu.bin](https://huggingface.co/xezpeleta/whisper-small-eu/resolve/main/ggml-small.eu.bin)
|
41 |
|
42 |
## Model description
|
43 |
|
@@ -60,7 +57,7 @@ The following hyperparameters were used during training:
|
|
60 |
- train_batch_size: 32
|
61 |
- eval_batch_size: 16
|
62 |
- seed: 42
|
63 |
-
- optimizer:
|
64 |
- lr_scheduler_type: linear
|
65 |
- lr_scheduler_warmup_steps: 500
|
66 |
- training_steps: 5000
|
@@ -68,18 +65,18 @@ The following hyperparameters were used during training:
|
|
68 |
|
69 |
### Training results
|
70 |
|
71 |
-
| Training Loss | Epoch
|
72 |
-
|
73 |
-
| 0.
|
74 |
-
| 0.
|
75 |
-
| 0.
|
76 |
-
| 0.
|
77 |
-
| 0.
|
78 |
|
79 |
|
80 |
### Framework versions
|
81 |
|
82 |
-
- Transformers 4.
|
83 |
-
- Pytorch
|
84 |
-
- Datasets
|
85 |
-
- Tokenizers 0.
|
|
|
1 |
---
|
2 |
+
library_name: transformers
|
|
|
3 |
license: apache-2.0
|
4 |
+
base_model: openai/whisper-small
|
5 |
tags:
|
|
|
6 |
- generated_from_trainer
|
7 |
datasets:
|
8 |
+
- common_voice_17_0
|
9 |
metrics:
|
10 |
- wer
|
11 |
model-index:
|
12 |
+
- name: openai/whisper-small
|
13 |
results:
|
14 |
- task:
|
15 |
name: Automatic Speech Recognition
|
16 |
type: automatic-speech-recognition
|
17 |
dataset:
|
18 |
+
name: common_voice_17_0
|
19 |
+
type: common_voice_17_0
|
20 |
config: eu
|
21 |
split: test
|
22 |
args: eu
|
23 |
metrics:
|
24 |
- name: Wer
|
25 |
type: wer
|
26 |
+
value: 11.838103265051853
|
27 |
---
|
28 |
|
29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
30 |
should probably proofread and complete it, then remove this comment. -->
|
31 |
|
32 |
+
# openai/whisper-small
|
33 |
|
34 |
+
This model is a fine-tuned version of [openai/whisper-small](https://huggingface.co/openai/whisper-small) on the common_voice_17_0 dataset.
|
35 |
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 0.1845
|
37 |
+
- Wer: 11.8381
|
|
|
|
|
38 |
|
39 |
## Model description
|
40 |
|
|
|
57 |
- train_batch_size: 32
|
58 |
- eval_batch_size: 16
|
59 |
- seed: 42
|
60 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
61 |
- lr_scheduler_type: linear
|
62 |
- lr_scheduler_warmup_steps: 500
|
63 |
- training_steps: 5000
|
|
|
65 |
|
66 |
### Training results
|
67 |
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss | Wer |
|
69 |
+
|:-------------:|:------:|:----:|:---------------:|:-------:|
|
70 |
+
| 0.2458 | 1.0296 | 1000 | 0.2480 | 18.0723 |
|
71 |
+
| 0.1099 | 2.0592 | 2000 | 0.1976 | 13.6355 |
|
72 |
+
| 0.0403 | 3.0888 | 3000 | 0.2002 | 12.7249 |
|
73 |
+
| 0.0211 | 4.1184 | 4000 | 0.2101 | 12.4327 |
|
74 |
+
| 0.0609 | 5.148 | 5000 | 0.1845 | 11.8381 |
|
75 |
|
76 |
|
77 |
### Framework versions
|
78 |
|
79 |
+
- Transformers 4.46.0.dev0
|
80 |
+
- Pytorch 2.4.1+cu121
|
81 |
+
- Datasets 3.0.2.dev0
|
82 |
+
- Tokenizers 0.20.0
|
config.json
CHANGED
@@ -2,15 +2,14 @@
|
|
2 |
"_name_or_path": "openai/whisper-small",
|
3 |
"activation_dropout": 0.0,
|
4 |
"activation_function": "gelu",
|
|
|
5 |
"architectures": [
|
6 |
"WhisperForConditionalGeneration"
|
7 |
],
|
8 |
"attention_dropout": 0.0,
|
9 |
-
"begin_suppress_tokens":
|
10 |
-
220,
|
11 |
-
50257
|
12 |
-
],
|
13 |
"bos_token_id": 50257,
|
|
|
14 |
"d_model": 768,
|
15 |
"decoder_attention_heads": 12,
|
16 |
"decoder_ffn_dim": 3072,
|
@@ -26,16 +25,24 @@
|
|
26 |
"forced_decoder_ids": null,
|
27 |
"init_std": 0.02,
|
28 |
"is_encoder_decoder": true,
|
29 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
"max_source_positions": 1500,
|
31 |
"max_target_positions": 448,
|
|
|
32 |
"model_type": "whisper",
|
33 |
"num_hidden_layers": 12,
|
34 |
"num_mel_bins": 80,
|
35 |
"pad_token_id": 50257,
|
36 |
"scale_embedding": false,
|
37 |
"torch_dtype": "float32",
|
38 |
-
"transformers_version": "4.
|
39 |
"use_cache": false,
|
|
|
40 |
"vocab_size": 51865
|
41 |
}
|
|
|
2 |
"_name_or_path": "openai/whisper-small",
|
3 |
"activation_dropout": 0.0,
|
4 |
"activation_function": "gelu",
|
5 |
+
"apply_spec_augment": false,
|
6 |
"architectures": [
|
7 |
"WhisperForConditionalGeneration"
|
8 |
],
|
9 |
"attention_dropout": 0.0,
|
10 |
+
"begin_suppress_tokens": null,
|
|
|
|
|
|
|
11 |
"bos_token_id": 50257,
|
12 |
+
"classifier_proj_size": 256,
|
13 |
"d_model": 768,
|
14 |
"decoder_attention_heads": 12,
|
15 |
"decoder_ffn_dim": 3072,
|
|
|
25 |
"forced_decoder_ids": null,
|
26 |
"init_std": 0.02,
|
27 |
"is_encoder_decoder": true,
|
28 |
+
"mask_feature_length": 10,
|
29 |
+
"mask_feature_min_masks": 0,
|
30 |
+
"mask_feature_prob": 0.0,
|
31 |
+
"mask_time_length": 10,
|
32 |
+
"mask_time_min_masks": 2,
|
33 |
+
"mask_time_prob": 0.05,
|
34 |
+
"max_length": null,
|
35 |
"max_source_positions": 1500,
|
36 |
"max_target_positions": 448,
|
37 |
+
"median_filter_width": 7,
|
38 |
"model_type": "whisper",
|
39 |
"num_hidden_layers": 12,
|
40 |
"num_mel_bins": 80,
|
41 |
"pad_token_id": 50257,
|
42 |
"scale_embedding": false,
|
43 |
"torch_dtype": "float32",
|
44 |
+
"transformers_version": "4.46.0.dev0",
|
45 |
"use_cache": false,
|
46 |
+
"use_weighted_layer_sum": false,
|
47 |
"vocab_size": 51865
|
48 |
}
|
generation_config.json
ADDED
@@ -0,0 +1,264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alignment_heads": [
|
3 |
+
[
|
4 |
+
5,
|
5 |
+
3
|
6 |
+
],
|
7 |
+
[
|
8 |
+
5,
|
9 |
+
9
|
10 |
+
],
|
11 |
+
[
|
12 |
+
8,
|
13 |
+
0
|
14 |
+
],
|
15 |
+
[
|
16 |
+
8,
|
17 |
+
4
|
18 |
+
],
|
19 |
+
[
|
20 |
+
8,
|
21 |
+
7
|
22 |
+
],
|
23 |
+
[
|
24 |
+
8,
|
25 |
+
8
|
26 |
+
],
|
27 |
+
[
|
28 |
+
9,
|
29 |
+
0
|
30 |
+
],
|
31 |
+
[
|
32 |
+
9,
|
33 |
+
7
|
34 |
+
],
|
35 |
+
[
|
36 |
+
9,
|
37 |
+
9
|
38 |
+
],
|
39 |
+
[
|
40 |
+
10,
|
41 |
+
5
|
42 |
+
]
|
43 |
+
],
|
44 |
+
"begin_suppress_tokens": [
|
45 |
+
220,
|
46 |
+
50257
|
47 |
+
],
|
48 |
+
"bos_token_id": 50257,
|
49 |
+
"decoder_start_token_id": 50258,
|
50 |
+
"eos_token_id": 50257,
|
51 |
+
"forced_decoder_ids": [
|
52 |
+
[
|
53 |
+
1,
|
54 |
+
null
|
55 |
+
],
|
56 |
+
[
|
57 |
+
2,
|
58 |
+
50359
|
59 |
+
]
|
60 |
+
],
|
61 |
+
"is_multilingual": true,
|
62 |
+
"lang_to_id": {
|
63 |
+
"<|af|>": 50327,
|
64 |
+
"<|am|>": 50334,
|
65 |
+
"<|ar|>": 50272,
|
66 |
+
"<|as|>": 50350,
|
67 |
+
"<|az|>": 50304,
|
68 |
+
"<|ba|>": 50355,
|
69 |
+
"<|be|>": 50330,
|
70 |
+
"<|bg|>": 50292,
|
71 |
+
"<|bn|>": 50302,
|
72 |
+
"<|bo|>": 50347,
|
73 |
+
"<|br|>": 50309,
|
74 |
+
"<|bs|>": 50315,
|
75 |
+
"<|ca|>": 50270,
|
76 |
+
"<|cs|>": 50283,
|
77 |
+
"<|cy|>": 50297,
|
78 |
+
"<|da|>": 50285,
|
79 |
+
"<|de|>": 50261,
|
80 |
+
"<|el|>": 50281,
|
81 |
+
"<|en|>": 50259,
|
82 |
+
"<|es|>": 50262,
|
83 |
+
"<|et|>": 50307,
|
84 |
+
"<|eu|>": 50310,
|
85 |
+
"<|fa|>": 50300,
|
86 |
+
"<|fi|>": 50277,
|
87 |
+
"<|fo|>": 50338,
|
88 |
+
"<|fr|>": 50265,
|
89 |
+
"<|gl|>": 50319,
|
90 |
+
"<|gu|>": 50333,
|
91 |
+
"<|haw|>": 50352,
|
92 |
+
"<|ha|>": 50354,
|
93 |
+
"<|he|>": 50279,
|
94 |
+
"<|hi|>": 50276,
|
95 |
+
"<|hr|>": 50291,
|
96 |
+
"<|ht|>": 50339,
|
97 |
+
"<|hu|>": 50286,
|
98 |
+
"<|hy|>": 50312,
|
99 |
+
"<|id|>": 50275,
|
100 |
+
"<|is|>": 50311,
|
101 |
+
"<|it|>": 50274,
|
102 |
+
"<|ja|>": 50266,
|
103 |
+
"<|jw|>": 50356,
|
104 |
+
"<|ka|>": 50329,
|
105 |
+
"<|kk|>": 50316,
|
106 |
+
"<|km|>": 50323,
|
107 |
+
"<|kn|>": 50306,
|
108 |
+
"<|ko|>": 50264,
|
109 |
+
"<|la|>": 50294,
|
110 |
+
"<|lb|>": 50345,
|
111 |
+
"<|ln|>": 50353,
|
112 |
+
"<|lo|>": 50336,
|
113 |
+
"<|lt|>": 50293,
|
114 |
+
"<|lv|>": 50301,
|
115 |
+
"<|mg|>": 50349,
|
116 |
+
"<|mi|>": 50295,
|
117 |
+
"<|mk|>": 50308,
|
118 |
+
"<|ml|>": 50296,
|
119 |
+
"<|mn|>": 50314,
|
120 |
+
"<|mr|>": 50320,
|
121 |
+
"<|ms|>": 50282,
|
122 |
+
"<|mt|>": 50343,
|
123 |
+
"<|my|>": 50346,
|
124 |
+
"<|ne|>": 50313,
|
125 |
+
"<|nl|>": 50271,
|
126 |
+
"<|nn|>": 50342,
|
127 |
+
"<|no|>": 50288,
|
128 |
+
"<|oc|>": 50328,
|
129 |
+
"<|pa|>": 50321,
|
130 |
+
"<|pl|>": 50269,
|
131 |
+
"<|ps|>": 50340,
|
132 |
+
"<|pt|>": 50267,
|
133 |
+
"<|ro|>": 50284,
|
134 |
+
"<|ru|>": 50263,
|
135 |
+
"<|sa|>": 50344,
|
136 |
+
"<|sd|>": 50332,
|
137 |
+
"<|si|>": 50322,
|
138 |
+
"<|sk|>": 50298,
|
139 |
+
"<|sl|>": 50305,
|
140 |
+
"<|sn|>": 50324,
|
141 |
+
"<|so|>": 50326,
|
142 |
+
"<|sq|>": 50317,
|
143 |
+
"<|sr|>": 50303,
|
144 |
+
"<|su|>": 50357,
|
145 |
+
"<|sv|>": 50273,
|
146 |
+
"<|sw|>": 50318,
|
147 |
+
"<|ta|>": 50287,
|
148 |
+
"<|te|>": 50299,
|
149 |
+
"<|tg|>": 50331,
|
150 |
+
"<|th|>": 50289,
|
151 |
+
"<|tk|>": 50341,
|
152 |
+
"<|tl|>": 50348,
|
153 |
+
"<|tr|>": 50268,
|
154 |
+
"<|tt|>": 50351,
|
155 |
+
"<|uk|>": 50280,
|
156 |
+
"<|ur|>": 50290,
|
157 |
+
"<|uz|>": 50337,
|
158 |
+
"<|vi|>": 50278,
|
159 |
+
"<|yi|>": 50335,
|
160 |
+
"<|yo|>": 50325,
|
161 |
+
"<|zh|>": 50260
|
162 |
+
},
|
163 |
+
"max_initial_timestamp_index": 50,
|
164 |
+
"max_length": 448,
|
165 |
+
"no_timestamps_token_id": 50363,
|
166 |
+
"pad_token_id": 50257,
|
167 |
+
"prev_sot_token_id": 50361,
|
168 |
+
"return_timestamps": false,
|
169 |
+
"suppress_tokens": [
|
170 |
+
1,
|
171 |
+
2,
|
172 |
+
7,
|
173 |
+
8,
|
174 |
+
9,
|
175 |
+
10,
|
176 |
+
14,
|
177 |
+
25,
|
178 |
+
26,
|
179 |
+
27,
|
180 |
+
28,
|
181 |
+
29,
|
182 |
+
31,
|
183 |
+
58,
|
184 |
+
59,
|
185 |
+
60,
|
186 |
+
61,
|
187 |
+
62,
|
188 |
+
63,
|
189 |
+
90,
|
190 |
+
91,
|
191 |
+
92,
|
192 |
+
93,
|
193 |
+
359,
|
194 |
+
503,
|
195 |
+
522,
|
196 |
+
542,
|
197 |
+
873,
|
198 |
+
893,
|
199 |
+
902,
|
200 |
+
918,
|
201 |
+
922,
|
202 |
+
931,
|
203 |
+
1350,
|
204 |
+
1853,
|
205 |
+
1982,
|
206 |
+
2460,
|
207 |
+
2627,
|
208 |
+
3246,
|
209 |
+
3253,
|
210 |
+
3268,
|
211 |
+
3536,
|
212 |
+
3846,
|
213 |
+
3961,
|
214 |
+
4183,
|
215 |
+
4667,
|
216 |
+
6585,
|
217 |
+
6647,
|
218 |
+
7273,
|
219 |
+
9061,
|
220 |
+
9383,
|
221 |
+
10428,
|
222 |
+
10929,
|
223 |
+
11938,
|
224 |
+
12033,
|
225 |
+
12331,
|
226 |
+
12562,
|
227 |
+
13793,
|
228 |
+
14157,
|
229 |
+
14635,
|
230 |
+
15265,
|
231 |
+
15618,
|
232 |
+
16553,
|
233 |
+
16604,
|
234 |
+
18362,
|
235 |
+
18956,
|
236 |
+
20075,
|
237 |
+
21675,
|
238 |
+
22520,
|
239 |
+
26130,
|
240 |
+
26161,
|
241 |
+
26435,
|
242 |
+
28279,
|
243 |
+
29464,
|
244 |
+
31650,
|
245 |
+
32302,
|
246 |
+
32470,
|
247 |
+
36865,
|
248 |
+
42863,
|
249 |
+
47425,
|
250 |
+
49870,
|
251 |
+
50254,
|
252 |
+
50258,
|
253 |
+
50358,
|
254 |
+
50359,
|
255 |
+
50360,
|
256 |
+
50361,
|
257 |
+
50362
|
258 |
+
],
|
259 |
+
"task_to_id": {
|
260 |
+
"transcribe": 50359,
|
261 |
+
"translate": 50358
|
262 |
+
},
|
263 |
+
"transformers_version": "4.46.0.dev0"
|
264 |
+
}
|
merges.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
#version: 0.2
|
|
|
2 |
Ġ a
|
3 |
Ġt h
|
4 |
i n
|
|
|
1 |
#version: 0.2
|
2 |
+
Ġ t
|
3 |
Ġ a
|
4 |
Ġt h
|
5 |
i n
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51160e502a9753fabd3f154ffcebb40049941544eb344c4b8fc8243205072f73
|
3 |
+
size 966995080
|
preprocessor_config.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
run.sh
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
python run_speech_recognition_seq2seq_streaming.py \
|
2 |
--model_name_or_path="openai/whisper-small" \
|
3 |
-
--dataset_name="mozilla-foundation/
|
4 |
--dataset_config_name="eu" \
|
5 |
--language="basque" \
|
6 |
--train_split_name="train+validation" \
|
|
|
1 |
python run_speech_recognition_seq2seq_streaming.py \
|
2 |
--model_name_or_path="openai/whisper-small" \
|
3 |
+
--dataset_name="mozilla-foundation/common_voice_17_0" \
|
4 |
--dataset_config_name="eu" \
|
5 |
--language="basque" \
|
6 |
--train_split_name="train+validation" \
|
run_speech_recognition_seq2seq_streaming.py
CHANGED
@@ -274,7 +274,7 @@ def load_maybe_streaming_dataset(dataset_name, dataset_config_name, split="train
|
|
274 |
if "+" in split:
|
275 |
# load multiple splits separated by the `+` symbol with streaming mode
|
276 |
dataset_splits = [
|
277 |
-
load_dataset(dataset_name, dataset_config_name, split=split_name, streaming=streaming, **kwargs)
|
278 |
for split_name in split.split("+")
|
279 |
]
|
280 |
# interleave multiple splits to form one dataset
|
@@ -282,7 +282,7 @@ def load_maybe_streaming_dataset(dataset_name, dataset_config_name, split="train
|
|
282 |
return interleaved_dataset
|
283 |
else:
|
284 |
# load a single split *with* streaming mode
|
285 |
-
dataset = load_dataset(dataset_name, dataset_config_name, split=split, streaming=streaming, **kwargs)
|
286 |
return dataset
|
287 |
|
288 |
|
@@ -357,7 +357,8 @@ def main():
|
|
357 |
data_args.dataset_name,
|
358 |
data_args.dataset_config_name,
|
359 |
split=data_args.train_split_name,
|
360 |
-
|
|
|
361 |
streaming=data_args.streaming,
|
362 |
)
|
363 |
|
@@ -366,7 +367,7 @@ def main():
|
|
366 |
data_args.dataset_name,
|
367 |
data_args.dataset_config_name,
|
368 |
split=data_args.eval_split_name,
|
369 |
-
use_auth_token=True if model_args.use_auth_token else None,
|
370 |
streaming=data_args.streaming,
|
371 |
)
|
372 |
|
|
|
274 |
if "+" in split:
|
275 |
# load multiple splits separated by the `+` symbol with streaming mode
|
276 |
dataset_splits = [
|
277 |
+
load_dataset(dataset_name, dataset_config_name, split=split_name, streaming=streaming, trust_remote_code=True, **kwargs)
|
278 |
for split_name in split.split("+")
|
279 |
]
|
280 |
# interleave multiple splits to form one dataset
|
|
|
282 |
return interleaved_dataset
|
283 |
else:
|
284 |
# load a single split *with* streaming mode
|
285 |
+
dataset = load_dataset(dataset_name, dataset_config_name, split=split, streaming=streaming, trust_remote_code=True, **kwargs)
|
286 |
return dataset
|
287 |
|
288 |
|
|
|
357 |
data_args.dataset_name,
|
358 |
data_args.dataset_config_name,
|
359 |
split=data_args.train_split_name,
|
360 |
+
# xezpeleta
|
361 |
+
#use_auth_token=True if model_args.use_auth_token else None,
|
362 |
streaming=data_args.streaming,
|
363 |
)
|
364 |
|
|
|
367 |
data_args.dataset_name,
|
368 |
data_args.dataset_config_name,
|
369 |
split=data_args.eval_split_name,
|
370 |
+
#use_auth_token=True if model_args.use_auth_token else None,
|
371 |
streaming=data_args.streaming,
|
372 |
)
|
373 |
|
special_tokens_map.json
CHANGED
@@ -111,22 +111,28 @@
|
|
111 |
"bos_token": {
|
112 |
"content": "<|endoftext|>",
|
113 |
"lstrip": false,
|
114 |
-
"normalized":
|
115 |
"rstrip": false,
|
116 |
"single_word": false
|
117 |
},
|
118 |
"eos_token": {
|
119 |
"content": "<|endoftext|>",
|
120 |
"lstrip": false,
|
121 |
-
"normalized":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
"rstrip": false,
|
123 |
"single_word": false
|
124 |
},
|
125 |
-
"pad_token": "<|endoftext|>",
|
126 |
"unk_token": {
|
127 |
"content": "<|endoftext|>",
|
128 |
"lstrip": false,
|
129 |
-
"normalized":
|
130 |
"rstrip": false,
|
131 |
"single_word": false
|
132 |
}
|
|
|
111 |
"bos_token": {
|
112 |
"content": "<|endoftext|>",
|
113 |
"lstrip": false,
|
114 |
+
"normalized": false,
|
115 |
"rstrip": false,
|
116 |
"single_word": false
|
117 |
},
|
118 |
"eos_token": {
|
119 |
"content": "<|endoftext|>",
|
120 |
"lstrip": false,
|
121 |
+
"normalized": false,
|
122 |
+
"rstrip": false,
|
123 |
+
"single_word": false
|
124 |
+
},
|
125 |
+
"pad_token": {
|
126 |
+
"content": "<|endoftext|>",
|
127 |
+
"lstrip": false,
|
128 |
+
"normalized": false,
|
129 |
"rstrip": false,
|
130 |
"single_word": false
|
131 |
},
|
|
|
132 |
"unk_token": {
|
133 |
"content": "<|endoftext|>",
|
134 |
"lstrip": false,
|
135 |
+
"normalized": false,
|
136 |
"rstrip": false,
|
137 |
"single_word": false
|
138 |
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1e5015f6997af49dd4702cbba394870a18c74f3b62b5a4ffcc8bf3aa71cc41ee
|
3 |
+
size 5368
|
vocab.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|