8000 tts : fix n_ubatch + make WavTokenizer cache-less by ggerganov · Pull Request #13713 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

tts : fix n_ubatch + make WavTokenizer cache-less #13713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tts : fix n_ubatch + make WavTokenizer cache-less
ggml-ci
  • Loading branch information
ggerganov committed May 22, 2025
commit 108d484ab2db85c4af85bd3263fb4ebf572e2e42
1 change: 1 addition & 0 deletions src/llama-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13189,6 +13189,7 @@ llama_memory_i * llama_model::create_memory(const llama_memory_params & params,
case LLM_ARCH_JINA_BERT_V2:
case LLM_ARCH_NOMIC_BERT:
case LLM_ARCH_NOMIC_BERT_MOE:
case LLM_ARCH_WAVTOKENIZER_DEC:
{
res = nullptr;
} break;
Expand Down
6 changes: 4 additions & 2 deletions tools/tts/tts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ int main(int argc, char ** argv) {

params.model = params.vocoder.model;
params.embedding = true;
params.ctx_shift = false; // silence warning
params.n_ubatch = params.n_batch;

common_init_result llama_init_cts = common_init_from_params(params);

Expand Down Expand Up @@ -1020,8 +1022,8 @@ lovely<|t_0.56|><|code_start|><|634|><|596|><|1766|><|1556|><|1306|><|1285|><|14
}
GGML_ASSERT(batch.n_tokens == n_codes);

if (llama_decode(ctx_cts, batch) != 0) {
LOG_ERR("%s: llama_decode() failed\n", __func__);
if (llama_encode(ctx_cts, batch) != 0) {
LOG_ERR("%s: llama_encode() failed\n", __func__);
return 1;
}

Expand Down
Loading
0