[Core][Frontend] Add weight version tagging for RL rollouts (#49040)

Signed-off-by: Shuolei Wang <shuoleiwang123@gmail.com>
Signed-off-by: Shuolei Wang <948904026@qq.com>
This commit is contained in:
Shuolei Wang
2026-07-28 14:35:29 +08:00
committed by GitHub
parent 90245f4190
commit 9069a57139
16 changed files with 142 additions and 18 deletions
+9
View File
@@ -125,6 +125,8 @@ class EngineCore:
)
self.log_stats = log_stats
# Opaque weight version supplied by the caller.
self._weight_version = "default"
# Setup Model.
self.model_executor = executor_class(vllm_config)
@@ -956,6 +958,13 @@ class EngineCore:
) -> list[_R]:
return self.model_executor.collective_rpc(method, timeout, args, kwargs)
def set_weight_version(self, weight_version: str) -> None:
self._weight_version = weight_version
def get_weight_version(self) -> str:
"""Return the latest committed weight version."""
return self._weight_version
def preprocess_add_request(self, request: EngineCoreRequest) -> tuple[Request, int]:
"""Preprocess the request.