-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[V1][CUDA Graph] Fix attention metadata tensor sizes for padded batches #24002
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
Closed
Closed
Changes from 13 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
b7d124c
[V1][CUDA Graph] Fix attention metadata tensor sizes for padded batches
ayushsatyam146 a42e3ce
review comments
LucasWilkinson f586e2b
Merge branch 'main' into cudagraph-fix
LucasWilkinson 93071cf
format
LucasWilkinson f6b7d63
Merge branch 'main' into cudagraph-fix
LucasWilkinson 9acd529
cleanup
LucasWilkinson d6a5a9a
cleanup
LucasWilkinson 4a0e9df
more cleanup
LucasWilkinson 0895405
Merge remote-tracking branch 'origin/main' into cudagraph-fix
LucasWilkinson 3f495e2
cleanup
LucasWilkinson 01db86e
clean up
LucasWilkinson 5780e9a
no need for lora change
LucasWilkinson 00c3280
review comments
LucasWilkinson 5d838ed
Merge remote-tracking branch 'origin/main' into cudagraph-fix
LucasWilkinson 370e700
more refactoring
LucasWilkinson a335b80
unifiy build attention metadata
LucasWilkinson 89ca98e
clean-up
LucasWilkinson bbbc8fb
refactor
LucasWilkinson 997f71e
wip
LucasWilkinson c907ef3
cleanup
LucasWilkinson d88842f
cleanup
LucasWilkinson 39562aa
fix
LucasWilkinson 0d997cf
cleanup
LucasWilkinson ccfb764
cleanup
LucasWilkinson 021882c
fix
LucasWilkinson 1d533bc
clean up
LucasWilkinson e48ab54
fix docs error
LucasWilkinson f3d09f5
Merge remote-tracking branch 'nm/lwilkinson/seperate-build-attn-metad…
LucasWilkinson d23b110
Fix merge conflicts: add missing imports and fix indentation
LucasWilkinson c3eba9b
Merge remote-tracking branch 'origin/main' into pr/ayushsatyam146/24002
LucasWilkinson d00b29c
wip
LucasWilkinson df7edde
wip
LucasWilkinson f95af46
Merge branch 'lwilkinson/pad-before-metadata' into pr/ayushsatyam146/…
LucasWilkinson 6160f1c
update docs
LucasWilkinson cebcc54
cleanup
LucasWilkinson 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
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.
I don't think I understand what this does. It gives the maximum possible number of non-empty requests? But I thought we also have requests of length 0 sometimes?
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.
This just mirrors what we capture in the dummy run (this behavior is unchanged by this PR, we just track num_reqs explicitly now); we need to refactor the dummy_run, that'll be a follow-up