feat(importers): add vibevoice-cpp importer for GGUF bundles#9685
Merged
feat(importers): add vibevoice-cpp importer for GGUF bundles#9685
Conversation
Routes mudler/vibevoice.cpp-models and similar repos to the vibevoice-cpp
backend. Detects via repo name ("vibevoice.cpp"/"vibevoice-cpp"), file
listing (vibevoice-*.gguf + tokenizer.gguf), or preferences.backend
override. Defaults to the realtime TTS model; preferences.usecase=asr
selects the ASR/diarization variant. Bundles the required tokenizer.gguf
and (for TTS) a voice prompt, emitting the Options[] entries the backend
expects. Registered ahead of VibeVoiceImporter so the C++ bundles aren't
swallowed by the older Python-backend substring match.
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Assisted-by: claude-code:claude-opus-4-7 [Read] [Edit] [Write] [Bash]
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.
Summary
VibeVoiceCppImporterroutes vibevoice.cpp GGUF bundles (e.g.mudler/vibevoice.cpp-models) to thevibevoice-cppbackend, mirroring how the whisper importer handlesggml-*.binfor whisper.cpp.vibevoice.cpp/vibevoice-cpp), byvibevoice-*.gguf+tokenizer.gguffile pair, or viapreferences.backend="vibevoice-cpp". Defaults to the realtime TTS model;preferences.usecase=asrselects the ASR/diarization variant. Bundles the mandatorytokenizer.ggufand (for TTS) a voice prompt, emitting theOptions[](tokenizer=…,voice=…,type=asr) the backend'sLoad()expects.VibeVoiceImporterso C++ bundles aren't swallowed by the older Python-backend substring match. The Python importer remains the fallback formicrosoft/VibeVoice-1.5Band similar safetensors repos.Example output
For
https://huggingface.co/mudler/vibevoice.cpp-modelswith default preferences:preferences.usecase=asrswaps invibevoice-asr-*.gguf, prependstype=asr, setstranscript, and skips the voice prompt./backends/knownpicks the new backend up automatically since it walksdefaultImporters.Test plan
go test ./core/gallery/importers/— 263/263 specs pass (10 new + 253 unchanged)mudler/vibevoice.cpp-models(TTS + ASR paths)vibevoice-cpp/<name>/, role auto-detection, quant preference, voice overridemicrosoft/VibeVoice-1.5BVibeVoiceImporterand TTS-ambiguity tests still pass