[Feature] timestamps for TTS via a forced-aligner pooling (#4795)

Signed-off-by: wjinxu <1299461899@qq.com>
Co-authored-by: xurui <xurui1@modelbest.onaliyun.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-08-12 05:33:34 +00:00
1 parent a15b5b4bcd
commit 9b0df3909a
28 files changed
+850 -627

No files matched your search

+8
View File
@@ -191,6 +191,8 @@ class OmniEngineArgs(EngineArgs):
quantization_config: Any | None = None
force_cutlass_fp8: bool | None = None
worker_type: str | None = None
# Dotted path of a per-stage pooling-output decoder applied worker-side.
pooling_output_decoder: str | None = None
task_type: str | None = None
worker_cls: str = None # type: ignore[assignment] # Upstream default is "auto"; omni resolves
# in __post_init__ based on worker_type (ar/generation), so None is safe here.
@@ -380,6 +382,7 @@ class OmniEngineArgs(EngineArgs):
model_stage=self.model_stage,
model_arch=self.model_arch,
worker_type=self.worker_type,
pooling_output_decoder=self.pooling_output_decoder,
engine_output_type=self.engine_output_type,
hf_config_name=self.hf_config_name,
custom_process_next_stage_input_func=self.custom_process_next_stage_input_func,
@@ -475,6 +478,11 @@ class OrchestratorArgs:
# === Mode Switches (orchestrator reads, DeployConfig redistributes) ===
async_chunk: bool | None = None
# === Forced aligner (orchestrator injects a pooling stage; never a per-stage knob) ===
forced_aligner: str | None = None
forced_aligner_config: str | None = None
forced_aligner_device: str | None = None
# === Observability ===
log_stats: bool = False
enable_orch_monitor: bool = False