[Model] Optimize Qwen3-TTS streaming throughput and first audio on CUDA (#8163)

Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
Sy03 authored and GitHub committed 2026-09-26 22:51:04 +08:00
1 parent 8a49c65bf9
commit e1303e5067
55 files changed
+4222 -230

No files matched your search

+6
View File
@@ -19,6 +19,10 @@ import msgspec
import numpy as np
import torch
# Internal output routing markers shared by first-frame producers and orchestration.
FIRST_AUDIO_KEY = "_omni_first_audio"
FIRST_AUDIO_REQUIRED_KEY = "_omni_first_audio_required"
REQUEST_ARTIFACT_DIRS_KEY = "_omni_request_artifact_dirs"
TRANSFORM_OWNED_META_KEYS = frozenset({"minimax_h3_prepared_reference_videos"})
@@ -101,6 +105,7 @@ class OmniPayloadMeta(TypedDict, total=False):
width: int
decode_flag: bool
codec_streaming: bool
first_audio: bool | torch.Tensor
codec_frame_valid: bool | torch.Tensor
ref_code_len: int
ref_context_size: int
@@ -214,6 +219,7 @@ class MetaStruct(_StructBase):
width: int | None = None
decode_flag: bool | None = None
codec_streaming: bool | None = None
first_audio: torch.Tensor | None = None
codec_frame_valid: torch.Tensor | None = None
ref_code_len: int | None = None
# Expected FINAL length of a growing async-chunk sequence, when the