-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Misc] Enhance attention selector #4751
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
21945e3
Enhance attention selector
WoosukKwon 72d5155
Fix
WoosukKwon c49d015
Revert
WoosukKwon 8a8bb1c
Fix CPU
WoosukKwon 1ff4fbd
Fix
WoosukKwon adf545a
Fix
WoosukKwon 974a4f8
Fix CPU
WoosukKwon 8a629e5
Fix
WoosukKwon d622b3e
Fix
WoosukKwon d27c139
Fix Llama
WoosukKwon e4fa494
Fix
WoosukKwon e2a4ba0
yapf
WoosukKwon ee71445
Update models
WoosukKwon 974ed4d
Fix
WoosukKwon ec72063
Fix
WoosukKwon 180acaa
Fix
WoosukKwon 4a19d96
Merge branch 'main' into attn-selector
WoosukKwon 1c2ad0a
Add comment
WoosukKwon 8cfb402
Remove kv_cache_dtype
WoosukKwon 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 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
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
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
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
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.
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.
QQ: when is this None? (should we just not allow None here? Since cache config is supposed to be created by default?)
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.
Good point. In most situations,
cache_config
isn'tNone
. However, I wanted to provide the flexibility to initialize the model withoutcache_config
, which can be particularly useful in niche scenarios such as testing the model loader. For instance, some tests intest_tensorizer
only use the HF config to initialize the model, without setting up aCacheConfig
orModelConfig
. Additionally, allowingcache_config
to be optional helps maintain consistency with the HF model interface, where a model can be instantiated solely with the HF config.I think this adjustment makes the setup more versatile and aligns better with existing practices.