[Feature][Voxtral TTS] Support per-model extra sampling params & add cfg_alpha for Voxtral TTS (#2338)

Signed-off-by: Chen-Yo Sun <chenyo.sun@mistral.ai>
Signed-off-by: Yueqian Lin <linyueqian@outlook.com>
Co-authored-by: Yueqian Lin <linyueqian@outlook.com>
This commit is contained in:
Chen-Yo SunandYueqian Lin authored and GitHub committed 2026-04-22 03:49:50 +00:00
1 parent 2903f528d2
commit 8e1bbc9ab5
13 files changed
+160 -37

No files matched your search

+2
View File
@@ -170,6 +170,7 @@ class OmniEngineArgs(EngineArgs):
output_modalities: list[str] | None = None
log_stats: bool = False
custom_pipeline_args: dict[str, Any] | None = None
has_sampling_extra_args: bool = False
def __post_init__(self) -> None:
if self.worker_cls is None:
@@ -326,6 +327,7 @@ class OmniEngineArgs(EngineArgs):
subtalker_sampling_params=self.subtalker_sampling_params,
omni_kv_config=self.omni_kv_config,
task_type=self.task_type,
has_sampling_extra_args=self.has_sampling_extra_args,
)
return omni_config
+4
View File
@@ -411,6 +411,10 @@ def build_engine_args_dict(
if stage_type != "diffusion":
resolve_worker_cls(engine_args_dict)
# Check whether the stage's default_sampling_params defines extra_args.
default_sp = _to_dict(getattr(stage_config, "default_sampling_params", {}))
engine_args_dict["has_sampling_extra_args"] = bool(default_sp.get("extra_args"))
return engine_args_dict