forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core][2/N] Model runner refactoring part 2. Combine prepare prefill …
…/ decode to a single API (vllm-project#4681) This PR combines prepare_prompt and prepare_decode into a single API. This PR also coelsce the attn metadata for prefill/decode to a single class and allow to slice them when running attn backend. It also refactors subquery_start_loc which was not refactored in the previous PR
- Loading branch information
Showing
18 changed files
with
777 additions
and
730 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
from vllm.attention.backends.abstract import (AttentionBackend, | ||
AttentionMetadata, | ||
AttentionMetadataPerStage) | ||
AttentionMetadata) | ||
from vllm.attention.layer import Attention | ||
from vllm.attention.selector import get_attn_backend | ||
|
||
__all__ = [ | ||
"Attention", | ||
"AttentionBackend", | ||
"AttentionMetadata", | ||
"AttentionMetadataPerStage", | ||
"Attention", | ||
"get_attn_backend", | ||
] |
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
Oops, something went wrong.