Skip to content

[None][chore] Waive tests timing out on main - #9315

Merged
brb-nv merged 1 commit into
NVIDIA:mainfrom
brb-nv:user/brb/waive-11-19
Nov 19, 2025
Merged

brb-nv merged 1 commit into
NVIDIA:mainfrom
brb-nv:user/brb/waive-11-19

Conversation

@brb-nv

@brb-nv brb-nv commented Nov 19, 2025 •

Copy link
Copy Markdown
Collaborator

Description

This test is also timing out on main:

accuracy/test_disaggregated_serving.py::TestLlama3_1_8BInstruct::test_auto_dtype[False-True-False]

Attaching it to an existing bug: https://nvbugspro.nvidia.com/bug/5670480

Test Coverage

N/A

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

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.

Summary by CodeRabbit

  • Tests
    • Expanded test coverage for model optimization configurations to ensure reliability across additional scenarios.

@brb-nv
brb-nv requested a review from venkywonka November 19, 2025 19:51
@brb-nv
brb-nv force-pushed the user/brb/waive-11-19 branch from 7042c9f to 9af9899 Compare November 19, 2025 19:52
@brb-nv

brb-nv commented Nov 19, 2025

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "Unwaiving a test failing on main pre-merge"

@coderabbitai

coderabbitai Bot commented Nov 19, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Two test-case entries were added to the Llama3 8B Instruct auto dtype tests in the waives configuration file. One entry was added to the general test list and one SKIP entry for disaggregated serving tests, both using the parameterized case [False-True-False].

Changes

Cohort / File(s) Summary
Test configuration updates
tests/integration/test_lists/waives.txt
Added two new test-case entries for Llama3 8B Instruct auto dtype tests: one in the general test list and one SKIP entry for disaggregated serving tests with parameter case [False-True-False]

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5–10 minutes

  • Verify the new test case parameter [False-True-False] is consistent with existing test patterns and documentation
  • Confirm the SKIP entry placement and naming convention match the repository's waives configuration standards

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the primary change: waiving (skipping) tests that are timing out on the main branch, which aligns with the test-case entry modifications shown in the raw summary.
Description check ✅ Passed The PR description provides a clear explanation of what and why (test timing out with a bug reference), follows the template structure with Description and Test Coverage sections, and includes the completed PR checklist.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 49c45eb and 9af9899.

📒 Files selected for processing (1)
  • tests/integration/test_lists/waives.txt (1 hunks)
🧰 Additional context used
🧠 Learnings (7)
📓 Common learnings
Learnt from: tongyuantongyu
Repo: NVIDIA/TensorRT-LLM PR: 7781
File: tests/integration/test_lists/waives.txt:313-313
Timestamp: 2025-09-17T02:48:52.732Z
Learning: In TensorRT-LLM, `tests/integration/test_lists/waives.txt` is specifically for waiving/skipping tests, while other test list files like those in `test-db/` and `qa/` directories are for different test execution contexts (pre-merge, post-merge, QA tests). The same test appearing in both waives.txt and execution list files is intentional - the test is part of test suites but will be skipped due to the waiver.
Learnt from: EmmaQiaoCh
Repo: NVIDIA/TensorRT-LLM PR: 7370
File: tests/unittest/trt/model_api/test_model_quantization.py:24-27
Timestamp: 2025-08-29T14:07:45.863Z
Learning: In TensorRT-LLM's CI infrastructure, pytest skip markers (pytest.mark.skip) are properly honored even when test files have __main__ blocks that call test functions directly. The testing system correctly skips tests without requiring modifications to the __main__ block execution pattern.
Learnt from: fredricz-20070104
Repo: NVIDIA/TensorRT-LLM PR: 7645
File: tests/integration/test_lists/qa/llm_function_core.txt:648-648
Timestamp: 2025-09-09T09:40:45.658Z
Learning: In TensorRT-LLM test lists, it's common and intentional for the same test to appear in multiple test list files when they serve different purposes (e.g., llm_function_core.txt for comprehensive core functionality testing and llm_function_core_sanity.txt for quick sanity checks). This duplication allows tests to be run in different testing contexts.
Learnt from: pengbowang-nv
Repo: NVIDIA/TensorRT-LLM PR: 7192
File: tests/integration/test_lists/test-db/l0_dgx_b200.yml:56-72
Timestamp: 2025-08-26T09:49:04.956Z
Learning: In TensorRT-LLM test configuration files, the test scheduling system handles wildcard matching with special rules that prevent duplicate test execution even when the same tests appear in multiple yaml files with overlapping GPU wildcards (e.g., "*b200*" and "*gb200*").
📚 Learning: 2025-09-17T02:48:52.732Z
Learnt from: tongyuantongyu
Repo: NVIDIA/TensorRT-LLM PR: 7781
File: tests/integration/test_lists/waives.txt:313-313
Timestamp: 2025-09-17T02:48:52.732Z
Learning: In TensorRT-LLM, `tests/integration/test_lists/waives.txt` is specifically for waiving/skipping tests, while other test list files like those in `test-db/` and `qa/` directories are for different test execution contexts (pre-merge, post-merge, QA tests). The same test appearing in both waives.txt and execution list files is intentional - the test is part of test suites but will be skipped due to the waiver.

