Skip to content

[None][chore] Disable add special tokens for Llama3.3 70B - #6482

Merged
litaotju merged 1 commit into
NVIDIA:mainfrom
chenfeiz0326:user/chenfeiz/update-llama3-tests
Aug 1, 2025
Merged

litaotju merged 1 commit into
NVIDIA:mainfrom
chenfeiz0326:user/chenfeiz/update-llama3-tests

Conversation

@chenfeiz0326

@chenfeiz0326 chenfeiz0326 commented Jul 30, 2025 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

Summary by CodeRabbit

  • Bug Fixes

    • Improved accuracy scores for Llama3.3-70B and Llama4-Scout models under FP8 and NVFP4 configurations.
    • Added support for kv_cache quantization in FP8 mode for select models.
  • Tests

    • Enhanced evaluation tests with explicit sampling parameters for consistent and reproducible results.

Description

Test Coverage

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

Details

run [--reuse-test (optional)pipeline-id --disable-fail-fast --skip-test --stage-list "A10-PyTorch-1, xxx" --gpu-type "A30, H100_PCIe" --test-backend "pytorch, cpp" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" --detailed-log --debug(experimental)]

Launch build/test pipelines. All previously running jobs will be killed.

--reuse-test (optional)pipeline-id (OPTIONAL) : Allow the new pipeline to reuse build artifacts and skip successful test stages from a specified pipeline or the last pipeline if no pipeline-id is indicated. If the Git commit ID has changed, this option will be always ignored. The DEFAULT behavior of the bot is to reuse build artifacts and successful test results from the last pipeline.

--disable-reuse-test (OPTIONAL) : Explicitly prevent the pipeline from reusing build artifacts and skipping successful test stages from a previous pipeline. Ensure that all builds and tests are run regardless of previous successes.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-PyTorch-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-PyTorch-1, xxx". Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--test-backend "pytorch, cpp" (OPTIONAL) : Skip test stages which don't match the specified backends. Only support [pytorch, cpp, tensorrt, triton]. Examples: "pytorch, cpp" (does not run test stages with tensorrt or triton backend). Note: Does NOT update GitHub pipeline status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests in addition to running L0 pre-merge pipeline.

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.

--extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx".

--detailed-log (OPTIONAL) : Enable flushing out all logs to the Jenkins console. This will significantly increase the log volume and may slow down the job.

--debug (OPTIONAL) : Experimental feature. Enable access to the CI container for debugging purpose. Note: Specify exactly one stage in the stage-list parameter to access the appropriate container environment. Note: Does NOT update GitHub check status.

For guidance on mapping tests to stage names, see docs/source/reference/ci-overview.md
and the scripts/test_to_stage_mapping.py helper.

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

@coderabbitai

coderabbitai Bot commented Jul 30, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Accuracy reference YAML files for GSM8K and MMLU were updated to add or revise quantization configuration keys and accuracy values for specific Llama models. Additionally, test methods for Llama-3.3-70B-Instruct now explicitly pass SamplingParams to evaluation calls, with no changes to method signatures or control flow.

Changes

Cohort / File(s) Change Summary
Accuracy Reference Updates: GSM8K
tests/integration/defs/accuracy/references/gsm8k.yaml
Updated accuracy values and added/modified kv_cache_quant_algo: FP8 keys for Llama-3.3-70B-Instruct and Llama-4-Scout-17B-16E-Instruct under certain quantization configurations.
Accuracy Reference Updates: MMLU
tests/integration/defs/accuracy/references/mmlu.yaml
Added kv_cache_quant_algo: FP8 key to entries for Llama-3.3-70B-Instruct where quant_algo: FP8 is specified; no changes to accuracy values were made.
Test Sampling Params
tests/integration/defs/accuracy/test_llm_api_pytorch.py
Modified test methods to instantiate and pass explicit SamplingParams (temperature=0.0, add_special_tokens=False) to evaluation calls for MMLU, GSM8K, and GPQADiamond tasks; no changes to method signatures or logic flow.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • test: add accuracy reference #6479: Updates accuracy values and adds the kv_cache_quant_algo: FP8 key for multiple models including meta-llama/Llama-3.3-70B-Instruct and meta-llama/Llama-4-Scout-17B-16E-Instruct in accuracy reference YAML files, overlapping with this PR’s modifications.

Suggested reviewers

  • litaotju
  • yilin-void
  • syuoni
  • LarryXFly

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 58cd28e and 95b2e15.

📒 Files selected for processing (3)
  • tests/integration/defs/accuracy/references/gsm8k.yaml (1 hunks)
  • tests/integration/defs/accuracy/references/mmlu.yaml (1 hunks)
  • tests/integration/defs/accuracy/test_llm_api_pytorch.py (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • tests/integration/defs/accuracy/references/mmlu.yaml
  • tests/integration/defs/accuracy/test_llm_api_pytorch.py
  • tests/integration/defs/accuracy/references/gsm8k.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Pre-commit Check
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@chenfeiz0326

Copy link
Copy Markdown
Collaborator Author

/bot run

@coderabbitai
coderabbitai Bot requested a review from litaotju July 30, 2025 13:51
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #13545 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #13545 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #10153 completed with status: 'SUCCESS'

@chenfeiz0326
chenfeiz0326 force-pushed the user/chenfeiz/update-llama3-tests branch from a5a85bc to 58cd28e Compare July 31, 2025 07:41
@chenfeiz0326

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #13652 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #13652 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #10247 completed with status: 'FAILURE'

@chenfeiz0326

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #13747 [ run ] triggered by Bot

Signed-off-by: Chenfei Zhang <[email protected]>
@chenfeiz0326
chenfeiz0326 force-pushed the user/chenfeiz/update-llama3-tests branch from 58cd28e to 95b2e15 Compare August 1, 2025 04:06
@chenfeiz0326 chenfeiz0326 changed the title fix: Set add_special_tokens=False for Llama3.3-70B FP4/FP8 acc tests [fix] Set add_special_tokens=False for Llama3.3-70B FP4/FP8 acc tests Aug 1, 2025
@chenfeiz0326 chenfeiz0326 changed the title [fix] Set add_special_tokens=False for Llama3.3-70B FP4/FP8 acc tests [feat] Set add_special_tokens=False for Llama3.3-70B FP4/FP8 acc tests Aug 1, 2025
@chenfeiz0326 chenfeiz0326 changed the title [feat] Set add_special_tokens=False for Llama3.3-70B FP4/FP8 acc tests [feat] Disable add special tokens for Llama3.3 70B FP4/FP's acc tests Aug 1, 2025
@chenfeiz0326 chenfeiz0326 changed the title [feat] Disable add special tokens for Llama3.3 70B FP4/FP's acc tests [None] Disable add special tokens for Llama3.3 70B FP4/FP's acc tests Aug 1, 2025
@chenfeiz0326 chenfeiz0326 changed the title [None] Disable add special tokens for Llama3.3 70B FP4/FP's acc tests [None] Disable add special tokens for Llama3.3 70B Aug 1, 2025
@chenfeiz0326 chenfeiz0326 changed the title [None] Disable add special tokens for Llama3.3 70B [None][chore] Disable add special tokens for Llama3.3 70B Aug 1, 2025
@chenfeiz0326

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #13762 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #13747 [ run ] completed with state ABORTED

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #13762 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #10342 completed with status: 'SUCCESS'
Pipeline passed with automatic retried tests. Check the rerun report for details.

@litaotju
litaotju merged commit ba5bdbb into NVIDIA:main Aug 1, 2025
lancelly pushed a commit to lancelly/TensorRT-LLM that referenced this pull request Aug 6, 2025
jain-ria pushed a commit to jain-ria/TensorRT-LLM that referenced this pull request Aug 7, 2025
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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants