[BugFix] Forward CLI --tokenizer to per-stage engine configs (#3120)

Signed-off-by: Chen-Yo Sun <chenyo.sun@mistral.ai>
This commit is contained in:
Chen-Yo Sun authored and GitHub committed 2026-05-07 06:43:01 +08:00
1 parent 81ab2f98da
commit 56ca5d9a8f
5 files changed
+101 -4

No files matched your search

+4
View File
@@ -261,6 +261,8 @@ class AsyncOmniEngine:
ea_dict.pop("model", None)
kwargs = {**ea_dict, **kwargs}
self.tokenizer: str | None = kwargs.get("tokenizer")
# ------------------------------------------------------------------ #
# Single-stage mode detection #
# ------------------------------------------------------------------ #
@@ -485,6 +487,7 @@ class AsyncOmniEngine:
stage_cfg,
self.model,
stage_connector_spec=stage_connector_spec,
cli_tokenizer=getattr(self, "tokenizer", None),
)
omni_conn_cfg, omni_from, omni_to = omni_kv_connector
if omni_conn_cfg:
@@ -654,6 +657,7 @@ class AsyncOmniEngine:
stage_cfg,
self.model,
stage_connector_spec=plan.stage_connector_spec,
cli_tokenizer=getattr(self, "tokenizer", None),
)
lock_fds = acquire_device_locks(
plan.metadata.stage_id,