Applied to files:

  • tests/integration/test_lists/waives.txt
📚 Learning: 2025-09-09T09:40:45.658Z
Learnt from: fredricz-20070104
Repo: NVIDIA/TensorRT-LLM PR: 7645
File: tests/integration/test_lists/qa/llm_function_core.txt:648-648
Timestamp: 2025-09-09T09:40:45.658Z
Learning: In TensorRT-LLM test lists, it's common and intentional for the same test to appear in multiple test list files when they serve different purposes (e.g., llm_function_core.txt for comprehensive core functionality testing and llm_function_core_sanity.txt for quick sanity checks). This duplication allows tests to be run in different testing contexts.

Applied to files:

  • tests/integration/test_lists/waives.txt
📚 Learning: 2025-08-29T14:07:45.863Z
Learnt from: EmmaQiaoCh
Repo: NVIDIA/TensorRT-LLM PR: 7370
File: tests/unittest/trt/model_api/test_model_quantization.py:24-27
Timestamp: 2025-08-29T14:07:45.863Z
Learning: In TensorRT-LLM's CI infrastructure, pytest skip markers (pytest.mark.skip) are properly honored even when test files have __main__ blocks that call test functions directly. The testing system correctly skips tests without requiring modifications to the __main__ block execution pattern.

Applied to files:

  • tests/integration/test_lists/waives.txt
📚 Learning: 2025-08-26T09:49:04.956Z
Learnt from: pengbowang-nv
Repo: NVIDIA/TensorRT-LLM PR: 7192
File: tests/integration/test_lists/test-db/l0_dgx_b200.yml:56-72
Timestamp: 2025-08-26T09:49:04.956Z
Learning: In TensorRT-LLM test configuration files, the test scheduling system handles wildcard matching with special rules that prevent duplicate test execution even when the same tests appear in multiple yaml files with overlapping GPU wildcards (e.g., "*b200*" and "*gb200*").

Applied to files:

  • tests/integration/test_lists/waives.txt
📚 Learning: 2025-07-28T17:06:08.621Z
Learnt from: moraxu
Repo: NVIDIA/TensorRT-LLM PR: 6303
File: tests/integration/test_lists/qa/examples_test_list.txt:494-494
Timestamp: 2025-07-28T17:06:08.621Z
Learning: In TensorRT-LLM testing, it's common to have both CLI flow tests (test_cli_flow.py) and PyTorch API tests (test_llm_api_pytorch.py) for the same model. These serve different purposes: CLI flow tests validate the traditional command-line workflow, while PyTorch API tests validate the newer LLM API backend. Both are legitimate and should coexist.

Applied to files:

  • tests/integration/test_lists/waives.txt
📚 Learning: 2025-08-18T08:42:02.640Z
Learnt from: samuellees
Repo: NVIDIA/TensorRT-LLM PR: 6974
File: tensorrt_llm/serve/scripts/benchmark_dataset.py:558-566
Timestamp: 2025-08-18T08:42:02.640Z
Learning: In TensorRT-LLM's RandomDataset (tensorrt_llm/serve/scripts/benchmark_dataset.py), when using --random-token-ids option, sequence length accuracy is prioritized over semantic correctness for benchmarking purposes. The encode/decode operations should use skip_special_tokens=True and add_special_tokens=False to ensure exact target token lengths.

