-
Notifications
You must be signed in to change notification settings - Fork 5.3k
feat: openai oss attention sink support with trtllm-gen backend #8825 #8834
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f43110a
initial support
Ying1123 2a91ff1
Add attention sink support init
yyihuang 5be26e2
Merge branch 'oss-oai' of https://github.com/sgl-project/sglang into …
yyihuang a9cd1b4
fix compatibility
Ying1123 5ae082e
minor
Ying1123 52c9a34
Merge branch 'main' into oss-oai
zhyncs bee0922
fix ci
Ying1123 5bb34cf
Merge branch 'oss-oai' of https://github.com/sgl-project/sglang into …
yyihuang e2efeca
fix ci
Ying1123 473a74b
fix sinks
yyihuang 7faa241
Merge branch 'oss-oai' into attn-sink
zhyncs a9ccc30
Merge branch 'main' of https://github.com/sgl-project/sglang into att…
yyihuang 6f1ee5c
upd
yyihuang aeb544d
ckpt: trtllm decode fail
yyihuang 355a6be
fix window size and attn backend choice
yyihuang 3955ae0
minor update: cuda graph
yyihuang f8e0704
Merge branch 'main' of https://github.com/sgl-project/sglang into att…
yyihuang 85421cc
upd
yyihuang 3b0b1f5
Merge branch 'main' of https://github.com/sgl-project/sglang into att…
yyihuang 88a867c
upd
yyihuang 38f5d79
fix cuda graph error
yyihuang e46b808
Merge branch 'main' of https://github.com/sgl-project/sglang into att…
yyihuang 175125c
Merge branch 'main' of https://github.com/sgl-project/sglang into att…
yyihuang 9ee038a
upd
yyihuang 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.
The function
forward_extendreturns atorch.Tensor, but it's missing a return type hint. Adding it improves code readability and allows static analysis tools to catch potential bugs.): cache_loc = forward_batch.out_cache_loc