Tiny assert no running requests when releasing memory to avoid IMA (#12341)

This commit is contained in:
fzyzcjy
2025-11-01 01:28:53 +08:00
committed by GitHub
parent cf0c24150a
commit 25257d8e00

View File

@@ -106,6 +106,10 @@ class SchedulerUpdateWeightsMixin:
def release_memory_occupation(
self: Scheduler, recv_req: ReleaseMemoryOccupationReqInput
):
assert (
self._is_no_request()
), "release_memory_occupation should be called only when no ongoing request."
tags = recv_req.tags
if tags is None or len(tags) == 0: