Repository navigation
[DSv4] Integrate TRT-LLM DSv4 Attention for SM100/103 #30805
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 12 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
7991319
Integrate TRT-LLM DSv4 sparse attention kernels.
akhilg-nv 3730db3
Re-enable in-graph metadata prep on trtllm backend
akhilg-nv 3f4fd44
Build trtllm metadata more efficiently
akhilg-nv 0490d97
Enable MTP (EAGLE specdec) on the trtllm backend
akhilg-nv e8330ee
Merge branch 'main' into dsv4_fp8_trtllm_gen
b8zhong a090cac
ci: register the DSv4 trtllm backend test on a suite that actually runs
b8zhong c2b6798
test: run the per-commit B200 DSv4-Flash recipes on the trtllm attent…
b8zhong bc12ba2
fix: classify the trtllm prefill metadata fields in DSV4AttnMetadata.…
b8zhong b2cd983
Fix breakable cuda graphs, use host-side prep for MTP accuracy
akhilg-nv ec497fc
Merge branch 'main' into dsv4_fp8_trtllm_gen
b8zhong a6bc903
re-enable in-graph metadata prep for MTP, improve comments
akhilg-nv 5f8078a
Fix for balanced MTP + DP
akhilg-nv 2d77c92
Fix lint: strip trailing whitespace in deepseek_v4_backend comment
5c468f3
Avoid dummy extend for prefill BCG on DP with idle rank
akhilg-nv 7a083d7
Merge remote-tracking branch 'fork/main' into dsv4_fp8_trtllm_gen
akhilg-nv 562249d
Make trtllm default DSv4 attention backend for fp8 kv
akhilg-nv c588d47
Fix trtllm DSv4 kernel memory-safety under spec decoding + DP overlap
akhilg-nv 9acd565
Disable overlap scheduler for trtllm DSv4 + spec + DP
akhilg-nv f79d774
Merge main into dsv4_fp8_trtllm_gen
YAMY1234 6a4ddd5
Fix DSV4 TRT-LLM prefill padding and backend guards
YAMY1234 07f527f
Fix DSV4 TRT-LLM speculative stability
YAMY1234 4aaeae5
Stabilize DSV4 disaggregation graph capture
YAMY1234 906e230
Merge main into dsv4_fp8_trtllm_gen
YAMY1234 507d0eb
Address review, make the trtllm DSV4 backend opt-in and self-contained
akhilg-nv 74eb6f1
Merge remote-tracking branch 'fork/main' into dsv4_fp8_trtllm_gen
akhilg-nv f3bb0cc
Merge branch 'main' into dsv4_fp8_trtllm_gen
akhilg-nv 3dfd842
Merge branch 'main' into dsv4_fp8_trtllm_gen
akhilg-nv 39bc7db
style: format DSV4 compressor
YAMY1234 ebf0145
[DSv4] trtllm backend: drop unneeded shared-path changes, keep MTP, s…
YAMY1234 6865a90
Merge main into dsv4_fp8_trtllm_gen
YAMY1234 3666e12
style: trim DSV4 trtllm comments
YAMY1234 a47aa31
[DSv4] trtllm backend: fail closed on PD disaggregation and disabled …
YAMY1234 6c0337d
Merge branch 'main' into dsv4_fp8_trtllm_gen
nvpohanh 4708f64
[DSv4] trtllm backend: point the PD disaggregation guard at tracking …
YAMY1234 44e9376
Merge branch 'main' into dsv4_fp8_trtllm_gen
YAMY1234 f432ba0
[DSv4] Move the trtllm backend test under test/registered/e2e/dsv4 pe…
YAMY1234 1ed93d9
[DSv4] trtllm hook: drop the removed CP V1 flags from the context-par…
YAMY1234 4021365
Merge branch 'main' into dsv4_fp8_trtllm_gen
nvpohanh 1d82b50
[DSv4] trtllm BCG test: use --cuda-graph-max-bs-prefill (piecewise fl…
YAMY1234 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
Some comments aren't visible on the classic Files Changed page.
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
486 changes: 481 additions & 5 deletions
486
python/sglang/srt/layers/attention/deepseek_v4_backend.py
Large diffs are not rendered by default.
Oops, something went wrong.
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.
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.
Uh oh!
There was an error while loading. Please reload this page.