Repository navigation
Support multiple custom Whisper.cpp models - #1614
Merged
raivisdejus merged 7 commits intoSep 11, 2026
Merged
raivisdejus merged 7 commits into
raivisdejus merged 7 commits into
Conversation
Introduce a registry (persisted in the existing QSettings store) that can hold any number of user-defined Whisper.cpp custom models, each with its own name and model file. TranscriptionModel gains an optional custom_model_id that resolves to a registered model's path; when it is None the legacy single-custom-model path is used, so existing users and previously persisted models keep working unchanged. Also adds an offline GGML/GGUF magic-header validity check and routes custom model downloads/deletes per model instead of to one fixed filename. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… CLI The Models preferences screen now lists each registered Whisper.cpp custom model by name and lets users add one from a local file (registered in place, no copy) or a download URL, with a basic GGML/GGUF validity check that rejects incompatible files. The transcription model selector lists custom models by name so they can be picked independently. Deleting a custom model unregisters it and only removes the file when Buzz owns it. A --custom-model-id CLI option selects one non-interactively. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Cover model-file validation, the registry (add/get/remove, many models, persistence, single-target removal), legacy single-model compatibility, and custom-id path resolution including objects persisted without the new field. Document how to add, select and delete custom models and how existing custom models are preserved on upgrade. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
raivisdejus
force-pushed
the
feature/multiple-whisper-cpp-custom-models
branch
from
September 11, 2026 15:54
252c172 to
26be0f2
Compare
Collaborator
|
@Shai34 Thanks for your contribution |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1614 +/- ##
==========================================
- Coverage 83.92% 83.57% -0.35%
==========================================
Files 112 113 +1
Lines 12773 12990 +217
==========================================
+ Hits 10720 10857 +137
- Misses 2053 2133 +80
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Buzz currently supports a single custom Whisper.cpp model, stored at a fixed
ggml-model-whisper-custom.binpath. Users who work with several fine-tunedWhisper.cpp models can only keep one at a time.
A real example: transcribing Hebrew lectures, a fine-tuned Large-v3 Turbo
model is fast enough for everyday use, while a fine-tuned Large-v3 model is kept
for the occasional recording that needs higher accuracy. Both are
ggmlmodels;today Buzz can only hold one as the custom model.
This PR generalises the single custom model into a small registry of custom
Whisper.cpp models, without touching the Whisper.cpp engine itself.
Changes
buzz/settings/whisper_cpp_custom_models.py): any number ofcustom models
{id, name, path, source_url}, persisted in the existingQSettingsstore.TranscriptionModel.custom_model_id: resolves to a registered model'spath. When
None, the legacy fixed path is used.(registered in place, not copied) or a download URL; delete.
independently.
can't load (technical only — it does not judge language/quality).
--custom-model-id.Backward compatibility
ggml-model-whisper-custom.binis surfaced automatically as"Custom Whisper.cpp Model" — not moved or re-downloaded.
TranscriptionModelobjects persisted by older versions (withoutcustom_model_id) keep resolving to the legacy path.custom models stay excluded from automatic "largest model" selection.
Testing
Added unit tests for validation, the registry (add/get/remove, many models,
persistence), legacy compatibility, and custom-id path resolution.