Applied to files:

  • tests/integration/test_lists/waives.txt
⏰ 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
🔇 Additional comments (2)
tests/integration/test_lists/waives.txt (2)

409-409: Inconsistency: AI summary mentions two additions, but only one change is visible.

The AI summary states "Two test-case entries were added," but the code shows only line 409 marked with ~. The visible change correctly adds a SKIP waiver for the timing-out test case from the PR objective. Please confirm whether a second entry was intended or if the summary is inaccurate.


409-409: Test waiver entry is correctly formatted and references the appropriate bug.

The new entry appropriately waives the test case specified in the PR objective (test_auto_dtype[False-True-False]) with the correct bug reference. The format and structure are consistent with existing entries in the file.

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@brb-nv

brb-nv commented Nov 19, 2025

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "Unwaive test blocking pre-merge"

2 similar comments
@yuanjingx87

Copy link
Copy Markdown
Collaborator

/bot skip --comment "Unwaive test blocking pre-merge"

@brb-nv

brb-nv commented Nov 19, 2025

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "Unwaive test blocking pre-merge"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #25087 [ skip ] triggered by Bot. Commit: 9af9899

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #25087 [ skip ] completed with state SUCCESS. Commit: 9af9899
Skipping testing for commit 9af9899

@brb-nv
brb-nv merged commit f6ec6e2 into NVIDIA:main Nov 19, 2025
kris1025 added a commit to kris1025/TensorRT-LLM that referenced this pull request Nov 20, 2026
…4.1 decode follow-up

Pin the vendored PrimTS to kris1025/flashinfer
linquanh/trtllm-prims-ts-dev-ds41-followup 0f82908379: the PrimTS dev branch
(yuxianq/flashinfer trtllm-prims-ts-dev-20261107 31fe2dbd6b) with the FlashInfer
main changes it lacks (NVIDIA#9087, NVIDIA#6988, NVIDIA#9315, NVIDIA#9375, NVIDIA#9224, NVIDIA#5489, NVIDIA#8549), the
FP8+NVFP4 decode commits of flashinfer-ai/flashinfer#9701 (PDL after the
prologue, TMA-gathered FP8 tiles, early Q release) and one commit that runs
the decode loops NVIDIA#9315 and NVIDIA#9375 added on the dev branch's tree-walking task
API. It replaces trtllm-prims-ts-nvfp4-ws d36da5b4bc.

The new pin has none of d36da5b4bc's in-kernel split finishers, run-ahead inputs
or producer query/selection hooks, so the CSA2 paths built on them go:
- PackedSparseMLA plans no longer run ahead of their preceding launch
  (inputs_final, main_ready) or merge split-KV partials in the kernel
  (cluster_split_finish, fused_split_finish); split plans take the reducer
  launch again.
- The packed producer no longer stages a BF16 Q with its GPT-J RoPE (query_rope)
  or prefetches raw selections. Small PrimTS decode steps write the unit-scale
  E4M3 Q with gptj_rope_e4m3_small_m for INT32 positions as for INT64 ones.
  Raw selections stay.
Since every admitted generation step takes the direct decode, the run-ahead and
query-RoPE paths served only PrimTS steps of 17 rows up to the fused FP8 Q
projection's size.

Adaptations to the new kernels:
- The persisted MLA decode kernels take a kv_bounds argument (FlashInfer NVIDIA#5489);
  the packed, gather and NVFP4 launches pass None.
- MXFP8OutputQuant declares stages_ws_sw128_rows, which the WS TMA output path
  now requires of an output quantizer; its store already stages SW128 WS rows.

The compatibility patch is regenerated for the new pin. _hardware.py's new SM107
helper imports flashinfer.cute_dsl absolutely; the parallel-reduction rename is
upstream, and the dev branch's _resolve_domain already traces the 1CTA MLA task
domain with constant-folded checks. The flashinfer-python 0.7.2 shims of the QToken-KvBlock metadata ABI
are dropped: 0.7.3 ships upstream's metadata module (the locator, current-block
and fixed-query arguments and the query-major entry points), which the shims
called with too few arguments.

