-
Notifications
You must be signed in to change notification settings - Fork 34.1k
[cache] Allow sliding window layers to be roll-backed for speculative decoding #47447
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
Changes from all commits
bafc285
1d60518
68075f8
5ec7b73
2cbeaf4
3a73fcc
1ece6c2
37ad4d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,7 +44,7 @@ | |
| logger = logging.get_logger(__name__) | ||
| METADATA_FIELDS = ("_from_model_config", "_commit_hash", "_original_object_hash", "transformers_version") | ||
| STATIC_CACHE_IMPLEMENTATIONS = ("static", "offloaded_static") | ||
| DYNAMIC_CACHE_IMPLEMENTATIONS = ("dynamic", "dynamic_full", "offloaded", "quantized") | ||
| DYNAMIC_CACHE_IMPLEMENTATIONS = ("dynamic", "offloaded", "quantized") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need som deprecation notice?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was only used internally for assisted decoding, that's why I did not add one - was not intended for external usage when it was added |
||
| # All the following are redundant and deprecated, but kept for BC | ||
| DEPRECATED_STATIC_CACHE_IMPLEMENTATIONS = ( | ||
| "sliding_window", | ||
|
|
||
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.
I guess this can only happen on the initial prefill?
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.
Not necessarily, can be during decode as well, or during another forward with more than 1 token later on