whisper.cpp/tests
Dominic Dones 1c53e05aee examples: make -hf resolve a cached model without --hf-file
Change the empty --hf-file branch of whisper_hf_resolve_model to be
cache-first and refuse ambiguity rather than pick the repo's first
ggml-*.bin. With no -hff: exactly one cached ggml-*.bin resolves it
(no network); more than one errors and lists the cached files; a cold
cache errors and lists the repo's available models instead of silently
downloading. This makes "download once with -hff, then just -hf" work.

Unlike llama.cpp's -hf <user>/<model>[:quant] default-quant pick
(find_best_model), whisper repos are many-models-one-repo with no
meaningful default, so we key off the cache and error+list on ambiguity.
The explicit -hff path (download-first, cache fall-back) is unchanged.

whisper_hf_resolve_model now prints a specific diagnostic for every
failure mode, so cli.cpp no longer prints its own generic (and now
inaccurate) "not found in HF cache" line; it just returns exit 3.

tests/test-hf-resolve.sh gains single-cached (-hf alone -> exit 0) and
multi-cached (-hf alone -> exit 3 + "multiple models cached" + list)
cases, and the missing-file assertion matches the new message.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 16:35:52 -04:00
..
earnings21 vad : Silero VAD v6.2.0 (#3524) 2025-11-17 22:26:17 +09:00
librispeech musa: correct MUSA SDK rc4.0.1 download URL (#3217) 2025-06-03 06:02:12 +02:00
librispeech-parakeet parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
.gitignore tests : adding transcription tests 2022-12-02 21:40:02 +02:00
CMakeLists.txt parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
en-0-ref.txt tests : adding transcription tests 2022-12-02 21:40:02 +02:00
en-1-ref.txt tests : adding transcription tests 2022-12-02 21:40:02 +02:00
en-2-ref.txt tests : adding transcription tests 2022-12-02 21:40:02 +02:00
es-0-ref.txt tests : adding transcription tests 2022-12-02 21:40:02 +02:00
parakeet-expected-diffusion-output.txt parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
parakeet-expected-gb1-output.txt parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
parakeet-expected-jfk-output.txt parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
parakeet-verification.h parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
run-tests.sh parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
test-c.c whisper : reorganize source code + improve CMake (#2256) 2024-06-26 19:34:09 +03:00
test-common-utf8.cpp server : merge split utf-8 token text in verbose json (#3850) 2026-06-02 13:10:27 +02:00
test-hf-resolve.sh examples: make -hf resolve a cached model without --hf-file 2026-07-02 16:35:52 -04:00
test-parakeet-full.cpp parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
test-parakeet.cpp parakeet : add support for NVIDIA Parakeet (#3735) 2026-06-16 20:44:10 +02:00
test-vad-full.cpp whisper : expose internal VAD speech segments (#3916) 2026-07-01 13:10:16 +02:00
test-vad.cpp tests : update VAD tests to use Silero V6.2.0 (#3534) 2025-12-06 10:58:58 +01:00
test-whisper.js Node.js package (#260) 2022-12-12 20:17:27 +02:00