Tests: test_prims_ts_runahead_matches_ordered and
test_prims_ts_plans_ignore_main_ready_without_runahead go with the run-ahead path
(the former also from l0_gb300_ds_v4_1.yml); the shared-kernel case keeps a
raw-selection plan.

Signed-off-by: linquanh <[email protected]>
kris1025 added a commit to kris1025/TensorRT-LLM that referenced this pull request Nov 24, 2026
…4.1 decode follow-up

Pin the vendored PrimTS to kris1025/flashinfer
linquanh/trtllm-prims-ts-dev-ds41-followup-r2 d63ab76b73: the PrimTS dev branch
(yuxianq/flashinfer trtllm-prims-ts-dev-20261107 69527ce04) with the FlashInfer
main changes it lacks (NVIDIA#9087, NVIDIA#6988, NVIDIA#9315, NVIDIA#9375, NVIDIA#9224), the FP8+NVFP4 decode
commits of flashinfer-ai/flashinfer#9701 (PDL after the prologue, TMA-gathered
FP8 tiles, early Q release) and one commit that runs the decode loops NVIDIA#9315 and
NVIDIA#9375 added on the dev branch's tree-walking task API. The dev branch already
carries NVIDIA#8549, and NVIDIA#5489 in its reviewed form. It replaces
trtllm-prims-ts-nvfp4-ws d36da5b4bc.

The new pin has none of d36da5b4bc's in-kernel split finishers, run-ahead inputs
or producer query/selection hooks, so the CSA2 paths built on them go:
- PackedSparseMLA plans no longer run ahead of their preceding launch
  (inputs_final, main_ready) or merge split-KV partials in the kernel
  (cluster_split_finish, fused_split_finish); split plans take the reducer
  launch again.
- The packed producer no longer stages a BF16 Q with its GPT-J RoPE (query_rope)
  or prefetches raw selections. Small PrimTS decode steps write the unit-scale
  E4M3 Q with gptj_rope_e4m3_small_m for INT32 positions as for INT64 ones.
  Raw selections stay.
Since every admitted generation step takes the direct decode, the run-ahead and
query-RoPE paths served only PrimTS steps of 17 rows up to the fused FP8 Q
projection's size.

Adaptations to the new kernels:
- The persisted MLA decode kernels take a context-parallel rank (FlashInfer
  NVIDIA#5489); the packed, gather and NVFP4 launches pass rank 0, and the packed
  compile declares it as an Int32.
- MXFP8OutputQuant declares stages_ws_sw128_rows, which the WS TMA output path
  now requires of an output quantizer; its store already stages SW128 WS rows.

The compatibility patch is regenerated for the new pin. _hardware.py's new SM107
helper imports flashinfer.cute_dsl absolutely; the parallel-reduction rename is
upstream, and the dev branch's _resolve_domain already traces the 1CTA MLA task
domain with constant-folded checks. The flashinfer-python 0.7.2 shims of the QToken-KvBlock metadata ABI
are dropped: 0.7.3 ships upstream's metadata module (the locator, current-block
and fixed-query arguments and the query-major entry points), which the shims
called with too few arguments. The patch carries main's prepared sparse-MLA
launch again, passing context-parallel rank 0; the d80b3221 sync had dropped it.

Tests: test_prims_ts_runahead_matches_ordered and
test_prims_ts_plans_ignore_main_ready_without_runahead go with the run-ahead path
(the former also from l0_gb300_ds_v4_1.yml); the shared-kernel case keeps a
raw-selection plan.

Signed-off-by: linquanh <[email protected]>
kris1025 added a commit to kris1025/TensorRT-LLM that referenced this pull request Nov 24, 2026
…4.1 decode follow-up

Pin the vendored PrimTS to kris1025/flashinfer
linquanh/trtllm-prims-ts-dev-ds41-followup-r2 d63ab76b73: the PrimTS dev branch
(yuxianq/flashinfer trtllm-prims-ts-dev-20261107 69527ce04) with the FlashInfer
main changes it lacks (NVIDIA#9087, NVIDIA#6988, NVIDIA#9315, NVIDIA#9375, NVIDIA#9224), the FP8+NVFP4 decode
commits of flashinfer-ai/flashinfer#9701 (PDL after the prologue, TMA-gathered
FP8 tiles, early Q release) and one commit that runs the decode loops NVIDIA#9315 and
NVIDIA#9375 added on the dev branch's tree-walking task API. The dev branch already
carries NVIDIA#8549, and NVIDIA#5489 in its reviewed form. It replaces
trtllm-prims-ts-nvfp4-ws d36da5b4bc.

