From 51a7bda6252dfff7aa2ab9e82a86914430034563 Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:15:00 +0000 Subject: [PATCH] Update `WeightTransferConfig` to be more standard like the others (#33989) Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --- vllm/config/weight_transfer.py | 2 -- vllm/engine/arg_utils.py | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/vllm/config/weight_transfer.py b/vllm/config/weight_transfer.py index 7ccac13fbf..855b0d915b 100644 --- a/vllm/config/weight_transfer.py +++ b/vllm/config/weight_transfer.py @@ -1,13 +1,11 @@ # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: Copyright contributors to the vLLM project -from dataclasses import dataclass from typing import Literal from vllm.config.utils import config @config -@dataclass class WeightTransferConfig: """Configuration for weight transfer during RL training.""" diff --git a/vllm/engine/arg_utils.py b/vllm/engine/arg_utils.py index 471516e323..335e9a297d 100644 --- a/vllm/engine/arg_utils.py +++ b/vllm/engine/arg_utils.py @@ -582,10 +582,10 @@ class EngineArgs: kv_offloading_backend: KVOffloadingBackend = CacheConfig.kv_offloading_backend tokens_only: bool = False - weight_transfer_config: WeightTransferConfig | None = None - """Configuration for weight transfer during RL training. - Accepts a JSON string or dict with backend-specific options. - Example: '{"backend": "nccl"}'""" + weight_transfer_config: WeightTransferConfig | None = get_field( + VllmConfig, + "weight_transfer_config", + ) def __post_init__(self): # support `EngineArgs(compilation_config={...})`