[Refactor][2/N Scheduler]Replace _FULL_PAYLOAD_INPUT_STAGES with a resolved stage transport capability. (#6149)
Signed-off-by: wy17003 <yaow17003@gmail.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
bae58f84b8
commit
b454e34966
37 files changed
+370
-310
No files matched your search
@@ -66,6 +66,7 @@ AUDEX_TTS_PIPELINE = PipelineConfig(
|
||||
tokenizer_subdir="checkpoint_folder_audiogen",
|
||||
sync_process_input_func=f"{_PROC}.thinker2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": True},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -127,6 +128,7 @@ AUDEX_S2S_PIPELINE = PipelineConfig(
|
||||
tokenizer_subdir="checkpoint_folder_audiogen",
|
||||
sync_process_input_func=f"{_PROC}.thinker2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": True},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -190,6 +192,7 @@ AUDEX_TTA_PIPELINE = PipelineConfig(
|
||||
# payload ships via thinker2xcodec_full_payload.
|
||||
sync_process_input_func=f"{_PROC}.thinker2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": True},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -80,6 +80,7 @@ AURA_OMNI_PIPELINE = PipelineConfig(
|
||||
sync_process_input_func=f"{_QWEN3_TTS_PROC}.talker2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": True},
|
||||
extras={"tts_args": {"max_instructions_length": 500}},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -48,6 +48,7 @@ COSYVOICE3_PIPELINE = PipelineConfig(
|
||||
final_output_type="audio",
|
||||
engine_output_type="latent",
|
||||
sync_process_input_func=f"{_PROC}.text2flow_token_only",
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -47,6 +47,7 @@ COVO_AUDIO_PIPELINE = PipelineConfig(
|
||||
engine_output_type="audio",
|
||||
sync_process_input_func=f"{_PROC}.llm2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": False},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -50,6 +50,7 @@ DYNIN_OMNI_PIPELINE = PipelineConfig(
|
||||
engine_output_type="latent",
|
||||
custom_process_input_func=f"{_PROC}.token2text_to_token2image",
|
||||
custom_process_next_stage_input_func=f"{_PROC}.token2image_to_token2audio_full_payload",
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
StagePipelineConfig(
|
||||
stage_id=2,
|
||||
@@ -60,6 +61,7 @@ DYNIN_OMNI_PIPELINE = PipelineConfig(
|
||||
final_output_type="audio",
|
||||
engine_output_type="latent",
|
||||
custom_process_input_func=f"{_PROC}.token2image_to_token2audio",
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -45,6 +45,7 @@ INDEXTTS2_PIPELINE = PipelineConfig(
|
||||
sync_process_input_func=f"{_PROC}.talker2s2mel_token_only",
|
||||
extras={"skip_tokenizer_init": True},
|
||||
sampling_constraints={"detokenize": True},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -81,6 +82,7 @@ INDEXTTS25_PIPELINE = PipelineConfig(
|
||||
sync_process_input_func=f"{_PROC}.talker2s2mel_token_only",
|
||||
extras={"skip_tokenizer_init": True},
|
||||
sampling_constraints={"detokenize": True},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -59,6 +59,7 @@ MIMO_AUDIO_PIPELINE = PipelineConfig(
|
||||
engine_output_type="audio",
|
||||
sync_process_input_func=f"{_PROC}.llm2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": False},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -80,6 +80,7 @@ MINICPMO_4_5_PIPELINE = PipelineConfig(
|
||||
model_arch="MiniCPMO45Code2Wav",
|
||||
sync_process_input_func=f"{_PROC}.tts2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": True},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -80,6 +80,7 @@ NEMOTRON_VOICECHAT_PIPELINE = PipelineConfig(
|
||||
engine_output_type="audio",
|
||||
sync_process_input_func=f"{_PROC}.talker2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": False},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -47,6 +47,7 @@ QWEN2_5_OMNI_PIPELINE = PipelineConfig(
|
||||
"detokenize": True,
|
||||
"stop_token_ids": [8294],
|
||||
},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
StagePipelineConfig(
|
||||
stage_id=2,
|
||||
@@ -59,6 +60,7 @@ QWEN2_5_OMNI_PIPELINE = PipelineConfig(
|
||||
engine_output_type="audio",
|
||||
sync_process_input_func=f"{_PROC}.talker2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": True},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
@@ -59,6 +59,7 @@ QWEN3_OMNI_PIPELINE = PipelineConfig(
|
||||
"detokenize": False,
|
||||
"stop_token_ids": [2150],
|
||||
},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
StagePipelineConfig(
|
||||
stage_id=2,
|
||||
@@ -70,6 +71,7 @@ QWEN3_OMNI_PIPELINE = PipelineConfig(
|
||||
hf_config_name="thinker_config",
|
||||
engine_output_type="audio",
|
||||
sampling_constraints={"detokenize": True},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
@@ -52,6 +52,7 @@ QWEN3_TTS_PIPELINE = PipelineConfig(
|
||||
sync_process_input_func=f"{_PROC}.talker2code2wav_token_only",
|
||||
sampling_constraints={"detokenize": True},
|
||||
extras={"tts_args": {"max_instructions_length": 500}},
|
||||
requires_full_payload_input=True,
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -23,8 +23,7 @@ TALKER_CODEC_END_TOKEN_ID = 8294
|
||||
# ============================================================================
|
||||
# Worker-connector data plane (non-async-chunk path).
|
||||
# Both transitions ship payloads via the worker connector
|
||||
# (registered in ``_FULL_PAYLOAD_INPUT_STAGES`` in
|
||||
# omni_scheduling_coordinator):
|
||||
# (requires_full_payload_input=True in the pipeline topology):
|
||||
# - thinker->talker reads accumulated ``pooling_output["hidden"]`` and
|
||||
# packs an OmniPayload-shaped dict (embed.prefill /
|
||||
# hidden_states.output / ids.prompt / ids.output) for the talker, which
|
||||
@@ -155,9 +154,9 @@ def thinker2talker_token_only(
|
||||
``thinker2talker_full_payload`` via the worker connector and lands
|
||||
in ``model_intermediate_buffer`` before the talker's forward() runs.
|
||||
|
||||
Consumer-wait gating is whitelist-driven via
|
||||
``_FULL_PAYLOAD_INPUT_STAGES`` (see the mixin
|
||||
``should_accumulate_full_payload_output`` docstring).
|
||||
Consumer-wait gating is driven by
|
||||
``requires_full_payload_input=True`` in the pipeline topology
|
||||
(see the mixin ``should_accumulate_full_payload_output`` docstring).
|
||||
"""
|
||||
thinker_outputs = source_outputs
|
||||
talker_inputs = []
|
||||
|
||||
Reference in new issue
Block a user