-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add Paged Attention Op for CUDA SM80 support #24595
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
Conversation
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.
You can commit the suggested changes from lintrunner.
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Outdated
Show resolved
Hide resolved
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Outdated
Show resolved
Hide resolved
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Outdated
Show resolved
Hide resolved
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Outdated
Show resolved
Hide resolved
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Outdated
Show resolved
Hide resolved
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Dismissed
Show dismissed
Hide dismissed
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Dismissed
Show dismissed
Hide dismissed
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Dismissed
Show dismissed
Hide dismissed
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.
You can commit the suggested changes from lintrunner.
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Outdated
Show resolved
Hide resolved
onnxruntime/test/python/transformers/test_paged_attention_cuda.py
Outdated
Show resolved
Hide resolved
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.
You can commit the suggested changes from lintrunner.
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.
You can commit the suggested changes from lintrunner.
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.
You can commit the suggested changes from lintrunner.
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.
You can commit the suggested changes from lintrunner.
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.
What design change needed if we want to support FP8 or FP4 paged attention in the future?
New kernel necessary |
Description
Adds Paged Attention Op which enables of Paged KV Cache. Inputs to this op are unpadded (packed / varlen) so Cumulative Sequence Lengths are a required input.
Motivation and Context
Adding this op to ONNXRuntime is necessary to allow the GenAI team to enable a continuous batching server API.