[Bugfix] Per-key accumulation strategy for Qwen3-TTS codec frame outputs (#7608)
Signed-off-by: Yueqian Lin <linyueqian@outlook.com>
This commit is contained in:
1 parent
7bceb1a76b
commit
5dbae2b182
5 files changed
+174
-25
No files matched your search
@@ -10,9 +10,23 @@ from vllm_omni.config.stage_config import (
|
||||
StageExecutionType,
|
||||
StagePipelineConfig,
|
||||
)
|
||||
from vllm_omni.outputs.output_modality import (
|
||||
TensorAccumulationStrategy,
|
||||
register_key_accumulation_strategy,
|
||||
)
|
||||
|
||||
_PROC = "vllm_omni.model_executor.stage_input_processors.qwen3_tts"
|
||||
|
||||
# The talker's codec-frame keys are not waveform chunks, so they must not go
|
||||
# through the AUDIO modality's waveform-tuned default (CONCAT_LAST) whenever
|
||||
# a stage carrying them consolidates its output under that modality (e.g. an
|
||||
# AUDIO-typed final stage that forwards them directly instead of routing
|
||||
# through code2wav): ``codes.audio`` grows one row per decode step along
|
||||
# dim 0, and ``codes.ref`` re-emits the constant reference-context matrix
|
||||
# unchanged at every step.
|
||||
register_key_accumulation_strategy("codes.audio", TensorAccumulationStrategy.CONCAT_DIM0)
|
||||
register_key_accumulation_strategy("codes.ref", TensorAccumulationStrategy.REPLACE)
|
||||
|
||||
QWEN3_TTS_PIPELINE = PipelineConfig(
|
||||
model_type="qwen3_tts",
|
||||
default_deploy_config_name="qwen3_tts.yaml",
|
||||
|
||||
Reference in new issue
Block a user