Repository navigation
feat(prims-ts): expose merge-compatible softmax statistics for prefill and decode #5489
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
Open
yuxianq
wants to merge
16
commits into
flashinfer-ai:main
Choose a base branch
from
yuxianq:prims-ts-mla-prefill--flashinfer-upstream
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+9,814
β206
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
09ad740
Expose merge-compatible softmax statistics for PrimTS context attention
yuxianq f8e2d59
Rename PrimTS context statistics option to store_softmax_stats
yuxianq 0562893
Expose merge-compatible PrimTS statistics for prefill and decode
yuxianq 6726e14
feat: support per-query KV bounds in PrimTS MLA decode
yuxianq 17573fd
perf: avoid split reduction for bounded SM107 MLA decode
yuxianq 28c5c81
test(prims-ts): cover packed MLA query pruning
yuxianq e5f34b0
perf(prims-ts): use LDRED for full packed dense KV tiles
yuxianq bd74ff6
perf(prims-ts): bound dense MLA KV work by request length
yuxianq ff9c601
fix(prims-ts): preserve original scales in softmax statistics
yuxianq dc1dc5f
test(prims-ts): apply FP8-aware empty-context checks
yuxianq 7342481
test: specify fixed query layout in statistics partition regression
yuxianq 2b789ba
feat: Support runtime-strided V in PrimTS prefill
yuxianq f38fe1d
fix(prims-ts): reconcile refreshed scale and split-workspace APIs
yuxianq a10e1c8
test(prims-ts): cover refreshed scale ABI and consolidate statistics β¦
yuxianq b570fdf
docs(prims-ts): clarify statistics scope after MXFP8 refresh
yuxianq 26b1976
fix(prims-ts): preserve device-scale pointer across reducer branches
yuxianq 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
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.
π― Functional Correctness | π‘ Minor | β‘ Quick win
π Supported by static analysis
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 3231
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 37009
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 41355
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 41932
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 19975
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 9815
π Script executed:
Repository: flashinfer-ai/flashinfer
Length of output: 4485
Define the all-empty partition merge.
If every independently computed partition is empty, each statistic pair is
(-inf, 0). The documented weight can then evaluateexp(-inf - -inf) * 0toNaN. State that an all-empty merge returns zero output and(-inf, 0)before calculating weights.π€ Prompt for AI Agents