[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:
1 parent
81ab2f98da
commit
56ca5d9a8f
5 files changed
+101
-4
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user