[Bugfix][MooncakeStore] Fix finish-time save crash on hybrid models (#54643)
Signed-off-by: zhewenl <zhewenl@users.noreply.github.com> Co-authored-by: zhewenl <zhewenl@users.noreply.github.com>
This commit is contained in:
@@ -372,7 +372,12 @@ class MooncakeStoreScheduler:
|
||||
) in self._unfinished_requests.items():
|
||||
if request_id not in request_ids and request_id not in cached_reqs.req_ids:
|
||||
load_spec = self.load_specs.pop(request_id, None)
|
||||
if not load_spec:
|
||||
# A load spec may have been proposed by this connector's
|
||||
# lookup but rejected by MultiConnector in favor of another
|
||||
# connector. Only the chosen connector may issue the pending
|
||||
# load; the normal store path gets its blocks later from
|
||||
# SchedulerOutput once the request is actually scheduled.
|
||||
if load_spec is None or not load_spec.can_load:
|
||||
continue
|
||||
num_tokens_to_compute = load_spec.kvpool_cached_tokens
|
||||
request_tracker = RequestTracker(
|
||||
|
||||
Reference in New Issue
Block a user