Skip to content

Commit b02242d

Browse files
authored
wasm : change ggml model host to HF (#3369)
1 parent 4245c77 commit b02242d

File tree

4 files changed

+34
-34
lines changed

4 files changed

+34
-34
lines changed

examples/bench.wasm/index-tmpl.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@
191191

192192
function loadWhisper(model) {
193193
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',
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',
203203
};
204204

205205
let sizes = {

examples/command.wasm/index-tmpl.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@
174174

175175
function loadWhisper(model) {
176176
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',
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',
179179

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',
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',
182182
};
183183

184184
let sizes = {

examples/stream.wasm/index-tmpl.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,12 @@
246246

247247
function loadWhisper(model) {
248248
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',
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',
252252

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',
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',
255255
};
256256

257257
let sizes = {

examples/whisper.wasm/index-tmpl.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -338,22 +338,22 @@
338338

339339
function loadWhisper(model) {
340340
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',
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',
357357
};
358358

359359
let sizes = {

0 commit comments

Comments
 (0)