Repository navigation
Conversation
Signed-off-by: Barry Kang <[email protected]>
Signed-off-by: Barry Kang <[email protected]>
Signed-off-by: Yuxian Qiu <[email protected]>
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 21, 2026
…rse MLA FMHA Pin flashinfer-prims-ts to flashinfer-ai/flashinfer main 3bf6d3202. It carries the merged native two-source sparse MLA (flashinfer-ai/flashinfer#5434), including the group-major fused output and the 2CTA short-list schedule that flashinfer-ai/flashinfer#6345 had stacked on the pre-merge branch, plus the PrimTS changes main took since ae312f7cc (NVIDIA#6529 compile cache and FP8-to-BF16 decode, NVIDIA#6482, NVIDIA#5351, NVIDIA#6089, NVIDIA#6014). The compatibility patch is regenerated for the new tree: the flashinfer-python 0.6.18 API alias, stripped trace templates, absolute imports of the flashinfer cute_dsl/utils/jit helpers (now also jit.cute_dsl_core and cute_dsl.availability), relative kernel imports in the sparse plan resolver, and the module-scope helpers_paged import for CuTe DSL 4.8 that upstream TRT-LLM already carried. The merged kernel API takes the two index lists and their live lengths directly and combines the Q and KV descales into the softmax and output scales, so the adapter drops the SparseMLAPreparedMetadata route packing (the Triton kernel, routes, execution lengths and scale rows) and binds the sparse_attn_predict index buffer plus two int32 length buffers per plan. The fused group-major output contract is unchanged. The adapter unit test drives the wrapper through the same direct-index API. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
1 task done
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 22, 2026
…ai/flashinfer#5434 The vendored flashinfer-prims-ts tree moves to the head of flashinfer-ai/ flashinfer#5434 (refs/pull/5434/head, 6fdd402b, merged into FlashInfer main on 2026-10-20 as e67e925f), the PR that introduced the native two-source sparse MLA this backend uses. Relative to TensorRT-LLM main's pin (ae312f7c) the tree gains that PR plus flashinfer NVIDIA#6014 and NVIDIA#6089; relative to the intermediate revision of this PR that pinned main @ 3bf6d3202 it deliberately leaves out NVIDIA#6529 (on-disk kernel compile cache, FP8-to-BF16 decode), NVIDIA#6482 (ragged-Q tensor-map guard on the opt-in dense context path) and NVIDIA#5351 (QToken-KvBlock sparse tuning, no TensorRT-LLM caller): the vendored source stays the branch of the PR being promoted, and a follow-up re-pin to main picks those up. The compatibility patch is regenerated for this tree (7 files, 30 hunks: the flashinfer-python 0.6.18 import adaptations only). The positional output_quant_args hunk is dropped, since it only served kernels reloaded from the compile cache that this tree does not have, and so is the unit test of that reload path. The sparse-MLA warm-up's docstring now says that a kernel variant's first plan compiles it (tens of seconds) rather than loading it from a cache. Verified on B200 with the re-vendored tree: test_prims_ts_vendored_imports.py + test_fmha_registry.py 13 passed; test_prims_ts_sparse_mla_fmha.py 36 passed (cold compile 20 min 48 s); DeepSeek-V4-Flash GSM8K (TP4/EP4, attention DP) 95.11 with PrimsTSSparseMlaFmha serving all 43 layers on every rank (reference 95.11). The remaining suites are quoted in the PR description. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 22, 2026
…cal branch with flashinfer main merged The vendored flashinfer-prims-ts tree moves from yuxianq/flashinfer trtllm-prims-ts-dev-20261012 @ ae312f7c (TensorRT-LLM main's pin) to yunruis/flashinfer trtllm-prims-ts-dev-20261022 @ 10fcf479: that branch is the canonical branch's current tip (ae3851ab, which adds the Blackwell ragged-Q tensor-map fixes) with flashinfer-ai/flashinfer main @ 3bf6d3202 merged in (no conflicts). The merge brings the native two-source sparse MLA this backend uses (flashinfer NVIDIA#5434), the attention kernel compile cache (NVIDIA#6529), and NVIDIA#6482, NVIDIA#5351, NVIDIA#6089 and NVIDIA#6014; the resulting prims_ts tree is byte-identical to main @ 3bf6d3202 (the dev fixes are the same change as NVIDIA#6482). The compatibility patch is the one reviewed with the earlier main pin (7 files, 33 hunks: the flashinfer-python 0.6.18 import adaptations plus the positional output_quant_args launch that kernels reloaded from the compile cache need, flashinfer NVIDIA#6843). Nothing in tensorrt_llm/ changes. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 22, 2026
…cal branch plus the flashinfer main PrimTS commits The vendored flashinfer-prims-ts tree moves from yuxianq/flashinfer trtllm-prims-ts-dev-20261012 @ ae312f7c (TensorRT-LLM main's pin) to yunruis/flashinfer trtllm-prims-ts-dev-20261022 @ f924fd45: a linear branch on the canonical branch's current tip (ae3851ab, which adds the Blackwell ragged-Q tensor-map fixes) with the six flashinfer-ai/flashinfer main commits that touch flashinfer/attention/prims_ts since ae312f7c cherry-picked on top, in order and without conflicts: NVIDIA#6014, NVIDIA#6089, NVIDIA#5351, NVIDIA#6482, NVIDIA#6529 (attention kernel compile cache, FP8-to-BF16 decode) and NVIDIA#5434 (the native two-source sparse MLA this backend uses). The resulting prims_ts tree is byte-identical to flashinfer main @ 3bf6d3202. The compatibility patch is the one reviewed with the earlier main pin (7 files, 33 hunks: the flashinfer-python 0.6.18 import adaptations plus the positional output_quant_args launch that kernels reloaded from the compile cache need, flashinfer NVIDIA#6843). Nothing in tensorrt_llm/ changes. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 23, 2026
…rse MLA FMHA Pin flashinfer-prims-ts to flashinfer-ai/flashinfer main 3bf6d3202. It carries the merged native two-source sparse MLA (flashinfer-ai/flashinfer#5434), including the group-major fused output and the 2CTA short-list schedule that flashinfer-ai/flashinfer#6345 had stacked on the pre-merge branch, plus the PrimTS changes main took since ae312f7cc (NVIDIA#6529 compile cache and FP8-to-BF16 decode, NVIDIA#6482, NVIDIA#5351, NVIDIA#6089, NVIDIA#6014). The compatibility patch is regenerated for the new tree: the flashinfer-python 0.6.18 API alias, stripped trace templates, absolute imports of the flashinfer cute_dsl/utils/jit helpers (now also jit.cute_dsl_core and cute_dsl.availability), relative kernel imports in the sparse plan resolver, and the module-scope helpers_paged import for CuTe DSL 4.8 that upstream TRT-LLM already carried. The merged kernel API takes the two index lists and their live lengths directly and combines the Q and KV descales into the softmax and output scales, so the adapter drops the SparseMLAPreparedMetadata route packing (the Triton kernel, routes, execution lengths and scale rows) and binds the sparse_attn_predict index buffer plus two int32 length buffers per plan. The fused group-major output contract is unchanged. The adapter unit test drives the wrapper through the same direct-index API. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 23, 2026
…cal branch plus the flashinfer main PrimTS commits The vendored flashinfer-prims-ts tree moves from yuxianq/flashinfer trtllm-prims-ts-dev-20261012 @ ae312f7c (TensorRT-LLM main's pin) to yunruis/flashinfer trtllm-prims-ts-dev-20261022 @ f924fd45: a linear branch on the canonical branch's current tip (ae3851ab, which adds the Blackwell ragged-Q tensor-map fixes) with the six flashinfer-ai/flashinfer main commits that touch flashinfer/attention/prims_ts since ae312f7c cherry-picked on top, in order and without conflicts: NVIDIA#6014, NVIDIA#6089, NVIDIA#5351, NVIDIA#6482, NVIDIA#6529 (attention kernel compile cache, FP8-to-BF16 decode) and NVIDIA#5434 (the native two-source sparse MLA this backend uses). The resulting prims_ts tree is byte-identical to flashinfer main @ 3bf6d3202. The compatibility patch is the one reviewed with the earlier main pin (7 files, 33 hunks: the flashinfer-python 0.6.18 import adaptations plus the positional output_quant_args launch that kernels reloaded from the compile cache need, flashinfer NVIDIA#6843). Nothing in tensorrt_llm/ changes. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 23, 2026
…ted canonical tip TensorRT-LLM main (NVIDIA#20224, promoted by NVIDIA#20870) moved the flashinfer-prims-ts canonical pin from ae3851ab to 0e0761ef (the NVIDIA#6014 SM103 block-sparse/sage tuning). The linear source branch is rebased onto that tip as yunruis/flashinfer trtllm-prims-ts-dev-20261023 @ aa709061: the duplicate NVIDIA#6014 cherry-pick drops out and the remaining five flashinfer main PrimTS commits (NVIDIA#6089, NVIDIA#5351, NVIDIA#6482, NVIDIA#6529, NVIDIA#5434) replay without conflicts. The vendored tree, patch and digests are byte-identical to the previous pin (f924fd45); only the lock's branch and commit change. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 24, 2026
…rse MLA FMHA Pin flashinfer-prims-ts to flashinfer-ai/flashinfer main 3bf6d3202. It carries the merged native two-source sparse MLA (flashinfer-ai/flashinfer#5434), including the group-major fused output and the 2CTA short-list schedule that flashinfer-ai/flashinfer#6345 had stacked on the pre-merge branch, plus the PrimTS changes main took since ae312f7cc (NVIDIA#6529 compile cache and FP8-to-BF16 decode, NVIDIA#6482, NVIDIA#5351, NVIDIA#6089, NVIDIA#6014). The compatibility patch is regenerated for the new tree: the flashinfer-python 0.6.18 API alias, stripped trace templates, absolute imports of the flashinfer cute_dsl/utils/jit helpers (now also jit.cute_dsl_core and cute_dsl.availability), relative kernel imports in the sparse plan resolver, and the module-scope helpers_paged import for CuTe DSL 4.8 that upstream TRT-LLM already carried. The merged kernel API takes the two index lists and their live lengths directly and combines the Q and KV descales into the softmax and output scales, so the adapter drops the SparseMLAPreparedMetadata route packing (the Triton kernel, routes, execution lengths and scale rows) and binds the sparse_attn_predict index buffer plus two int32 length buffers per plan. The fused group-major output contract is unchanged. The adapter unit test drives the wrapper through the same direct-index API. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 24, 2026
…cal branch plus the flashinfer main PrimTS commits The vendored flashinfer-prims-ts tree moves from yuxianq/flashinfer trtllm-prims-ts-dev-20261012 @ ae312f7c (TensorRT-LLM main's pin) to yunruis/flashinfer trtllm-prims-ts-dev-20261022 @ f924fd45: a linear branch on the canonical branch's current tip (ae3851ab, which adds the Blackwell ragged-Q tensor-map fixes) with the six flashinfer-ai/flashinfer main commits that touch flashinfer/attention/prims_ts since ae312f7c cherry-picked on top, in order and without conflicts: NVIDIA#6014, NVIDIA#6089, NVIDIA#5351, NVIDIA#6482, NVIDIA#6529 (attention kernel compile cache, FP8-to-BF16 decode) and NVIDIA#5434 (the native two-source sparse MLA this backend uses). The resulting prims_ts tree is byte-identical to flashinfer main @ 3bf6d3202. The compatibility patch is the one reviewed with the earlier main pin (7 files, 33 hunks: the flashinfer-python 0.6.18 import adaptations plus the positional output_quant_args launch that kernels reloaded from the compile cache need, flashinfer NVIDIA#6843). Nothing in tensorrt_llm/ changes. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
yunruis
added a commit
to yunruis/TensorRT-LLM
that referenced
this pull request
Oct 24, 2026
…ted canonical tip TensorRT-LLM main (NVIDIA#20224, promoted by NVIDIA#20870) moved the flashinfer-prims-ts canonical pin from ae3851ab to 0e0761ef (the NVIDIA#6014 SM103 block-sparse/sage tuning). The linear source branch is rebased onto that tip as yunruis/flashinfer trtllm-prims-ts-dev-20261023 @ aa709061: the duplicate NVIDIA#6014 cherry-pick drops out and the remaining five flashinfer main PrimTS commits (NVIDIA#6089, NVIDIA#5351, NVIDIA#6482, NVIDIA#6529, NVIDIA#5434) replay without conflicts. The vendored tree, patch and digests are byte-identical to the previous pin (f924fd45); only the lock's branch and commit change. AI-assisted. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: yunruis <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.