]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
mtmd: support Qwen3-TTS (note: breaking change to llama-tts binary) (#26254)
authorXuan-Son Nguyen <redacted>
Tue, 4 Aug 2026 15:26:15 +0000 (17:26 +0200)
committerGitHub <redacted>
Tue, 4 Aug 2026 15:26:15 +0000 (17:26 +0200)
commit07132750825a4f2d27a547cd9cdde1c6f6001885
tree46f77bf060878e2b3b9d7c43b4d8a3a566ba3384
parent1c3c9674de4d455f1e571bed808252af54932767
mtmd: support Qwen3-TTS (note: breaking change to llama-tts binary) (#26254)

* convert text model

* main model load ok

* convert encoder ok

* speaker encoder loading ok

* speaker enc graph

* adapt vocab for backbone (with some tricks)

* add suppress_tokens

* poc new mtmd gen api

* convert code_predictor to gguf

* load gen_code model ok

* add clip_encode

* wire up

* code gen cgraph init version

Co-authored-by: Pascal <redacted>
* code2wav convert to gguf

* code2wav graph ok

* wire up in/out

* (wip) subgraph

* wire up

* wip, correct code2wav

* demo (to be removed)

* code2wav preserve kv between calls

* demo voice clone

* llama: add llama_model_get_tok_embd

* mtmd_helper_gen_audio API

* fix clamp cold prefix

Co-authored-by: Pascal <redacted>
* fuse snake op

Co-authored-by: Pascal <redacted>
* demo: use proper sampling

* update dev docs

* polymorphism helper

* revamp llama-tts binary

* update docs

* fix compile

* fix lint

* nits

* add guide + docs

* more timings info

* clean up code comments

* security fixes

* update docs

* use ggml_build_forward_select, clean up comments

* fix ci

* use ISO 639-1 language code

* rename CODE2WAV --> GEN_WAV, update docs

* clean up

* clean up tts.cpp

* add seq_id

* add step_prompt()

* mtmd_helper_model_can_chat

* clean up comments

---------

Co-authored-by: Pascal <redacted>
42 files changed:
common/arg.cpp
common/arg.h
common/common.h
conversion/__init__.py
conversion/qwen3tts.py [new file with mode: 0644]
docs/development/HOWTO-add-model.md
gguf-py/gguf/constants.py
gguf-py/gguf/gguf_writer.py
gguf-py/gguf/tensor_mapping.py
skills/code-review/SKILL.md
src/llama-arch.cpp
src/llama-arch.h
src/llama-ext.h
src/llama-model.cpp
src/models/models.h
src/models/qwen3tts.cpp [new file with mode: 0644]
src/models/qwen3vl.cpp
tests/test-llama-archs.cpp
tools/mtmd/CMakeLists.txt
tools/mtmd/README-dev.md
tools/mtmd/clip-graph.h
tools/mtmd/clip-impl.h
tools/mtmd/clip-model.h
tools/mtmd/clip.cpp
tools/mtmd/clip.h
tools/mtmd/models/models.h
tools/mtmd/models/qwen3tts-gen.cpp [new file with mode: 0644]
tools/mtmd/models/qwen3tts-spkenc.cpp [new file with mode: 0644]
tools/mtmd/mtmd-audio.cpp
tools/mtmd/mtmd-audio.h
tools/mtmd/mtmd-cli.cpp
tools/mtmd/mtmd-helper-common.h [new file with mode: 0644]
tools/mtmd/mtmd-helper-gen.cpp [new file with mode: 0644]
tools/mtmd/mtmd-helper.cpp
tools/mtmd/mtmd-helper.h
tools/mtmd/mtmd.cpp
tools/mtmd/mtmd.h
tools/tts/CMakeLists.txt
tools/tts/README.md
tools/tts/convert_pt_to_hf.py [deleted file]
tools/tts/tts-outetts.py [deleted file]
tools/tts/tts.cpp