forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add async copying to input preparation (#497)
This PR introduces async copying into _prepare_prompt and _prepare_decode, which makes copying faster. It also moves precompute_indices_and_offsets funtion into forward to avoid unnecessary H2D copying.
- Loading branch information
Showing
1 changed file
with
57 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Should it be
if prefix_block_list_tensor is not None:
? Otherwise, it may throwBoolean value of Tensor with more than one value is ambiguous
error when enablingprefix_caching
.