support rl feature : weight checker (#51350)
Signed-off-by: shiyuan680 <yangcheng104@huawei.com> Signed-off-by: Ronald1995 <ronaldautomobile@163.com> Signed-off-by: aoshen02 <aoshen02@users.noreply.github.com> Co-authored-by: shiyuan680 <yangcheng104@huawei.com> Co-authored-by: Ronald1995 <ronaldautomobile@163.com> Co-authored-by: DeepSeek Harness <noreply@deepseek.com> Co-authored-by: aoshen02 <aoshen02@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: aoshen02 <aoshen@inferact.ai>
This commit is contained in:
co-authored by
shiyuan680
Ronald1995
DeepSeek Harness
aoshen02
Claude Opus 5.5
aoshen02
parent
a8e069f81b
commit
42d9f8ccdb
@@ -1125,6 +1125,9 @@ class AsyncLLM(EngineClient):
|
||||
async def is_sleeping(self) -> bool:
|
||||
return await self.engine_core.is_sleeping_async()
|
||||
|
||||
async def compute_weight_checksums(self) -> list[dict[str, str]]:
|
||||
return await self.engine_core.compute_weight_checksums_async()
|
||||
|
||||
async def add_lora(self, lora_request: LoRARequest) -> bool:
|
||||
"""Load a new LoRA adapter into the engine for future requests."""
|
||||
return await self.engine_core.add_lora_async(lora_request)
|
||||
|
||||
@@ -1005,6 +1005,9 @@ class EngineCore:
|
||||
def execute_dummy_batch(self):
|
||||
self.model_executor.execute_dummy_batch()
|
||||
|
||||
def compute_weight_checksums(self) -> list[dict[str, str]]:
|
||||
return self.collective_rpc("compute_weight_checksums")
|
||||
|
||||
def add_lora(self, lora_request: LoRARequest) -> bool:
|
||||
return self.model_executor.add_lora(lora_request)
|
||||
|
||||
|
||||
@@ -1362,6 +1362,10 @@ class AsyncMPClient(MPClient):
|
||||
"collective_rpc", method, timeout, args, kwargs
|
||||
)
|
||||
|
||||
async def compute_weight_checksums_async(self) -> list[dict[str, str]]:
|
||||
per_engine = await self.call_utility_all_async("compute_weight_checksums")
|
||||
return [worker for workers in per_engine for worker in workers]
|
||||
|
||||
async def handle_fault(
|
||||
self, ft_request: FaultToleranceRequest
|
||||
) -> FaultToleranceResult:
|
||||
|
||||
Reference in New Issue
Block a user