The new pin has none of d36da5b4bc's in-kernel split finishers, run-ahead inputs
or producer query/selection hooks, so the CSA2 paths built on them go:
- PackedSparseMLA plans no longer run ahead of their preceding launch
  (inputs_final, main_ready) or merge split-KV partials in the kernel
  (cluster_split_finish, fused_split_finish); split plans take the reducer
  launch again.
- The packed producer no longer stages a BF16 Q with its GPT-J RoPE (query_rope)
  or prefetches raw selections. Small PrimTS decode steps write the unit-scale
  E4M3 Q with gptj_rope_e4m3_small_m for INT32 positions as for INT64 ones.
  Raw selections stay.
Since every admitted generation step takes the direct decode, the run-ahead and
query-RoPE paths served only PrimTS steps of 17 rows up to the fused FP8 Q
projection's size.

Adaptations to the new kernels:
- The persisted MLA decode kernels take a context-parallel rank (FlashInfer
  NVIDIA#5489); the packed, gather and NVFP4 launches pass rank 0, and the packed
  compile declares it as an Int32.
- MXFP8OutputQuant declares stages_ws_sw128_rows, which the WS TMA output path
  now requires of an output quantizer; its store already stages SW128 WS rows.

The compatibility patch is regenerated for the new pin. _hardware.py's new SM107
helper imports flashinfer.cute_dsl absolutely; the parallel-reduction rename is
upstream, and the dev branch's _resolve_domain already traces the 1CTA MLA task
domain with constant-folded checks. The flashinfer-python 0.7.2 shims of the QToken-KvBlock metadata ABI
are dropped: 0.7.3 ships upstream's metadata module (the locator, current-block
and fixed-query arguments and the query-major entry points), which the shims
called with too few arguments. The patch carries main's prepared sparse-MLA
launch again, passing context-parallel rank 0; the d80b3221 sync had dropped it.

Tests: test_prims_ts_runahead_matches_ordered and
test_prims_ts_plans_ignore_main_ready_without_runahead go with the run-ahead path
(the former also from l0_gb300_ds_v4_1.yml); the shared-kernel case keeps a
raw-selection plan.

Signed-off-by: linquanh <[email protected]>
kris1025 added a commit to kris1025/TensorRT-LLM that referenced this pull request Nov 25, 2026
…4.1 decode follow-up

Pin the vendored PrimTS to kris1025/flashinfer
linquanh/trtllm-prims-ts-dev-ds41-followup-r2 d63ab76b73: the PrimTS dev branch
(yuxianq/flashinfer trtllm-prims-ts-dev-20261107 69527ce04) with the FlashInfer
main changes it lacks (NVIDIA#9087, NVIDIA#6988, NVIDIA#9315, NVIDIA#9375, NVIDIA#9224), the FP8+NVFP4 decode
commits of flashinfer-ai/flashinfer#9701 (PDL after the prologue, TMA-gathered
FP8 tiles, early Q release) and one commit that runs the decode loops NVIDIA#9315 and
NVIDIA#9375 added on the dev branch's tree-walking task API. The dev branch already
carries NVIDIA#8549, and NVIDIA#5489 in its reviewed form. It replaces
trtllm-prims-ts-nvfp4-ws d36da5b4bc.

The new pin has none of d36da5b4bc's in-kernel split finishers, run-ahead inputs
or producer query/selection hooks, so the CSA2 paths built on them go:
- PackedSparseMLA plans no longer run ahead of their preceding launch
  (inputs_final, main_ready) or merge split-KV partials in the kernel
  (cluster_split_finish, fused_split_finish); split plans take the reducer
  launch again.
- The packed producer no longer stages a BF16 Q with its GPT-J RoPE (query_rope)
  or prefetches raw selections. Small PrimTS decode steps write the unit-scale
  E4M3 Q with gptj_rope_e4m3_small_m for INT32 positions as for INT64 ones.
  Raw selections stay.
Since every admitted generation step takes the direct decode, the run-ahead and
query-RoPE paths served only PrimTS steps of 17 rows up to the fused FP8 Q
projection's size.

