-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
[5/N][Attention] Finish eliminating vllm/attention folder
#32064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ProExpertProg
merged 26 commits into
vllm-project:main
from
MatthewBonanni:attention_restructure_5
Jan 27, 2026
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
3f2691a
Move kv_transfer_utils
MatthewBonanni 1cb4ce3
Start splitting up layer.py
MatthewBonanni d55d99a
Move content out of kv_sharing_utils.py and delete file
MatthewBonanni d182894
Update imports
MatthewBonanni 47f80e9
Move helpers, delete layer.py
MatthewBonanni ddda80c
Delete vllm/attention
MatthewBonanni 99e5293
Update and remove old references to vllm/attention
MatthewBonanni 9942dff
Add dependency
MatthewBonanni 3111dd0
Add to AMD
MatthewBonanni 8b56809
Add to test-pipeline.yaml
MatthewBonanni 5eb3a47
Add imports to __init__
MatthewBonanni 877c5e9
Update imports
MatthewBonanni fc11d9d
Merge branch 'main' into attention_restructure_5
MatthewBonanni d5a9b0e
Fix circular imports
MatthewBonanni 3c91476
Move maybe_calc_kv_scales below Attention
MatthewBonanni 1e6ebc3
Add comment
MatthewBonanni 4aee556
Merge branch 'main' into attention_restructure_5
MatthewBonanni 84a7c03
Lazy import flashinfer
MatthewBonanni ed5bd4b
Merge branch 'main' into attention_restructure_5
MatthewBonanni 8545dfd
Fix molmo
MatthewBonanni fb5b97e
Merge branch 'main' into attention_restructure_5
MatthewBonanni 3b6eef3
Merge branch 'main' into attention_restructure_5
MatthewBonanni 99b8a64
Merge branch 'main' into attention_restructure_5
MatthewBonanni cfb5220
Fix imports
MatthewBonanni 3ed57e7
Merge branch 'main' into attention_restructure_5
MatthewBonanni e00ccbc
Merge branch 'main' into attention_restructure_5
MatthewBonanni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # SPDX-FileCopyrightText: Copyright contributors to the vLLM project | ||
|
|
||
| from vllm.model_executor.layers.attention.attention import Attention | ||
| from vllm.model_executor.layers.attention.chunked_local_attention import ( | ||
| ChunkedLocalAttention, | ||
| ) | ||
| from vllm.model_executor.layers.attention.cross_attention import CrossAttention | ||
| from vllm.model_executor.layers.attention.encoder_only_attention import ( | ||
| EncoderOnlyAttention, | ||
| ) | ||
| from vllm.model_executor.layers.attention.mla_attention import MLAAttention | ||
| from vllm.model_executor.layers.attention.mm_encoder_attention import MMEncoderAttention | ||
| from vllm.model_executor.layers.attention.static_sink_attention import ( | ||
| StaticSinkAttention, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "Attention", | ||
| "ChunkedLocalAttention", | ||
| "CrossAttention", | ||
| "EncoderOnlyAttention", | ||
| "MLAAttention", | ||
| "MMEncoderAttention", | ||
| "StaticSinkAttention", | ||
| ] | ||
MatthewBonanni marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.