-
Notifications
You must be signed in to change notification settings - Fork 140
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
[KV Cache Injection] Causal Mask implementation for OPT and CodeGen #1677
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
87fe3a0
initial commit
dbogunowicz 4be95cc
Merge branch 'main' into feature/damian/refactor_injection
dbogunowicz 5c0280b
Merge branch 'main' into feature/damian/refactor_injection
dbogunowicz 0005056
Merge branch 'main' into feature/damian/refactor_injection
dbogunowicz 9368269
[KV Cache Injection] Causal Mask for CodeGen (#1676)
dbogunowicz d927e9f
Merge branch 'main' into feature/damian/refactor_injection
dbogunowicz db62ca0
[KV Cache Injection] Causal Mask for OPT (#1688)
dbogunowicz f4cfc8f
replace boolean causal mask for int64 causal mask
dbogunowicz 5f434bc
Merge branch 'main' into feature/damian/refactor_injection
dbogunowicz 6d3b2b9
better logging info
224412f
Merge remote-tracking branch 'origin/main' into feature/damian/refact…
9b92f77
allow transformations to be also a list
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
48 changes: 0 additions & 48 deletions
48
src/sparseml/exporters/transforms/kv_cache/positions_adjustment_base.py
This file was deleted.
Oops, something went wrong.
89 changes: 0 additions & 89 deletions
89
src/sparseml/exporters/transforms/kv_cache/positions_adjustment_codegen.py
This file was deleted.
Oops, something went wrong.
133 changes: 0 additions & 133 deletions
133
src/sparseml/exporters/transforms/kv_cache/positions_adjustment_opt.py
This file was deleted.
Oops, something went wrong.
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.
would be great to support a list here eventually instead in case we don't want to squash many steps into a single transform or enable more code sharing between model specific additional transforms outside of inheritance