Adaptations to the new kernels:
- The persisted MLA decode kernels take a context-parallel rank (FlashInfer
  NVIDIA#5489); the packed, gather and NVFP4 launches pass rank 0, and the packed
  compile declares it as an Int32.
- MXFP8OutputQuant declares stages_ws_sw128_rows, which the WS TMA output path
  now requires of an output quantizer; its store already stages SW128 WS rows.

The compatibility patch is regenerated for the new pin. _hardware.py's new SM107
helper imports flashinfer.cute_dsl absolutely; the parallel-reduction rename is
upstream, and the dev branch's _resolve_domain already traces the 1CTA MLA task
domain with constant-folded checks. The flashinfer-python 0.7.2 shims of the QToken-KvBlock metadata ABI
are dropped: 0.7.3 ships upstream's metadata module (the locator, current-block
and fixed-query arguments and the query-major entry points), which the shims
called with too few arguments. The patch carries main's prepared sparse-MLA
launch again, passing context-parallel rank 0; the d80b3221 sync had dropped it.

Tests: test_prims_ts_runahead_matches_ordered and
test_prims_ts_plans_ignore_main_ready_without_runahead go with the run-ahead path
(the former also from l0_gb300_ds_v4_1.yml); the shared-kernel case keeps a
raw-selection plan.

Signed-off-by: linquanh <[email protected]>
kris1025 added a commit to kris1025/TensorRT-LLM that referenced this pull request Nov 26, 2026
…4.1 decode follow-up

Pin the vendored PrimTS to kris1025/flashinfer
linquanh/trtllm-prims-ts-dev-ds41-followup-r2 d63ab76b73: the PrimTS dev branch
(yuxianq/flashinfer trtllm-prims-ts-dev-20261107 69527ce04) with the FlashInfer
main changes it lacks (NVIDIA#9087, NVIDIA#6988, NVIDIA#9315, NVIDIA#9375, NVIDIA#9224), the FP8+NVFP4 decode
commits of flashinfer-ai/flashinfer#9701 (PDL after the prologue, TMA-gathered
FP8 tiles, early Q release) and one commit that runs the decode loops NVIDIA#9315 and
NVIDIA#9375 added on the dev branch's tree-walking task API. The dev branch already
carries NVIDIA#8549, and NVIDIA#5489 in its reviewed form. It replaces
trtllm-prims-ts-nvfp4-ws d36da5b4bc.

The new pin has none of d36da5b4bc's in-kernel split finishers, run-ahead inputs
or producer query/selection hooks, so the CSA2 paths built on them go:
- PackedSparseMLA plans no longer run ahead of their preceding launch
  (inputs_final, main_ready) or merge split-KV partials in the kernel
  (cluster_split_finish, fused_split_finish); split plans take the reducer
  launch again.
- The packed producer no longer stages a BF16 Q with its GPT-J RoPE (query_rope)
  or prefetches raw selections. Small PrimTS decode steps write the unit-scale
  E4M3 Q with gptj_rope_e4m3_small_m for INT32 positions as for INT64 ones.
  Raw selections stay.
Since every admitted generation step takes the direct decode, the run-ahead and
query-RoPE paths served only PrimTS steps of 17 rows up to the fused FP8 Q
projection's size.

Adaptations to the new kernels:
- The persisted MLA decode kernels take a context-parallel rank (FlashInfer
  NVIDIA#5489); the packed, gather and NVFP4 launches pass rank 0, and the packed
  compile declares it as an Int32.
- MXFP8OutputQuant declares stages_ws_sw128_rows, which the WS TMA output path
  now requires of an output quantizer; its store already stages SW128 WS rows.

The compatibility patch is regenerated for the new pin. _hardware.py's new SM107
helper imports flashinfer.cute_dsl absolutely; the parallel-reduction rename is
upstream, and the dev branch's _resolve_domain already traces the 1CTA MLA task
domain with constant-folded checks. The flashinfer-python 0.7.2 shims of the QToken-KvBlock metadata ABI
are dropped: 0.7.3 ships upstream's metadata module (the locator, current-block
and fixed-query arguments and the query-major entry points), which the shims
called with too few arguments. The patch carries main's prepared sparse-MLA
launch again, passing context-parallel rank 0; the d80b3221 sync had dropped it.

