IMvision12 commited on
Commit
fa52266
·
verified ·
1 Parent(s): d65b0fc

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-medium
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_medium
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-medium).
32
 
33
- Pure-**Keras 3** conversion of [`openai/whisper-medium`](https://huggingface.co/openai/whisper-medium) for [kerasformers](https://github.com/IMvision12/KerasFormers). One implementation runs unmodified on **TensorFlow / Torch / JAX**.
34
 
35
  This is an **ASR** checkpoint (`WhisperConditionalGenerate`, 769M).
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_medium")
50
- processor = WhisperProcessor.from_weights("kerasformers/whisper_medium")
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-medium")`.
78
 
79
  ## Special Thanks
 
2
  pipeline_tag: automatic-speech-recognition
3
  license: apache-2.0
4
  base_model: openai/whisper-medium
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_medium
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-medium).
32
 
33
+ Pure-**Keras 3** conversion of [`openai/whisper-medium`](https://huggingface.co/openai/whisper-medium) for [zeromodels](https://github.com/IMvision12/ZeroModels). One implementation runs unmodified on **TensorFlow / Torch / JAX**.
34
 
35
  This is an **ASR** checkpoint (`WhisperConditionalGenerate`, 769M).
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_medium")
50
+ processor = WhisperProcessor.from_weights("zeromodels/whisper_medium")
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-medium")`.
78
 
79
  ## Special Thanks
kf_config.json → zm_config.json RENAMED
@@ -1,276 +1,276 @@
1
- {
2
- "library_name": "kerasformers",
3
- "kerasformers_version": "1.2.1",
4
- "model_module": "kerasformers.models.whisper",
5
- "model_class": "WhisperModel",
6
- "variant": "whisper_medium",
7
- "weights": "model.weights.json",
8
- "schema_version": 2,
9
- "weight_dtype": "float32",
10
- "model_type": "whisper",
11
- "audio_config": {
12
- "num_layers": 24,
13
- "attention_heads": 16,
14
- "ffn_dim": 4096,
15
- "num_mel_bins": 80,
16
- "max_source_positions": 1500
17
- },
18
- "text_config": {
19
- "num_layers": 24,
20
- "attention_heads": 16,
21
- "ffn_dim": 4096,
22
- "vocab_size": 51865,
23
- "max_target_positions": 448
24
- },
25
- "hidden_dim": 1024,
26
- "activation_function": "gelu",
27
- "layer_norm_eps": 1e-05,
28
- "scale_embedding": false,
29
- "generate_args": {
30
- "alignment_heads": [
31
- [
32
- 13,
33
- 15
34
- ],
35
- [
36
- 15,
37
- 4
38
- ],
39
- [
40
- 15,
41
- 15
42
- ],
43
- [
44
- 16,
45
- 1
46
- ],
47
- [
48
- 20,
49
- 0
50
- ],
51
- [
52
- 23,
53
- 4
54
- ]
55
- ],
56
- "begin_suppress_tokens": [
57
- 220,
58
- 50257
59
- ],
60
- "bos_token_id": 50257,
61
- "decoder_start_token_id": 50258,
62
- "eos_token_id": 50257,
63
- "forced_decoder_ids": [
64
- [
65
- 1,
66
- null
67
- ],
68
- [
69
- 2,
70
- 50359
71
- ]
72
- ],
73
- "is_multilingual": true,
74
- "lang_to_id": {
75
- "<|af|>": 50327,
76
- "<|am|>": 50334,
77
- "<|ar|>": 50272,
78
- "<|as|>": 50350,
79
- "<|az|>": 50304,
80
- "<|ba|>": 50355,
81
- "<|be|>": 50330,
82
- "<|bg|>": 50292,
83
- "<|bn|>": 50302,
84
- "<|bo|>": 50347,
85
- "<|br|>": 50309,
86
- "<|bs|>": 50315,
87
- "<|ca|>": 50270,
88
- "<|cs|>": 50283,
89
- "<|cy|>": 50297,
90
- "<|da|>": 50285,
91
- "<|de|>": 50261,
92
- "<|el|>": 50281,
93
- "<|en|>": 50259,
94
- "<|es|>": 50262,
95
- "<|et|>": 50307,
96
- "<|eu|>": 50310,
97
- "<|fa|>": 50300,
98
- "<|fi|>": 50277,
99
- "<|fo|>": 50338,
100
- "<|fr|>": 50265,
101
- "<|gl|>": 50319,
102
- "<|gu|>": 50333,
103
- "<|haw|>": 50352,
104
- "<|ha|>": 50354,
105
- "<|he|>": 50279,
106
- "<|hi|>": 50276,
107
- "<|hr|>": 50291,
108
- "<|ht|>": 50339,
109
- "<|hu|>": 50286,
110
- "<|hy|>": 50312,
111
- "<|id|>": 50275,
112
- "<|is|>": 50311,
113
- "<|it|>": 50274,
114
- "<|ja|>": 50266,
115
- "<|jw|>": 50356,
116
- "<|ka|>": 50329,
117
- "<|kk|>": 50316,
118
- "<|km|>": 50323,
119
- "<|kn|>": 50306,
120
- "<|ko|>": 50264,
121
- "<|la|>": 50294,
122
- "<|lb|>": 50345,
123
- "<|ln|>": 50353,
124
- "<|lo|>": 50336,
125
- "<|lt|>": 50293,
126
- "<|lv|>": 50301,
127
- "<|mg|>": 50349,
128
- "<|mi|>": 50295,
129
- "<|mk|>": 50308,
130
- "<|ml|>": 50296,
131
- "<|mn|>": 50314,
132
- "<|mr|>": 50320,
133
- "<|ms|>": 50282,
134
- "<|mt|>": 50343,
135
- "<|my|>": 50346,
136
- "<|ne|>": 50313,
137
- "<|nl|>": 50271,
138
- "<|nn|>": 50342,
139
- "<|no|>": 50288,
140
- "<|oc|>": 50328,
141
- "<|pa|>": 50321,
142
- "<|pl|>": 50269,
143
- "<|ps|>": 50340,
144
- "<|pt|>": 50267,
145
- "<|ro|>": 50284,
146
- "<|ru|>": 50263,
147
- "<|sa|>": 50344,
148
- "<|sd|>": 50332,
149
- "<|si|>": 50322,
150
- "<|sk|>": 50298,
151
- "<|sl|>": 50305,
152
- "<|sn|>": 50324,
153
- "<|so|>": 50326,
154
- "<|sq|>": 50317,
155
- "<|sr|>": 50303,
156
- "<|su|>": 50357,
157
- "<|sv|>": 50273,
158
- "<|sw|>": 50318,
159
- "<|ta|>": 50287,
160
- "<|te|>": 50299,
161
- "<|tg|>": 50331,
162
- "<|th|>": 50289,
163
- "<|tk|>": 50341,
164
- "<|tl|>": 50348,
165
- "<|tr|>": 50268,
166
- "<|tt|>": 50351,
167
- "<|uk|>": 50280,
168
- "<|ur|>": 50290,
169
- "<|uz|>": 50337,
170
- "<|vi|>": 50278,
171
- "<|yi|>": 50335,
172
- "<|yo|>": 50325,
173
- "<|zh|>": 50260
174
- },
175
- "max_initial_timestamp_index": 50,
176
- "max_length": 448,
177
- "no_timestamps_token_id": 50363,
178
- "pad_token_id": 50257,
179
- "prev_sot_token_id": 50361,
180
- "return_timestamps": false,
181
- "suppress_tokens": [
182
- 1,
183
- 2,
184
- 7,
185
- 8,
186
- 9,
187
- 10,
188
- 14,
189
- 25,
190
- 26,
191
- 27,
192
- 28,
193
- 29,
194
- 31,
195
- 58,
196
- 59,
197
- 60,
198
- 61,
199
- 62,
200
- 63,
201
- 90,
202
- 91,
203
- 92,
204
- 93,
205
- 359,
206
- 503,
207
- 522,
208
- 542,
209
- 873,
210
- 893,
211
- 902,
212
- 918,
213
- 922,
214
- 931,
215
- 1350,
216
- 1853,
217
- 1982,
218
- 2460,
219
- 2627,
220
- 3246,
221
- 3253,
222
- 3268,
223
- 3536,
224
- 3846,
225
- 3961,
226
- 4183,
227
- 4667,
228
- 6585,
229
- 6647,
230
- 7273,
231
- 9061,
232
- 9383,
233
- 10428,
234
- 10929,
235
- 11938,
236
- 12033,
237
- 12331,
238
- 12562,
239
- 13793,
240
- 14157,
241
- 14635,
242
- 15265,
243
- 15618,
244
- 16553,
245
- 16604,
246
- 18362,
247
- 18956,
248
- 20075,
249
- 21675,
250
- 22520,
251
- 26130,
252
- 26161,
253
- 26435,
254
- 28279,
255
- 29464,
256
- 31650,
257
- 32302,
258
- 32470,
259
- 36865,
260
- 42863,
261
- 47425,
262
- 49870,
263
- 50254,
264
- 50258,
265
- 50358,
266
- 50359,
267
- 50360,
268
- 50361,
269
- 50362
270
- ],
271
- "task_to_id": {
272
- "transcribe": 50359,
273
- "translate": 50358
274
- }
275
- }
276
  }
 
1
+ {
2
+ "library_name": "zeromodels",
3
+ "zeromodels_version": "1.2.1",
4
+ "model_module": "zeromodels.models.whisper",
5
+ "model_class": "WhisperModel",
6
+ "variant": "whisper_medium",
7
+ "weights": "model.weights.json",
8
+ "schema_version": 2,
9
+ "weight_dtype": "float32",
10
+ "model_type": "whisper",
11
+ "audio_config": {
12
+ "num_layers": 24,
13
+ "attention_heads": 16,
14
+ "ffn_dim": 4096,
15
+ "num_mel_bins": 80,
16
+ "max_source_positions": 1500
17
+ },
18
+ "text_config": {
19
+ "num_layers": 24,
20
+ "attention_heads": 16,
21
+ "ffn_dim": 4096,
22
+ "vocab_size": 51865,
23
+ "max_target_positions": 448
24
+ },
25
+ "hidden_dim": 1024,
26
+ "activation_function": "gelu",
27
+ "layer_norm_eps": 1e-05,
28
+ "scale_embedding": false,
29
+ "generate_args": {
30
+ "alignment_heads": [
31
+ [
32
+ 13,
33
+ 15
34
+ ],
35
+ [
36
+ 15,
37
+ 4
38
+ ],
39
+ [
40
+ 15,
41
+ 15
42
+ ],
43
+ [
44
+ 16,
45
+ 1
46
+ ],
47
+ [
48
+ 20,
49
+ 0
50
+ ],
51
+ [
52
+ 23,
53
+ 4
54
+ ]
55
+ ],
56
+ "begin_suppress_tokens": [
57
+ 220,
58
+ 50257
59
+ ],
60
+ "bos_token_id": 50257,
61
+ "decoder_start_token_id": 50258,
62
+ "eos_token_id": 50257,
63
+ "forced_decoder_ids": [
64
+ [
65
+ 1,
66
+ null
67
+ ],
68
+ [
69
+ 2,
70
+ 50359
71
+ ]
72
+ ],
73
+ "is_multilingual": true,
74
+ "lang_to_id": {
75
+ "<|af|>": 50327,
76
+ "<|am|>": 50334,
77
+ "<|ar|>": 50272,
78
+ "<|as|>": 50350,
79
+ "<|az|>": 50304,
80
+ "<|ba|>": 50355,
81
+ "<|be|>": 50330,
82
+ "<|bg|>": 50292,
83
+ "<|bn|>": 50302,
84
+ "<|bo|>": 50347,
85
+ "<|br|>": 50309,
86
+ "<|bs|>": 50315,
87
+ "<|ca|>": 50270,
88
+ "<|cs|>": 50283,
89
+ "<|cy|>": 50297,
90
+ "<|da|>": 50285,
91
+ "<|de|>": 50261,
92
+ "<|el|>": 50281,
93
+ "<|en|>": 50259,
94
+ "<|es|>": 50262,
95
+ "<|et|>": 50307,
96
+ "<|eu|>": 50310,
97
+ "<|fa|>": 50300,
98
+ "<|fi|>": 50277,
99
+ "<|fo|>": 50338,
100
+ "<|fr|>": 50265,
101
+ "<|gl|>": 50319,
102
+ "<|gu|>": 50333,
103
+ "<|haw|>": 50352,
104
+ "<|ha|>": 50354,
105
+ "<|he|>": 50279,
106
+ "<|hi|>": 50276,
107
+ "<|hr|>": 50291,
108
+ "<|ht|>": 50339,
109
+ "<|hu|>": 50286,
110
+ "<|hy|>": 50312,
111
+ "<|id|>": 50275,
112
+ "<|is|>": 50311,
113
+ "<|it|>": 50274,
114
+ "<|ja|>": 50266,
115
+ "<|jw|>": 50356,
116
+ "<|ka|>": 50329,
117
+ "<|kk|>": 50316,
118
+ "<|km|>": 50323,
119
+ "<|kn|>": 50306,
120
+ "<|ko|>": 50264,
121
+ "<|la|>": 50294,
122
+ "<|lb|>": 50345,
123
+ "<|ln|>": 50353,
124
+ "<|lo|>": 50336,
125
+ "<|lt|>": 50293,
126
+ "<|lv|>": 50301,
127
+ "<|mg|>": 50349,
128
+ "<|mi|>": 50295,
129
+ "<|mk|>": 50308,
130
+ "<|ml|>": 50296,
131
+ "<|mn|>": 50314,
132
+ "<|mr|>": 50320,
133
+ "<|ms|>": 50282,
134
+ "<|mt|>": 50343,
135
+ "<|my|>": 50346,
136
+ "<|ne|>": 50313,
137
+ "<|nl|>": 50271,
138
+ "<|nn|>": 50342,
139
+ "<|no|>": 50288,
140
+ "<|oc|>": 50328,
141
+ "<|pa|>": 50321,
142
+ "<|pl|>": 50269,
143
+ "<|ps|>": 50340,
144
+ "<|pt|>": 50267,
145
+ "<|ro|>": 50284,
146
+ "<|ru|>": 50263,
147
+ "<|sa|>": 50344,
148
+ "<|sd|>": 50332,
149
+ "<|si|>": 50322,
150
+ "<|sk|>": 50298,
151
+ "<|sl|>": 50305,
152
+ "<|sn|>": 50324,
153
+ "<|so|>": 50326,
154
+ "<|sq|>": 50317,
155
+ "<|sr|>": 50303,
156
+ "<|su|>": 50357,
157
+ "<|sv|>": 50273,
158
+ "<|sw|>": 50318,
159
+ "<|ta|>": 50287,
160
+ "<|te|>": 50299,
161
+ "<|tg|>": 50331,
162
+ "<|th|>": 50289,
163
+ "<|tk|>": 50341,
164
+ "<|tl|>": 50348,
165
+ "<|tr|>": 50268,
166
+ "<|tt|>": 50351,
167
+ "<|uk|>": 50280,
168
+ "<|ur|>": 50290,
169
+ "<|uz|>": 50337,
170
+ "<|vi|>": 50278,
171
+ "<|yi|>": 50335,
172
+ "<|yo|>": 50325,
173
+ "<|zh|>": 50260
174
+ },
175
+ "max_initial_timestamp_index": 50,
176
+ "max_length": 448,
177
+ "no_timestamps_token_id": 50363,
178
+ "pad_token_id": 50257,
179
+ "prev_sot_token_id": 50361,
180
+ "return_timestamps": false,
181
+ "suppress_tokens": [
182
+ 1,
183
+ 2,
184
+ 7,
185
+ 8,
186
+ 9,
187
+ 10,
188
+ 14,
189
+ 25,
190
+ 26,
191
+ 27,
192
+ 28,
193
+ 29,
194
+ 31,
195
+ 58,
196
+ 59,
197
+ 60,
198
+ 61,
199
+ 62,
200
+ 63,
201
+ 90,
202
+ 91,
203
+ 92,
204
+ 93,
205
+ 359,
206
+ 503,
207
+ 522,
208
+ 542,
209
+ 873,
210
+ 893,
211
+ 902,
212
+ 918,
213
+ 922,
214
+ 931,
215
+ 1350,
216
+ 1853,
217
+ 1982,
218
+ 2460,
219
+ 2627,
220
+ 3246,
221
+ 3253,
222
+ 3268,
223
+ 3536,
224
+ 3846,
225
+ 3961,
226
+ 4183,
227
+ 4667,
228
+ 6585,
229
+ 6647,
230
+ 7273,
231
+ 9061,
232
+ 9383,
233
+ 10428,
234
+ 10929,
235
+ 11938,
236
+ 12033,
237
+ 12331,
238
+ 12562,
239
+ 13793,
240
+ 14157,
241
+ 14635,
242
+ 15265,
243
+ 15618,
244
+ 16553,
245
+ 16604,
246
+ 18362,
247
+ 18956,
248
+ 20075,
249
+ 21675,
250
+ 22520,
251
+ 26130,
252
+ 26161,
253
+ 26435,
254
+ 28279,
255
+ 29464,
256
+ 31650,
257
+ 32302,
258
+ 32470,
259
+ 36865,
260
+ 42863,
261
+ 47425,
262
+ 49870,
263
+ 50254,
264
+ 50258,
265
+ 50358,
266
+ 50359,
267
+ 50360,
268
+ 50361,
269
+ 50362
270
+ ],
271
+ "task_to_id": {
272
+ "transcribe": 50359,
273
+ "translate": 50358
274
+ }
275
+ }
276
  }
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_medium",
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_medium",
7
+ "sampling_rate": 16000,
8
+ "n_fft": 400,
9
+ "hop_length": 160,
10
+ "n_mels": 80,
11
+ "chunk_length": 30
12
  }