Repository navigation
qwen3tts : guard speaker_encoder_config patch for CustomVoice variant - #29179
Merged
Merged
Conversation
…_encoder_config (fixes ggml-org#29088) Signed-off-by: SIDDARTHA REDDY <[email protected]>
CISC
reviewed
Sep 20, 2026
Per reviewer feedback on PR ggml-org#29179, remove the regression test file. The fix itself is unchanged. Signed-off-by: SIDDARTHA REDDY <[email protected]>
Contributor
Author
|
@CISC — following up on your review; I've replied above. Anything further you'd like changed? |
Member
ngxson
approved these changes
Oct 7, 2026
CISC
approved these changes
Oct 7, 2026
edwardyoon
pushed a commit
to edwardyoon/focus-llama
that referenced
this pull request
Oct 8, 2026
…ggml-org#29179) * Fix KeyError converting Qwen3-TTS CustomVoice variant without speaker_encoder_config (fixes ggml-org#29088) Signed-off-by: SIDDARTHA REDDY <[email protected]> * Address review feedback: drop tests/test-convert-qwen3tts.py Per reviewer feedback on PR ggml-org#29179, remove the regression test file. The fix itself is unchanged. Signed-off-by: SIDDARTHA REDDY <[email protected]> --------- Signed-off-by: SIDDARTHA REDDY <[email protected]> (cherry picked from commit 48499d2)
edwardyoon
pushed a commit
to edwardyoon/focus-llama
that referenced
this pull request
Oct 24, 2026
…ggml-org#29179) * Fix KeyError converting Qwen3-TTS CustomVoice variant without speaker_encoder_config (fixes ggml-org#29088) Signed-off-by: SIDDARTHA REDDY <[email protected]> * Address review feedback: drop tests/test-convert-qwen3tts.py Per reviewer feedback on PR ggml-org#29179, remove the regression test file. The fix itself is unchanged. Signed-off-by: SIDDARTHA REDDY <[email protected]> --------- Signed-off-by: SIDDARTHA REDDY <[email protected]>
auRose94
pushed a commit
to auRose94/llama.cpp
that referenced
this pull request
Oct 28, 2026
…ggml-org#29179) * Fix KeyError converting Qwen3-TTS CustomVoice variant without speaker_encoder_config (fixes ggml-org#29088) Signed-off-by: SIDDARTHA REDDY <[email protected]> * Address review feedback: drop tests/test-convert-qwen3tts.py Per reviewer feedback on PR ggml-org#29179, remove the regression test file. The fix itself is unchanged. Signed-off-by: SIDDARTHA REDDY <[email protected]> --------- Signed-off-by: SIDDARTHA REDDY <[email protected]>
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.
Overview
convert_hf_to_gguf.py --mmprojcrashed withKeyError: 'speaker_encoder_config'when converting the Qwen3-TTS CustomVoice variant. That variant ships no speaker encoder, so its config has nospeaker_encoder_configkey, butQwen3TTSSpeakerEncoderModel.__init__unconditionally patchedhparams["speaker_encoder_config"]["n_layers"] = 4. The patch is now applied only when the key exists. Behavior for the Base variant is unchanged.Fixes #29088.
Additional information
The regression test file (
tests/test-convert-qwen3tts.py) was removed from this PR per reviewer feedback. Before removal it verified:On the unfixed code it reproduces the exact failure from the issue:
With the fix, both cases pass:
Requirements