[BugFix] add missing subtalker sampling config to Qwen3-TTS deploy YAML (#2940)

Signed-off-by: xiaohajiayou <923390377@qq.com>
This commit is contained in:
Haco authored and GitHub committed 2026-04-21 14:47:22 +08:00
1 parent 52b53367ef
commit ad7c966b1d
11 files changed
+169 -10

No files matched your search

+13 -1
View File
@@ -1355,10 +1355,22 @@ class OmniGPUModelRunner(GPUModelRunner):
req_embeds = self.talker_mtp_inputs_embeds.gpu[:num_tokens_padded]
last_talker_hidden = self.last_talker_hidden.gpu[:num_tokens_padded]
text_step = self.text_step.gpu[:num_tokens_padded]
subtalker_params = getattr(self.vllm_config.model_config, "subtalker_sampling_params", None)
if not isinstance(subtalker_params, dict):
subtalker_params = {}
with set_forward_context(
None, self.vllm_config, cudagraph_runtime_mode=_cudagraph_mode, batch_descriptor=batch_desc
):
req_embeds, code_predictor_codes = self.talker_mtp(req_input_ids, req_embeds, last_talker_hidden, text_step)
req_embeds, code_predictor_codes = self.talker_mtp(
req_input_ids,
req_embeds,
last_talker_hidden,
text_step,
do_sample=subtalker_params.get("do_sample"),
temperature=subtalker_params.get("temperature"),
top_k=subtalker_params.get("top_k"),
top_p=subtalker_params.get("top_p"),
)
# code_predictor_codes stays on GPU here; _update_intermediate_buffer
# keeps it device-resident when the key is in gpu_resident_buffer_keys.
# D2H is deferred to sample_tokens where hidden_states.to("cpu") already