[Bugfix][Rust Frontend] Fix startup with config-only model (#58643)

Signed-off-by: louie-tsai <louie.tsai@intel.com>
This commit is contained in:
Louie Tsai
2026-09-29 10:11:53 +00:00
committed by GitHub
parent af5b4857e1
commit 208bb38c80
2 changed files with 56 additions and 0 deletions
+10
View File
@@ -391,6 +391,16 @@ class RustFrontendProcessManager:
"data_parallel_hybrid_lb",
},
)
# `model_tag` is the positional `vllm serve` model argument. When the
# model is supplied only through `--config`, argparse populates `model`
# while leaving `model_tag` unset. The Rust frontend requires
# `model_tag` in its JSON bootstrap payload, so use the resolved model
# as a fallback.
model_tag = getattr(args, "model_tag", None) or getattr(args, "model", None)
if model_tag is not None:
args_dict["model_tag"] = model_tag
# The Rust `frontend` subcommand parses --args-json via serde_json,
# which bypasses clap and therefore ignores any `#[arg(env = ...)]`
# declarations on SharedRuntimeArgs fields. Forward the env-driven