mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 01:45:02 +08:00
[Bugfix][Failing Test] Fix nixl connector test when promt size < block size (#18429)
Signed-off-by: wwl2755 <wangwenlong2755@gmail.com>
This commit is contained in:
parent
ad0012a0ac
commit
d06dd72ba9
@ -259,6 +259,15 @@ class NixlConnectorScheduler:
|
|||||||
# Loop through scheduled reqs and convert to ReqMeta.
|
# Loop through scheduled reqs and convert to ReqMeta.
|
||||||
for req_id, (req, block_ids) in self._reqs_need_recv.items():
|
for req_id, (req, block_ids) in self._reqs_need_recv.items():
|
||||||
assert req.kv_transfer_params is not None
|
assert req.kv_transfer_params is not None
|
||||||
|
# For the case where there are no remote blocks to pull
|
||||||
|
# (block_ids is empty), we don't need to schedule
|
||||||
|
# an async read on the worker side.
|
||||||
|
if not block_ids:
|
||||||
|
logger.debug(
|
||||||
|
"Skipping adding request %s to NixlConnectorMetadata, "
|
||||||
|
"as there are no remote blocks to pull", req_id)
|
||||||
|
continue
|
||||||
|
|
||||||
meta.add_new_req(
|
meta.add_new_req(
|
||||||
request_id=req_id,
|
request_id=req_id,
|
||||||
local_block_ids=block_ids,
|
local_block_ids=block_ids,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user