mtmd: support YuE2-3B (#32369)
* mtmd: support YuE2-3B * improve speed * add CFG * fix streaming * add cfg control from api * check ctx size * fix n_predict * add flow_steps config * nits * fix batch api * nits * adapt * mtmd: yue2 samples from its own saved logits The context logits belong to the last decode of any slot, so with several server slots the score and the unguided codes were sampled from another sequence. Keep the logits of each own decode in save_logits(), which also does the guidance mix. * mtmd: let the yue2 snake chain fuse The beta reshape landed between sqr and mul, so the mul, sin, sqr, mul, add chain was not consecutive and the backends never fused it. Expand both reshapes first, like qwen3tts does. --------- Co-authored-by: Pascal <admin@serveurperso.com>
This commit is contained in:
1 parent
ad5cbfa911
commit
92192d31e4
23 files changed
+1633
-23
No files matched your search
@@ -561,6 +561,13 @@ std::vector<std::unique_ptr<field>> make_tts_schema(server_task & task) {
|
||||
add((new field_num("loudness", task.tts_inp.data.loudness))
|
||||
->set_desc("Target loudness in LUFS, for models that support it (0.0 = model default)"));
|
||||
|
||||
add((new field_num("cfg_scale", task.tts_inp.data.cfg_scale))
|
||||
->set_desc("Classifier-free guidance scale of the audio codes, for models that support it (0.0 = model default, 1.0 = no guidance)"));
|
||||
|
||||
add((new field_num("flow_steps", task.tts_inp.data.flow_steps))
|
||||
->set_hard_limits(0, 1024)
|
||||
->set_desc("Steps of the flow-matching ODE solver, for models that support it (0 = model default); fewer is faster, less accurate"));
|
||||
|
||||
add((new field_num("n_predict", task.params.n_predict))
|
||||
->set_hard_limits(-1, INT32_MAX)
|
||||
->add_alias("max_tokens")
|
||||
|
||||
Reference in new issue
Block a user