[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
+7
View File
@@ -425,6 +425,13 @@ class LLMEngine:
) -> list[_R]:
return self.engine_core.collective_rpc(method, timeout, args, kwargs)
def set_weight_version(self, weight_version: str) -> None:
self.engine_core.set_weight_version(weight_version)
def get_weight_version(self) -> str:
"""Return the latest committed weight version."""
return self.engine_core.get_weight_version()
def apply_model(self, func: Callable[[nn.Module], _R]) -> list[_R]:
return self.collective_rpc("apply_model", args=(func,))