IMvision12 commited on
Commit
dac37f8
·
verified ·
1 Parent(s): d89e632

Migrate to zeromodels (rename kf_*.json -> zm_*.json, fix refs in config + README, ensure tag + badge)

Browse files
README.md CHANGED
@@ -2,10 +2,10 @@
2
  pipeline_tag: automatic-speech-recognition
3
  license: apache-2.0
4
  base_model: openai/whisper-large-v2
5
- library_name: kerasformers
6
  tags:
7
  - keras
8
- - kerasformers
9
  - whisper
10
  - automatic-speech-recognition
11
  - audio
@@ -16,13 +16,13 @@ tags:
16
  - tf
17
  ---
18
 
19
- ## ***See [our collection](https://huggingface.co/collections/kerasformers/whisper-6a6ac856710a03d7d2e207b6) for all versions of Whisper.***
20
 
21
  # Run Whisper with Keras 3: JAX, PyTorch, or TensorFlow
22
 
23
- [![GitHub](https://img.shields.io/badge/GitHub-KerasFormers-black?logo=github)](https://github.com/IMvision12/KerasFormers) [![Docs](https://img.shields.io/badge/Docs-Whisper-blue)](https://imvision12.github.io/KerasFormers/whisper/) [![Collection](https://img.shields.io/badge/HF-Whisper%20collection-yellow)](https://huggingface.co/collections/kerasformers/whisper-6a6ac856710a03d7d2e207b6)
24
 
25
- # kerasformers/whisper_large_v2
26
 
27
  Paper: [Robust Speech Recognition via Large-Scale Weak Supervision (arXiv:2212.04356)](https://arxiv.org/abs/2212.04356) · [HF Papers](https://huggingface.co/papers/2212.04356)
28
 
@@ -30,7 +30,7 @@ Whisper is a **multilingual** encoder-decoder ASR model trained on large-scale w
30
 
31
  For more details on the model, please go to the upstream [model card](https://huggingface.co/openai/whisper-large-v2).
32
 
33
- Pure-**Keras 3** conversion of [`openai/whisper-large-v2`](https://huggingface.co/openai/whisper-large-v2) for [kerasformers](https://github.com/IMvision12/KerasFormers). One implementation runs unmodified on **TensorFlow / Torch / JAX**.
34
 
35
  This is an **ASR** checkpoint (`WhisperConditionalGenerate`, 1.55B).
36
 
@@ -41,13 +41,13 @@ import os
41
  os.environ["KERAS_BACKEND"] = "torch" # or "jax" / "tensorflow"
42
 
43
  import soundfile as sf
44
- from kerasformers.models.whisper import (
45
  WhisperProcessor,
46
  WhisperConditionalGenerate,
47
  )
48
 
49
- model = WhisperConditionalGenerate.from_weights("kerasformers/whisper_large_v2")
50
- processor = WhisperProcessor.from_weights("kerasformers/whisper_large_v2")
51
 
52
  audio, sr = sf.read("your_audio.wav", dtype="float32") # 16 kHz mono
53
  # task="transcribe" keeps the source language; "translate" -> English.
@@ -55,25 +55,25 @@ text = model.generate(audio, processor, language="en", task="transcribe")
55
  print(repr(text[0]))
56
  ```
57
 
58
- Load any Whisper variant the same way with `from_weights("kerasformers/<variant>")`:
59
 
60
  | Variant | Hub | Notes |
61
  |---|---|---|
62
- | `whisper_tiny` | [`kerasformers/whisper_tiny`](https://huggingface.co/kerasformers/whisper_tiny) | 39M |
63
- | `whisper_base` | [`kerasformers/whisper_base`](https://huggingface.co/kerasformers/whisper_base) | 74M |
64
- | `whisper_small` | [`kerasformers/whisper_small`](https://huggingface.co/kerasformers/whisper_small) | 244M |
65
- | `whisper_medium` | [`kerasformers/whisper_medium`](https://huggingface.co/kerasformers/whisper_medium) | 769M |
66
- | `whisper_large` | [`kerasformers/whisper_large`](https://huggingface.co/kerasformers/whisper_large) | 1.55B |
67
- | `whisper_large_v2` | [`kerasformers/whisper_large_v2`](https://huggingface.co/kerasformers/whisper_large_v2) | 1.55B |
68
- | `whisper_large_v3` | [`kerasformers/whisper_large_v3`](https://huggingface.co/kerasformers/whisper_large_v3) | 128 mel bins |
69
- | `whisper_large_v3_turbo` | [`kerasformers/whisper_large_v3_turbo`](https://huggingface.co/kerasformers/whisper_large_v3_turbo) | 4 decoder layers |
70
 
71
  ## Tips
72
 
73
- - Set `KERAS_BACKEND` **before** importing Keras / kerasformers.
74
  - Prefer `WhisperProcessor.from_weights(...)` so mel bins match the variant (v3 uses 128).
75
  - Clips are padded to a 30 s window; chunk longer audio yourself.
76
- - See [Whisper docs](https://imvision12.github.io/KerasFormers/whisper/) and [Loading Weights](https://imvision12.github.io/KerasFormers/loading_weights/).
77
  - Community / upstream safetensors still work via the `hf:` prefix, e.g. `WhisperConditionalGenerate.from_weights("hf:openai/whisper-large-v2")`.
78
 
79
  ## Special Thanks
 
2
  pipeline_tag: automatic-speech-recognition
3
  license: apache-2.0
4
  base_model: openai/whisper-large-v2
5
+ library_name: zeromodels
6
  tags:
7
  - keras
8
+ - zeromodels
9
  - whisper
10
  - automatic-speech-recognition
11
  - audio
 
16
  - tf
17
  ---
18
 
19
+ ## ***See [our collection](https://huggingface.co/collections/zeromodels/whisper-6a6ac856710a03d7d2e207b6) for all versions of Whisper.***
20
 
21
  # Run Whisper with Keras 3: JAX, PyTorch, or TensorFlow
22
 
23
+ [![GitHub](https://img.shields.io/badge/GitHub-ZeroModels-black?logo=github)](https://github.com/IMvision12/ZeroModels) [![Docs](https://img.shields.io/badge/Docs-Whisper-blue)](https://imvision12.github.io/ZeroModels/whisper/) [![Collection](https://img.shields.io/badge/HF-Whisper%20collection-yellow)](https://huggingface.co/collections/zeromodels/whisper-6a6ac856710a03d7d2e207b6)
24
 
25
+ # zeromodels/whisper_large_v2
26
 
27
  Paper: [Robust Speech Recognition via Large-Scale Weak Supervision (arXiv:2212.04356)](https://arxiv.org/abs/2212.04356) · [HF Papers](https://huggingface.co/papers/2212.04356)
28
 
 
30
 
31
  For more details on the model, please go to the upstream [model card](https://huggingface.co/openai/whisper-large-v2).
32
 
33
+ Pure-**Keras 3** conversion of [`openai/whisper-large-v2`](https://huggingface.co/openai/whisper-large-v2) for [zeromodels](https://github.com/IMvision12/ZeroModels). One implementation runs unmodified on **TensorFlow / Torch / JAX**.
34
 
35
  This is an **ASR** checkpoint (`WhisperConditionalGenerate`, 1.55B).
36
 
 
41
  os.environ["KERAS_BACKEND"] = "torch" # or "jax" / "tensorflow"
42
 
43
  import soundfile as sf
44
+ from zeromodels.models.whisper import (
45
  WhisperProcessor,
46
  WhisperConditionalGenerate,
47
  )
48
 
49
+ model = WhisperConditionalGenerate.from_weights("zeromodels/whisper_large_v2")
50
+ processor = WhisperProcessor.from_weights("zeromodels/whisper_large_v2")
51
 
52
  audio, sr = sf.read("your_audio.wav", dtype="float32") # 16 kHz mono
53
  # task="transcribe" keeps the source language; "translate" -> English.
 
55
  print(repr(text[0]))
56
  ```
57
 
58
+ Load any Whisper variant the same way with `from_weights("zeromodels/<variant>")`:
59
 
60
  | Variant | Hub | Notes |
61
  |---|---|---|
62
+ | `whisper_tiny` | [`zeromodels/whisper_tiny`](https://huggingface.co/zeromodels/whisper_tiny) | 39M |
63
+ | `whisper_base` | [`zeromodels/whisper_base`](https://huggingface.co/zeromodels/whisper_base) | 74M |
64
+ | `whisper_small` | [`zeromodels/whisper_small`](https://huggingface.co/zeromodels/whisper_small) | 244M |
65
+ | `whisper_medium` | [`zeromodels/whisper_medium`](https://huggingface.co/zeromodels/whisper_medium) | 769M |
66
+ | `whisper_large` | [`zeromodels/whisper_large`](https://huggingface.co/zeromodels/whisper_large) | 1.55B |
67
+ | `whisper_large_v2` | [`zeromodels/whisper_large_v2`](https://huggingface.co/zeromodels/whisper_large_v2) | 1.55B |
68
+ | `whisper_large_v3` | [`zeromodels/whisper_large_v3`](https://huggingface.co/zeromodels/whisper_large_v3) | 128 mel bins |
69
+ | `whisper_large_v3_turbo` | [`zeromodels/whisper_large_v3_turbo`](https://huggingface.co/zeromodels/whisper_large_v3_turbo) | 4 decoder layers |
70
 
71
  ## Tips
72
 
73
+ - Set `KERAS_BACKEND` **before** importing Keras / zeromodels.
74
  - Prefer `WhisperProcessor.from_weights(...)` so mel bins match the variant (v3 uses 128).
75
  - Clips are padded to a 30 s window; chunk longer audio yourself.
76
+ - See [Whisper docs](https://imvision12.github.io/ZeroModels/whisper/) and [Loading Weights](https://imvision12.github.io/ZeroModels/loading_weights/).
77
  - Community / upstream safetensors still work via the `hf:` prefix, e.g. `WhisperConditionalGenerate.from_weights("hf:openai/whisper-large-v2")`.
78
 
79
  ## Special Thanks
kf_config.json → zm_config.json RENAMED
@@ -1,344 +1,344 @@
1
- {
2
- "library_name": "kerasformers",
3
- "kerasformers_version": "1.2.1",
4
- "model_module": "kerasformers.models.whisper",
5
- "model_class": "WhisperModel",
6
- "variant": "whisper_large_v2",
7
- "weights": "model.weights.json",
8
- "schema_version": 2,
9
- "weight_dtype": "float32",
10
- "model_type": "whisper",
11
- "audio_config": {
12
- "num_layers": 32,
13
- "attention_heads": 20,
14
- "ffn_dim": 5120,
15
- "num_mel_bins": 80,
16
- "max_source_positions": 1500
17
- },
18
- "text_config": {
19
- "num_layers": 32,
20
- "attention_heads": 20,
21
- "ffn_dim": 5120,
22
- "vocab_size": 51865,
23
- "max_target_positions": 448
24
- },
25
- "hidden_dim": 1280,
26
- "activation_function": "gelu",
27
- "layer_norm_eps": 1e-05,
28
- "scale_embedding": false,
29
- "generate_args": {
30
- "alignment_heads": [
31
- [
32
- 10,
33
- 12
34
- ],
35
- [
36
- 13,
37
- 17
38
- ],
39
- [
40
- 16,
41
- 11
42
- ],
43
- [
44
- 16,
45
- 12
46
- ],
47
- [
48
- 16,
49
- 13
50
- ],
51
- [
52
- 17,
53
- 15
54
- ],
55
- [
56
- 17,
57
- 16
58
- ],
59
- [
60
- 18,
61
- 4
62
- ],
63
- [
64
- 18,
65
- 11
66
- ],
67
- [
68
- 18,
69
- 19
70
- ],
71
- [
72
- 19,
73
- 11
74
- ],
75
- [
76
- 21,
77
- 2
78
- ],
79
- [
80
- 21,
81
- 3
82
- ],
83
- [
84
- 22,
85
- 3
86
- ],
87
- [
88
- 22,
89
- 9
90
- ],
91
- [
92
- 22,
93
- 12
94
- ],
95
- [
96
- 23,
97
- 5
98
- ],
99
- [
100
- 23,
101
- 7
102
- ],
103
- [
104
- 23,
105
- 13
106
- ],
107
- [
108
- 25,
109
- 5
110
- ],
111
- [
112
- 26,
113
- 1
114
- ],
115
- [
116
- 26,
117
- 12
118
- ],
119
- [
120
- 27,
121
- 15
122
- ]
123
- ],
124
- "begin_suppress_tokens": [
125
- 220,
126
- 50257
127
- ],
128
- "bos_token_id": 50257,
129
- "decoder_start_token_id": 50258,
130
- "eos_token_id": 50257,
131
- "forced_decoder_ids": [
132
- [
133
- 1,
134
- null
135
- ],
136
- [
137
- 2,
138
- 50359
139
- ]
140
- ],
141
- "is_multilingual": true,
142
- "lang_to_id": {
143
- "<|af|>": 50327,
144
- "<|am|>": 50334,
145
- "<|ar|>": 50272,
146
- "<|as|>": 50350,
147
- "<|az|>": 50304,
148
- "<|ba|>": 50355,
149
- "<|be|>": 50330,
150
- "<|bg|>": 50292,
151
- "<|bn|>": 50302,
152
- "<|bo|>": 50347,
153
- "<|br|>": 50309,
154
- "<|bs|>": 50315,
155
- "<|ca|>": 50270,
156
- "<|cs|>": 50283,
157
- "<|cy|>": 50297,
158
- "<|da|>": 50285,
159
- "<|de|>": 50261,
160
- "<|el|>": 50281,
161
- "<|en|>": 50259,
162
- "<|es|>": 50262,
163
- "<|et|>": 50307,
164
- "<|eu|>": 50310,
165
- "<|fa|>": 50300,
166
- "<|fi|>": 50277,
167
- "<|fo|>": 50338,
168
- "<|fr|>": 50265,
169
- "<|gl|>": 50319,
170
- "<|gu|>": 50333,
171
- "<|haw|>": 50352,
172
- "<|ha|>": 50354,
173
- "<|he|>": 50279,
174
- "<|hi|>": 50276,
175
- "<|hr|>": 50291,
176
- "<|ht|>": 50339,
177
- "<|hu|>": 50286,
178
- "<|hy|>": 50312,
179
- "<|id|>": 50275,
180
- "<|is|>": 50311,
181
- "<|it|>": 50274,
182
- "<|ja|>": 50266,
183
- "<|jw|>": 50356,
184
- "<|ka|>": 50329,
185
- "<|kk|>": 50316,
186
- "<|km|>": 50323,
187
- "<|kn|>": 50306,
188
- "<|ko|>": 50264,
189
- "<|la|>": 50294,
190
- "<|lb|>": 50345,
191
- "<|ln|>": 50353,
192
- "<|lo|>": 50336,
193
- "<|lt|>": 50293,
194
- "<|lv|>": 50301,
195
- "<|mg|>": 50349,
196
- "<|mi|>": 50295,
197
- "<|mk|>": 50308,
198
- "<|ml|>": 50296,
199
- "<|mn|>": 50314,
200
- "<|mr|>": 50320,
201
- "<|ms|>": 50282,
202
- "<|mt|>": 50343,
203
- "<|my|>": 50346,
204
- "<|ne|>": 50313,
205
- "<|nl|>": 50271,
206
- "<|nn|>": 50342,
207
- "<|no|>": 50288,
208
- "<|oc|>": 50328,
209
- "<|pa|>": 50321,
210
- "<|pl|>": 50269,
211
- "<|ps|>": 50340,
212
- "<|pt|>": 50267,
213
- "<|ro|>": 50284,
214
- "<|ru|>": 50263,
215
- "<|sa|>": 50344,
216
- "<|sd|>": 50332,
217
- "<|si|>": 50322,
218
- "<|sk|>": 50298,
219
- "<|sl|>": 50305,
220
- "<|sn|>": 50324,
221
- "<|so|>": 50326,
222
- "<|sq|>": 50317,
223
- "<|sr|>": 50303,
224
- "<|su|>": 50357,
225
- "<|sv|>": 50273,
226
- "<|sw|>": 50318,
227
- "<|ta|>": 50287,
228
- "<|te|>": 50299,
229
- "<|tg|>": 50331,
230
- "<|th|>": 50289,
231
- "<|tk|>": 50341,
232
- "<|tl|>": 50348,
233
- "<|tr|>": 50268,
234
- "<|tt|>": 50351,
235
- "<|uk|>": 50280,
236
- "<|ur|>": 50290,
237
- "<|uz|>": 50337,
238
- "<|vi|>": 50278,
239
- "<|yi|>": 50335,
240
- "<|yo|>": 50325,
241
- "<|zh|>": 50260
242
- },
243
- "max_initial_timestamp_index": 50,
244
- "max_length": 448,
245
- "no_timestamps_token_id": 50363,
246
- "pad_token_id": 50257,
247
- "prev_sot_token_id": 50361,
248
- "return_timestamps": false,
249
- "suppress_tokens": [
250
- 1,
251
- 2,
252
- 7,
253
- 8,
254
- 9,
255
- 10,
256
- 14,
257
- 25,
258
- 26,
259
- 27,
260
- 28,
261
- 29,
262
- 31,
263
- 58,
264
- 59,
265
- 60,
266
- 61,
267
- 62,
268
- 63,
269
- 90,
270
- 91,
271
- 92,
272
- 93,
273
- 359,
274
- 503,
275
- 522,
276
- 542,
277
- 873,
278
- 893,
279
- 902,
280
- 918,
281
- 922,
282
- 931,
283
- 1350,
284
- 1853,
285
- 1982,
286
- 2460,
287
- 2627,
288
- 3246,
289
- 3253,
290
- 3268,
291
- 3536,
292
- 3846,
293
- 3961,
294
- 4183,
295
- 4667,
296
- 6585,
297
- 6647,
298
- 7273,
299
- 9061,
300
- 9383,
301
- 10428,
302
- 10929,
303
- 11938,
304
- 12033,
305
- 12331,
306
- 12562,
307
- 13793,
308
- 14157,
309
- 14635,
310
- 15265,
311
- 15618,
312
- 16553,
313
- 16604,
314
- 18362,
315
- 18956,
316
- 20075,
317
- 21675,
318
- 22520,
319
- 26130,
320
- 26161,
321
- 26435,
322
- 28279,
323
- 29464,
324
- 31650,
325
- 32302,
326
- 32470,
327
- 36865,
328
- 42863,
329
- 47425,
330
- 49870,
331
- 50254,
332
- 50258,
333
- 50358,
334
- 50359,
335
- 50360,
336
- 50361,
337
- 50362
338
- ],
339
- "task_to_id": {
340
- "transcribe": 50359,
341
- "translate": 50358
342
- }
343
- }
344
  }
 
1
+ {
2
+ "library_name": "zeromodels",
3
+ "zeromodels_version": "1.2.1",
4
+ "model_module": "zeromodels.models.whisper",
5
+ "model_class": "WhisperModel",
6
+ "variant": "whisper_large_v2",
7
+ "weights": "model.weights.json",
8
+ "schema_version": 2,
9
+ "weight_dtype": "float32",
10
+ "model_type": "whisper",
11
+ "audio_config": {
12
+ "num_layers": 32,
13
+ "attention_heads": 20,
14
+ "ffn_dim": 5120,
15
+ "num_mel_bins": 80,
16
+ "max_source_positions": 1500
17
+ },
18
+ "text_config": {
19
+ "num_layers": 32,
20
+ "attention_heads": 20,
21
+ "ffn_dim": 5120,
22
+ "vocab_size": 51865,
23
+ "max_target_positions": 448
24
+ },
25
+ "hidden_dim": 1280,
26
+ "activation_function": "gelu",
27
+ "layer_norm_eps": 1e-05,
28
+ "scale_embedding": false,
29
+ "generate_args": {
30
+ "alignment_heads": [
31
+ [
32
+ 10,
33
+ 12
34
+ ],
35
+ [
36
+ 13,
37
+ 17
38
+ ],
39
+ [
40
+ 16,
41
+ 11
42
+ ],
43
+ [
44
+ 16,
45
+ 12
46
+ ],
47
+ [
48
+ 16,
49
+ 13
50
+ ],
51
+ [
52
+ 17,
53
+ 15
54
+ ],
55
+ [
56
+ 17,
57
+ 16
58
+ ],
59
+ [
60
+ 18,
61
+ 4
62
+ ],
63
+ [
64
+ 18,
65
+ 11
66
+ ],
67
+ [
68
+ 18,
69
+ 19
70
+ ],
71
+ [
72
+ 19,
73
+ 11
74
+ ],
75
+ [
76
+ 21,
77
+ 2
78
+ ],
79
+ [
80
+ 21,
81
+ 3
82
+ ],
83
+ [
84
+ 22,
85
+ 3
86
+ ],
87
+ [
88
+ 22,
89
+ 9
90
+ ],
91
+ [
92
+ 22,
93
+ 12
94
+ ],
95
+ [
96
+ 23,
97
+ 5
98
+ ],
99
+ [
100
+ 23,
101
+ 7
102
+ ],
103
+ [
104
+ 23,
105
+ 13
106
+ ],
107
+ [
108
+ 25,
109
+ 5
110
+ ],
111
+ [
112
+ 26,
113
+ 1
114
+ ],
115
+ [
116
+ 26,
117
+ 12
118
+ ],
119
+ [
120
+ 27,
121
+ 15
122
+ ]
123
+ ],
124
+ "begin_suppress_tokens": [
125
+ 220,
126
+ 50257
127
+ ],
128
+ "bos_token_id": 50257,
129
+ "decoder_start_token_id": 50258,
130
+ "eos_token_id": 50257,
131
+ "forced_decoder_ids": [
132
+ [
133
+ 1,
134
+ null
135
+ ],
136
+ [
137
+ 2,
138
+ 50359
139
+ ]
140
+ ],
141
+ "is_multilingual": true,
142
+ "lang_to_id": {
143
+ "<|af|>": 50327,
144
+ "<|am|>": 50334,
145
+ "<|ar|>": 50272,
146
+ "<|as|>": 50350,
147
+ "<|az|>": 50304,
148
+ "<|ba|>": 50355,
149
+ "<|be|>": 50330,
150
+ "<|bg|>": 50292,
151
+ "<|bn|>": 50302,
152
+ "<|bo|>": 50347,
153
+ "<|br|>": 50309,
154
+ "<|bs|>": 50315,
155
+ "<|ca|>": 50270,
156
+ "<|cs|>": 50283,
157
+ "<|cy|>": 50297,
158
+ "<|da|>": 50285,
159
+ "<|de|>": 50261,
160
+ "<|el|>": 50281,
161
+ "<|en|>": 50259,
162
+ "<|es|>": 50262,
163
+ "<|et|>": 50307,
164
+ "<|eu|>": 50310,
165
+ "<|fa|>": 50300,
166
+ "<|fi|>": 50277,
167
+ "<|fo|>": 50338,
168
+ "<|fr|>": 50265,
169
+ "<|gl|>": 50319,
170
+ "<|gu|>": 50333,
171
+ "<|haw|>": 50352,
172
+ "<|ha|>": 50354,
173
+ "<|he|>": 50279,
174
+ "<|hi|>": 50276,
175
+ "<|hr|>": 50291,
176
+ "<|ht|>": 50339,
177
+ "<|hu|>": 50286,
178
+ "<|hy|>": 50312,
179
+ "<|id|>": 50275,
180
+ "<|is|>": 50311,
181
+ "<|it|>": 50274,
182
+ "<|ja|>": 50266,
183
+ "<|jw|>": 50356,
184
+ "<|ka|>": 50329,
185
+ "<|kk|>": 50316,
186
+ "<|km|>": 50323,
187
+ "<|kn|>": 50306,
188
+ "<|ko|>": 50264,
189
+ "<|la|>": 50294,
190
+ "<|lb|>": 50345,
191
+ "<|ln|>": 50353,
192
+ "<|lo|>": 50336,
193
+ "<|lt|>": 50293,
194
+ "<|lv|>": 50301,
195
+ "<|mg|>": 50349,
196
+ "<|mi|>": 50295,
197
+ "<|mk|>": 50308,
198
+ "<|ml|>": 50296,
199
+ "<|mn|>": 50314,
200
+ "<|mr|>": 50320,
201
+ "<|ms|>": 50282,
202
+ "<|mt|>": 50343,
203
+ "<|my|>": 50346,
204
+ "<|ne|>": 50313,
205
+ "<|nl|>": 50271,
206
+ "<|nn|>": 50342,
207
+ "<|no|>": 50288,
208
+ "<|oc|>": 50328,
209
+ "<|pa|>": 50321,
210
+ "<|pl|>": 50269,
211
+ "<|ps|>": 50340,
212
+ "<|pt|>": 50267,
213
+ "<|ro|>": 50284,
214
+ "<|ru|>": 50263,
215
+ "<|sa|>": 50344,
216
+ "<|sd|>": 50332,
217
+ "<|si|>": 50322,
218
+ "<|sk|>": 50298,
219
+ "<|sl|>": 50305,
220
+ "<|sn|>": 50324,
221
+ "<|so|>": 50326,
222
+ "<|sq|>": 50317,
223
+ "<|sr|>": 50303,
224
+ "<|su|>": 50357,
225
+ "<|sv|>": 50273,
226
+ "<|sw|>": 50318,
227
+ "<|ta|>": 50287,
228
+ "<|te|>": 50299,
229
+ "<|tg|>": 50331,
230
+ "<|th|>": 50289,
231
+ "<|tk|>": 50341,
232
+ "<|tl|>": 50348,
233
+ "<|tr|>": 50268,
234
+ "<|tt|>": 50351,
235
+ "<|uk|>": 50280,
236
+ "<|ur|>": 50290,
237
+ "<|uz|>": 50337,
238
+ "<|vi|>": 50278,
239
+ "<|yi|>": 50335,
240
+ "<|yo|>": 50325,
241
+ "<|zh|>": 50260
242
+ },
243
+ "max_initial_timestamp_index": 50,
244
+ "max_length": 448,
245
+ "no_timestamps_token_id": 50363,
246
+ "pad_token_id": 50257,
247
+ "prev_sot_token_id": 50361,
248
+ "return_timestamps": false,
249
+ "suppress_tokens": [
250
+ 1,
251
+ 2,
252
+ 7,
253
+ 8,
254
+ 9,
255
+ 10,
256
+ 14,
257
+ 25,
258
+ 26,
259
+ 27,
260
+ 28,
261
+ 29,
262
+ 31,
263
+ 58,
264
+ 59,
265
+ 60,
266
+ 61,
267
+ 62,
268
+ 63,
269
+ 90,
270
+ 91,
271
+ 92,
272
+ 93,
273
+ 359,
274
+ 503,
275
+ 522,
276
+ 542,
277
+ 873,
278
+ 893,
279
+ 902,
280
+ 918,
281
+ 922,
282
+ 931,
283
+ 1350,
284
+ 1853,
285
+ 1982,
286
+ 2460,
287
+ 2627,
288
+ 3246,
289
+ 3253,
290
+ 3268,
291
+ 3536,
292
+ 3846,
293
+ 3961,
294
+ 4183,
295
+ 4667,
296
+ 6585,
297
+ 6647,
298
+ 7273,
299
+ 9061,
300
+ 9383,
301
+ 10428,
302
+ 10929,
303
+ 11938,
304
+ 12033,
305
+ 12331,
306
+ 12562,
307
+ 13793,
308
+ 14157,
309
+ 14635,
310
+ 15265,
311
+ 15618,
312
+ 16553,
313
+ 16604,
314
+ 18362,
315
+ 18956,
316
+ 20075,
317
+ 21675,
318
+ 22520,
319
+ 26130,
320
+ 26161,
321
+ 26435,
322
+ 28279,
323
+ 29464,
324
+ 31650,
325
+ 32302,
326
+ 32470,
327
+ 36865,
328
+ 42863,
329
+ 47425,
330
+ 49870,
331
+ 50254,
332
+ 50258,
333
+ 50358,
334
+ 50359,
335
+ 50360,
336
+ 50361,
337
+ 50362
338
+ ],
339
+ "task_to_id": {
340
+ "transcribe": 50359,
341
+ "translate": 50358
342
+ }
343
+ }
344
  }
kf_preprocessor.json → zm_preprocessor.json RENAMED
@@ -1,12 +1,12 @@
1
- {
2
- "library_name": "kerasformers",
3
- "kerasformers_version": "1.1.3",
4
- "preprocessor_module": "kerasformers.models.whisper",
5
- "preprocessor_class": "WhisperFeatureExtractor",
6
- "variant": "whisper_large_v2",
7
- "sampling_rate": 16000,
8
- "n_fft": 400,
9
- "hop_length": 160,
10
- "n_mels": 80,
11
- "chunk_length": 30
12
  }
 
1
+ {
2
+ "library_name": "zeromodels",
3
+ "zeromodels_version": "1.1.3",
4
+ "preprocessor_module": "zeromodels.models.whisper",
5
+ "preprocessor_class": "WhisperFeatureExtractor",
6
+ "variant": "whisper_large_v2",
7
+ "sampling_rate": 16000,
8
+ "n_fft": 400,
9
+ "hop_length": 160,
10
+ "n_mels": 80,
11
+ "chunk_length": 30
12
  }