Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions ucm/integration/vllm/uc_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def start_load_kv(self, forward_context: "ForwardContext", **kwargs) -> None:
self._need_load_reqs[request.request_id].append(k_task)
if not self.is_mla:
self._need_load_reqs[request.request_id].append(v_task)
self.layerwise_load_tasks.pop(request.request_id)
continue

if (
Expand Down Expand Up @@ -570,18 +571,17 @@ def md5(input) -> int:
if (
request.kv_transfer_params
and request.kv_transfer_params["load_async"] == False
):
) or num_lookup_hits == 0:
return 0, False
request.kv_transfer_params = request.kv_transfer_params or {}
request.kv_transfer_params["load_async"] = False
if num_lookup_hits > 0:
self.request_block_infos[request.request_id] = RequestBlockInfo(
block_hashes=block_hashes,
block_operations=block_operations,
start_position=start_position,
)
self._need_load_reqs[request.request_id] = []
return num_lookup_hits * self.block_size, True
self.request_block_infos[request.request_id] = RequestBlockInfo(
block_hashes=block_hashes,
block_operations=block_operations,
start_position=start_position,
)
self._need_load_reqs[request.request_id] = []
return num_lookup_hits * self.block_size, True

# Create blocks for the remaining (unmatched) blocks
if num_lookup_hits < len(remain_hashes):
Expand Down