Repository navigation
[https://nvbugs/6964732][fix] Split the B300 attention unit-test aggregate at sparse/ - #20822
Conversation
…egate at sparse/ On single-GPU B300 the unittest/_torch/attention aggregate runs serially (agg_unit_mem_df.csv has no B300 row for it) under CI's default 3600 s per-entry pytest timeout. Its wall time grew from ~2800 s in early October to ~3530 s in post-merge build 3032, and build 3031 was killed at 3600 s with no case failed. Run sparse/ as its own entry, with the same files ignored as before, so each entry fits the default limit again. The same 5272 cases run; none is skipped, waived or given a longer timeout. Co-Authored-By: Claude <[email protected]> Signed-off-by: trtllm-agent <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe B300 test list now has separate entries for general attention and sparse attention. The sparse entry excludes six files that have their own entries. ChangesB300 attention test lists
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
brnguyen2
left a comment
There was a problem hiding this comment.
Approving — the comments below are optional touch-ups, not blockers.
The split keeps every case and the six per-file entries stay intact. One follow-up below about how close the new sparse entry already is to the limit.
| # The serial aggregate outgrew CI's 60-minute per-entry limit on B300, so sparse/ runs as | ||
| # its own entry. The files ignored in it keep their own entries (pre-existing). | ||
| - unittest/_torch/attention --ignore=unittest/_torch/attention/sparse | ||
| - unittest/_torch/attention/sparse --ignore=unittest/_torch/attention/sparse/dsa/test_cute_dsl_fp8_paged_mqa_logits.py --ignore=unittest/_torch/attention/sparse/dsa/test_cute_dsl_fp4_paged_mqa_logits.py --ignore=unittest/_torch/attention/sparse/test_cute_dsl_gvr_topk_decode.py --ignore=unittest/_torch/attention/sparse/test_cute_dsl_gvr_topk_tiers.py --ignore=unittest/_torch/attention/sparse/msa/test_minimax_m3_sparse_attn_decode.py --ignore=unittest/_torch/attention/sparse/msa/test_msa_proxy_split.py |
There was a problem hiding this comment.
Your run puts this entry at 2692 s. That is ~75% of the 3600 s default, and the old aggregate grew ~700 s in a few weeks. At that rate sparse/ will hit the same timeout soon. Please record the measured time inline (e.g. # ~2700s on B300, default 60-min limit, like the # 250s note on unittest/_torch/executor) so the next person adding sparse tests sees the budget. If you know the next natural split point (e.g. sparse/dsa vs the rest), name it in the comment too.
|
Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements. |
Description
On single-GPU B300 (
l0_b300), theunittest/_torch/attention --ignore=...aggregate runs serially:agg_unit_mem_df.csvhas no B300 row for it, sotest_unittests_v2uses one worker. It also has noTIMEOUToverride, so it gets CI's default 3600 s per-entry pytest limit.Its wall time on B300 post-merge runs:
The growth comes from many additions, not one change. The largest single step was
test_prims_ts_attention_backend.py, which went from ~300 s to ~610 s on B300 between builds 3029 and 3031.This change runs
sparse/as its own entry and ignores it in the directory entry. The six files the old entry ignored are still ignored, and they keep their own entries. Every case still runs on B300: none is skipped or waived, and no timeout is raised. Each entry now fits the default limit.Fixes https://nvbugs/6964732
Test Coverage
Run on one B300 GPU, as CI runs it:
test_unittests.py::test_unittests_v2, pytest--timeout=3600, fresh JIT caches. The base is a wheel built from the base commit; this change edits only a test list.Timeoutat 3600 s, after 4,570 cases had reported (none failed).unittest/_torch/attention --ignore=unittest/_torch/attention/sparsePASSED in 1596 s.unittest/_torch/attention/sparse --ignore=...PASSED in 2692 s.trt-test-dbrender ofl0_b300for a 1-GPU B300 pre-merge stage: the only difference is the one old line replaced by the two new ones.PR Checklist
Dev Engineer Review
The B300 attention test list now separates the sparse subtree from the general attention entry. This reduces the size of each CI entry without changing the tests selected by the two entries or raising the timeout. The supplied information reports both entries under the default 3,600-second timeout. Runtime results are author-reported; no independent test run is available here.
QA Engineer Review
Only a test-list file changed. The general attention entry now excludes
unittest/_torch/attention/sparse, and a separate sparse entry includes that subtree with the existing six file exclusions. The six exclusions remain represented by their own entries. No test functions, IDs, selectors, or waivers changed. Coverage verdict: sufficient for this test-list-only change, based on the supplied description.Per-File QA Perspective
tests/integration/test_lists/test-db/l0_b300.yml: Splits B300 attention CI selection into general and sparse entries while preserving the six existing exclusions. This is a CI workflow selection change; verify both entries run and remain within the default timeout.