[Model][Core] Avoid unused CosyVoice3 payloads and redundant AR output work (#8473)
Signed-off-by: Sorbett <sorbet111@163.com>
This commit is contained in:
1 parent
5ca23106fd
commit
1f47fa2f29
9 files changed
+525
-73
No files matched your search
@@ -773,6 +773,10 @@ class CosyVoice3Model(
|
||||
self.model_dir = model_dir
|
||||
self.model = None
|
||||
if self.model_stage == "cosyvoice3_talker":
|
||||
# Code2Wav consumes sampled tokens and prompt conditioning, not
|
||||
# hidden states. The processor opts into token-only chunk updates.
|
||||
if getattr(vllm_config.model_config, "async_chunk", False):
|
||||
self.omni_pooler_payload_include_hidden = False
|
||||
# Initialize talker stage (text to speech tokens)
|
||||
from vllm_omni.model_executor.models.cosyvoice3.cosyvoice3_talker import CosyVoice3LM, VLLMQwen2Encoder
|
||||
|
||||
|
||||
@@ -297,6 +297,10 @@ _FULL_PAYLOAD_REPLACE_KEYS: frozenset[str] = frozenset(
|
||||
)
|
||||
|
||||
|
||||
# This processor consumes sampled codec IDs even when no tensor payload is emitted.
|
||||
talker2code2wav_async_chunk.requires_token_updates = True # type: ignore[attr-defined]
|
||||
|
||||
|
||||
def text2flow_token_only(
|
||||
source_outputs: list,
|
||||
prompt: OmniTokensPrompt | TextPrompt = None,
|
||||
|
||||
Reference in new issue
Block a user