[Bugfix][Qwen3-TTS] Gate async-chunk Code2Wav on non_streaming_mode (#4371) (#6898)

Signed-off-by: Zhichao Zhang <60429419+smartDream-chao@users.noreply.github.com>
This commit is contained in:
Zhichao Zhang authored and GitHub committed 2026-09-14 15:25:51 -07:00
1 parent a22a7dd68f
commit 27f0e8c1ea
6 files changed
+215 -7

No files matched your search

@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""Offline inference demo for Qwen3 TTS via vLLM Omni.
Provides single and batch sample inputs for CustomVoice, VoiceDesign, and Base
@@ -166,6 +169,9 @@ def get_custom_voice_query(use_batch_sample: bool = False) -> QueryResult:
"language": [language],
"speaker": [speaker],
"max_new_tokens": [2048],
# Optional Code2Wav emit opt-in under deploy.async_chunk.
# Independent of prompt-mode non_streaming_mode (#4198 / #6898).
"full_utterance_decode": [True],
}
inputs.append(
{
@@ -185,6 +191,7 @@ def get_custom_voice_query(use_batch_sample: bool = False) -> QueryResult:
"speaker": [speaker],
"instruct": [instruct],
"max_new_tokens": [2048],
"full_utterance_decode": [True],
}
inputs = {
"prompt_token_ids": [0] * _estimate_prompt_len(additional_information, model_name),
@@ -226,6 +233,7 @@ def get_voice_design_query(use_batch_sample: bool = False) -> QueryResult:
"instruct": [instruct],
"max_new_tokens": [2048],
"non_streaming_mode": [True],
"full_utterance_decode": [True],
}
inputs.append(
{
@@ -244,6 +252,7 @@ def get_voice_design_query(use_batch_sample: bool = False) -> QueryResult:
"instruct": [instruct],
"max_new_tokens": [2048],
"non_streaming_mode": [True],
"full_utterance_decode": [True],
}
inputs = {
"prompt_token_ids": [0] * _estimate_prompt_len(additional_information, model_name),
@@ -291,6 +300,7 @@ def get_base_query(use_batch_sample: bool = False, mode_tag: str = "icl") -> Que
"language": [language],
"x_vector_only_mode": [x_vector_only_mode],
"max_new_tokens": [2048],
"full_utterance_decode": [True],
}
inputs.append(
{
@@ -307,6 +317,7 @@ def get_base_query(use_batch_sample: bool = False, mode_tag: str = "icl") -> Que
"language": [syn_lang_single],
"x_vector_only_mode": [x_vector_only_mode],
"max_new_tokens": [2048],
"full_utterance_decode": [True],
}
inputs = {
"prompt_token_ids": [0] * _estimate_prompt_len(additional_information, model_name),