Repository navigation
Update FBGEMM for Blackwell HSTU attention - #431
Conversation
|
/build devel |
Greptile SummaryThis PR updates the
Confidence Score: 5/5Safe to merge — the submodule SHA is pinned so builds are deterministic, and the benchmark refactoring is self-contained tooling with no impact on training or inference paths. All changes are in benchmark tooling and infrastructure: the FBGEMM submodule pointer is updated to a specific commit, the benchmark script is refactored to decouple timing from plotting, and the NVTX toggle is additive. No training or inference code is modified.
Important Files Changed
Sequence Diagram%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
participant User
participant benchmark as hstu_attn_kernel_benchmark.py
participant attn as HSTUAttention (FBGEMM/CUTLASS)
participant events as CUDA Events
participant json as JSON output
User->>benchmark: python hstu_attn_kernel_benchmark.py --timing-mode per-iter --cuda-graph
benchmark->>attn: create_hstu_attention(kernel_backend, num_heads, ...)
loop warmup_iters
benchmark->>attn: attn_fn(tq, tk, tv, offsets, seqlen, seqlen)
end
loop phases (fwd / bwd / e2e)
benchmark->>events: _make_cuda_events(bench_iters)
benchmark->>attn: capture CUDA graph
loop bench_iters
benchmark->>events: record start
benchmark->>attn: graph.replay()
benchmark->>events: record end
end
benchmark->>events: synchronize → compute percentiles (P1/P10/P20/P50/P100)
end
benchmark->>json: dump results (TFLOPS, MFU, time percentiles)
User->>benchmark: plot_hstu_attn_kernel_heatmap.py --output-dir ...
benchmark->>json: load and validate runs
benchmark->>User: PNG heatmap (TFLOPS / MFU / ms per cell)
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
participant User
participant benchmark as hstu_attn_kernel_benchmark.py
participant attn as HSTUAttention (FBGEMM/CUTLASS)
participant events as CUDA Events
participant json as JSON output
User->>benchmark: python hstu_attn_kernel_benchmark.py --timing-mode per-iter --cuda-graph
benchmark->>attn: create_hstu_attention(kernel_backend, num_heads, ...)
loop warmup_iters
benchmark->>attn: attn_fn(tq, tk, tv, offsets, seqlen, seqlen)
end
loop phases (fwd / bwd / e2e)
benchmark->>events: _make_cuda_events(bench_iters)
benchmark->>attn: capture CUDA graph
loop bench_iters
benchmark->>events: record start
benchmark->>attn: graph.replay()
benchmark->>events: record end
end
benchmark->>events: synchronize → compute percentiles (P1/P10/P20/P50/P100)
end
benchmark->>json: dump results (TFLOPS, MFU, time percentiles)
User->>benchmark: plot_hstu_attn_kernel_heatmap.py --output-dir ...
benchmark->>json: load and validate runs
benchmark->>User: PNG heatmap (TFLOPS / MFU / ms per cell)
Reviews (11): Last reviewed commit: "Add HSTU attention benchmark heatmaps" | Re-trigger Greptile |
|
❌ Pipeline #56593317 -- failed
Result: 3/7 jobs passed |
|
/build devel |
|
❌ Pipeline #56703625 -- failed
Result: 17/23 jobs passed |
966fc0a to
a8abac1
Compare
|
/build devel |
|
❌ Pipeline #56709019 -- failed
Result: 6/8 jobs passed |
|
❌ Pipeline #56709603 -- failed
Result: 17/23 jobs passed |
|
/build devel |
|
❌ Pipeline #56933477 -- failed
Result: 17/22 jobs passed |
|
/build devel |
|
❌ Pipeline #56950530 -- failed
Result: 17/23 jobs passed |
4cb259c to
f53db8c
Compare
|
/build devel |
1 similar comment
|
/build devel |
|
❌ Pipeline #57211389 -- failed
Result: 20/23 jobs passed |
|
/build devel |
|
❌ Pipeline #57344935 -- failed
Result: 20/23 jobs passed |
01b56d7 to
5eb9f4f
Compare
5eb9f4f to
50400f7
Compare
Summary
third_party/FBGEMMtorecsys-examples-v26.06recsys-examples-v26.05ontojiayus-nvidia/FBGEMM:dev(excluding 9da5a6 because of extra outputcontiguous())Testing