-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Support encoder-only models without KV-Cache #21270
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
DarkLight1337
merged 21 commits into
vllm-project:main
from
maxdebayser:v1_encoder_only
Jul 26, 2025
+352
−99
Merged
Changes from 9 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8a2c588
Support encoder-only models without KV-Cache
maxdebayser 3f11075
Merge branch 'upstream_main' into v1_encoder_only
maxdebayser a416120
Merge branch 'upstream_main' into v1_encoder_only
maxdebayser d845e22
Merge branch 'upstream_main' into v1_encoder_only
maxdebayser 1f3fcc4
address review comments
maxdebayser 85bf5fe
Merge branch 'upstream_main' into v1_encoder_only
maxdebayser 8e2cba1
remove sliding window attention case
maxdebayser 7357614
address review comment
maxdebayser aa69e92
make causal a flag in common attention metadata
maxdebayser 838567f
Merge branch 'upstream_main' into v1_encoder_only
maxdebayser d81e143
fix typo
maxdebayser f0caa0b
Merge branch 'upstream_main' into v1_encoder_only
maxdebayser 9318e98
Merge branch 'upstream_main' into v1_encoder_only
maxdebayser 068697b
remove encoder model from unsupported test
maxdebayser 837e51b
fix apply_model tests
maxdebayser bec5419
Merge branch 'upstream_main' into v1_encoder_only
maxdebayser cbc2c4e
Try multiproc in test
maxdebayser 6f64b11
remove quant code
maxdebayser e39bc74
address review comment
maxdebayser b406896
Merge branch 'upstream_main' into v1_encoder_only
maxdebayser a0b0868
trigger ci
maxdebayser 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need
sys.maxsize
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just because
self.max_num_batched_tokens
can be unset, in this case themin
will take the valuedefault_max_num_seqs[usage_context]
. It's just to avoid writing anif
.