Tests: test_prims_ts_runahead_matches_ordered and
test_prims_ts_plans_ignore_main_ready_without_runahead go with the run-ahead path
(the former also from l0_gb300_ds_v4_1.yml); the shared-kernel case keeps a
raw-selection plan.

Signed-off-by: linquanh <[email protected]>
kris1025 added a commit to kris1025/TensorRT-LLM that referenced this pull request Nov 26, 2026
…llow-up on the dev tip

Pin tensorrt_llm/_torch/attention/backends/prims_ts to kris1025/flashinfer
linquanh/trtllm-prims-ts-dev-ds41-followup-r3 at d8c40b52f9. That branch is the PrimTS dev
branch main pins (yuxianq/flashinfer trtllm-prims-ts-dev-20261107 at d81912f0b, NVIDIA#22274)
plus:
- the FlashInfer main PrimTS changes the dev branch lacks, in order:
  flashinfer-ai/flashinfer#6988, NVIDIA#9315, NVIDIA#9375 and NVIDIA#9224 (NVIDIA#9087, NVIDIA#9222, NVIDIA#5489 and NVIDIA#8549 are
  already on it). Where they meet the dev branch's CUTLASS DSL 4.9 task-API changes
  (runtime_domain_end, consumer_work_stage, _resolve_domain, ContextTask), the conflict
  resolutions keep the upstream logic in the dev branch's form;
- the DeepSeek-V4.1 sparse MLA decode commits of flashinfer-ai/flashinfer#9701: the
  FP8+NVFP4 one-CTA Keep-AB decode, PDL after the prologue, FP8 tiles TMA-gathered into
  the retained K/V tile, the TMA-staged Q slot released after the last QK, and their tests;
- one commit that puts the loops and stage reads NVIDIA#9315 and NVIDIA#9375 added in that same form; on
  the CuTe DSL 4.7/4.8 task API it changes nothing.

The compatibility patch is main's, regenerated for the new pin, plus one adaptation:
_hardware.py's SM107 check imports flashinfer.cute_dsl.availability absolutely, since its
relative import would leave the vendored package. The vendored tree differs from main's
only in the 29 files the follow-up commits change, and main's PrimTS users run on it
unchanged.

Signed-off-by: linquanh <[email protected]>
kris1025 added a commit to kris1025/TensorRT-LLM that referenced this pull request Nov 26, 2026
…llow-up on the dev tip

Pin tensorrt_llm/_torch/attention/backends/prims_ts to kris1025/flashinfer
linquanh/trtllm-prims-ts-dev-ds41-followup-r3 at d8c40b52f9. That branch is the PrimTS dev
branch main pins (yuxianq/flashinfer trtllm-prims-ts-dev-20261107 at d81912f0b, NVIDIA#22274)
plus:
- the FlashInfer main PrimTS changes the dev branch lacks, in order:
  flashinfer-ai/flashinfer#6988, NVIDIA#9315, NVIDIA#9375 and NVIDIA#9224 (NVIDIA#9087, NVIDIA#9222, NVIDIA#5489 and NVIDIA#8549 are
  already on it). Where they meet the dev branch's CUTLASS DSL 4.9 task-API changes
  (runtime_domain_end, consumer_work_stage, _resolve_domain, ContextTask), the conflict
  resolutions keep the upstream logic in the dev branch's form;
- the DeepSeek-V4.1 sparse MLA decode commits of flashinfer-ai/flashinfer#9701: the
  FP8+NVFP4 one-CTA Keep-AB decode, PDL after the prologue, FP8 tiles TMA-gathered into
  the retained K/V tile, the TMA-staged Q slot released after the last QK, and their tests;
- one commit that puts the loops and stage reads NVIDIA#9315 and NVIDIA#9375 added in that same form; on
  the CuTe DSL 4.7/4.8 task API it changes nothing.

The compatibility patch is main's, regenerated for the new pin, plus one adaptation:
_hardware.py's SM107 check imports flashinfer.cute_dsl.availability absolutely, since its
relative import would leave the vendored package. The vendored tree differs from main's
only in the 29 files the follow-up commits change, and main's PrimTS users run on it
unchanged.

Signed-off-by: linquanh <[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.

4 participants