ggerganov commited on
Commit
ac86ad0
·
unverified ·
1 Parent(s): b408b8e

wasm : change ggml model host to HF (#3369)

Browse files
examples/bench.wasm/index-tmpl.html CHANGED
@@ -191,15 +191,15 @@
191
 
192
  function loadWhisper(model) {
193
  let urls = {
194
- 'tiny.en': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny.en.bin',
195
- 'base.en': 'https://whisper.ggerganov.com/ggml-model-whisper-base.en.bin',
196
- 'small.en': 'https://whisper.ggerganov.com/ggml-model-whisper-small.en.bin',
197
-
198
- 'tiny-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny.en-q5_1.bin',
199
- 'base-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-base.en-q5_1.bin',
200
- 'small-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-small.en-q5_1.bin',
201
- 'medium-en-q5_0':'https://whisper.ggerganov.com/ggml-model-whisper-medium.en-q5_0.bin',
202
- 'large-q5_0': 'https://whisper.ggerganov.com/ggml-model-whisper-large-q5_0.bin',
203
  };
204
 
205
  let sizes = {
 
191
 
192
  function loadWhisper(model) {
193
  let urls = {
194
+ 'tiny.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en.bin',
195
+ 'base.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin',
196
+ 'small.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.en.bin',
197
+
198
+ 'tiny-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en-q5_1.bin',
199
+ 'base-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en-q5_1.bin',
200
+ 'small-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.en-q5_1.bin',
201
+ 'medium-en-q5_0':'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-medium.en-q5_0.bin',
202
+ 'large-q5_0': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-q5_0.bin',
203
  };
204
 
205
  let sizes = {
examples/command.wasm/index-tmpl.html CHANGED
@@ -174,11 +174,11 @@
174
 
175
  function loadWhisper(model) {
176
  let urls = {
177
- 'tiny.en': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny.en.bin',
178
- 'base.en': 'https://whisper.ggerganov.com/ggml-model-whisper-base.en.bin',
179
 
180
- 'tiny-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny.en-q5_1.bin',
181
- 'base-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-base.en-q5_1.bin',
182
  };
183
 
184
  let sizes = {
 
174
 
175
  function loadWhisper(model) {
176
  let urls = {
177
+ 'tiny.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en.bin',
178
+ 'base.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin',
179
 
180
+ 'tiny-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en-q5_1.bin',
181
+ 'base-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en-q5_1.bin',
182
  };
183
 
184
  let sizes = {
examples/stream.wasm/index-tmpl.html CHANGED
@@ -246,12 +246,12 @@
246
 
247
  function loadWhisper(model) {
248
  let urls = {
249
- 'tiny.en': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny.en.bin',
250
- 'base.en': 'https://whisper.ggerganov.com/ggml-model-whisper-base.en.bin',
251
- 'base' : 'https://whisper.ggerganov.com/ggml-model-whisper-base.bin',
252
 
253
- 'tiny-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny.en-q5_1.bin',
254
- 'base-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-base.en-q5_1.bin',
255
  };
256
 
257
  let sizes = {
 
246
 
247
  function loadWhisper(model) {
248
  let urls = {
249
+ 'tiny.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en.bin',
250
+ 'base.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin',
251
+ 'base' : 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin',
252
 
253
+ 'tiny-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en-q5_1.bin',
254
+ 'base-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en-q5_1.bin',
255
  };
256
 
257
  let sizes = {
examples/whisper.wasm/index-tmpl.html CHANGED
@@ -338,22 +338,22 @@
338
 
339
  function loadWhisper(model) {
340
  let urls = {
341
- 'tiny.en': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny.en.bin',
342
- 'tiny': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny.bin',
343
- 'base.en': 'https://whisper.ggerganov.com/ggml-model-whisper-base.en.bin',
344
- 'base': 'https://whisper.ggerganov.com/ggml-model-whisper-base.bin',
345
- 'small.en': 'https://whisper.ggerganov.com/ggml-model-whisper-small.en.bin',
346
- 'small': 'https://whisper.ggerganov.com/ggml-model-whisper-small.bin',
347
-
348
- 'tiny-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny.en-q5_1.bin',
349
- 'tiny-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-tiny-q5_1.bin',
350
- 'base-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-base.en-q5_1.bin',
351
- 'base-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-base-q5_1.bin',
352
- 'small-en-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-small.en-q5_1.bin',
353
- 'small-q5_1': 'https://whisper.ggerganov.com/ggml-model-whisper-small-q5_1.bin',
354
- 'medium-en-q5_0':'https://whisper.ggerganov.com/ggml-model-whisper-medium.en-q5_0.bin',
355
- 'medium-q5_0': 'https://whisper.ggerganov.com/ggml-model-whisper-medium-q5_0.bin',
356
- 'large-q5_0': 'https://whisper.ggerganov.com/ggml-model-whisper-large-q5_0.bin',
357
  };
358
 
359
  let sizes = {
 
338
 
339
  function loadWhisper(model) {
340
  let urls = {
341
+ 'tiny.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en.bin',
342
+ 'tiny': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.bin',
343
+ 'base.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin',
344
+ 'base': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin',
345
+ 'small.en': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.en.bin',
346
+ 'small': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.bin',
347
+
348
+ 'tiny-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en-q5_1.bin',
349
+ 'tiny-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny-q5_1.bin',
350
+ 'base-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en-q5_1.bin',
351
+ 'base-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base-q5_1.bin',
352
+ 'small-en-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.en-q5_1.bin',
353
+ 'small-q5_1': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small-q5_1.bin',
354
+ 'medium-en-q5_0':'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-medium.en-q5_0.bin',
355
+ 'medium-q5_0': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-medium-q5_0.bin',
356
+ 'large-q5_0': 'https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-q5_0.bin',
357
  };
358
 
359
  let sizes = {