Skip to content

Commit 684043f

Browse files
Apply suggestions from code review
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Hongkuan Zhou <tedzhouhk@gmail.com>
1 parent 7f5a1b0 commit 684043f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/vllm_v0/components/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ async def generate(self, request: PreprocessedRequest):
225225
remote_prefill_request_callback=self.get_remote_prefill_request_callback(),
226226
)
227227
logger.info(
228-
f"Prefilling remotely for request {request_id} with length {len(request.token_ids)} (estimated prefix hit length {request.estimated_prefix_hit_num_blocks * self.engine_args.block_size})"
228+
f"Prefilling remotely for request {request_id} with length {len(request.token_ids)} (estimated prefix hit length {(request.estimated_prefix_hit_num_blocks or 0) * self.engine_args.block_size})"
229229
)
230230
else:
231231
remote_prefill_params = None

0 commit comments

Comments
 (0)