[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:
+10
-2
@@ -267,6 +267,14 @@ class EngineClient(ABC):
|
||||
"""Batched weight update for RL training."""
|
||||
raise NotImplementedError
|
||||
|
||||
async def finish_weight_update(self) -> None:
|
||||
"""Finish the current weight update."""
|
||||
async def finish_weight_update(self, weight_version: str | None = None) -> None:
|
||||
"""Finish the weight update and set its version if provided."""
|
||||
raise NotImplementedError
|
||||
|
||||
async def update_weight_version(self, new_version: str) -> None:
|
||||
"""Set the weight version without updating weights."""
|
||||
raise NotImplementedError
|
||||
|
||||
async def get_weight_version(self) -> str:
|
||||
"""Return the latest committed weight version."""
|
||||
raise NotImplementedError
|
||||
|
||||
Reference in New Issue
Block a user