From 5b646ae66556f8ad75b01dbdd96106801bf134fa Mon Sep 17 00:00:00 2001 From: root Date: Thu, 3 Sep 2026 05:48:36 +0000 Subject: [PATCH] fix dp arg --- .../vendor_overrides/vllm/engine/arg_utils.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qwen3_6_scripts/vendor_overrides/vllm/engine/arg_utils.py b/qwen3_6_scripts/vendor_overrides/vllm/engine/arg_utils.py index e517f53f..e4c49977 100644 --- a/qwen3_6_scripts/vendor_overrides/vllm/engine/arg_utils.py +++ b/qwen3_6_scripts/vendor_overrides/vllm/engine/arg_utils.py @@ -840,7 +840,14 @@ class EngineArgs: # Get the list of attributes of this dataclass. attrs = [attr.name for attr in dataclasses.fields(cls)] # Set the attributes from the parsed arguments. - engine_args = cls(**{attr: getattr(args, attr) for attr in attrs}) + # Fields that exist in the dataclass but have no corresponding CLI + # argument (e.g. data_parallel_size, enable_expert_parallel) will + # fall back to their dataclass defaults (typically read from env vars). + engine_args = cls(**{ + attr: getattr(args, attr) + for attr in attrs + if hasattr(args, attr) + }) return engine_args def create_model_config(self) -> ModelConfig: