Skip to content

[benchmark] Shard the linear-attention benchmark across parallel jobs#3107

Open
tarinduj wants to merge 1 commit into
mainfrom
tarindu/linear-bench-fix
Open

[benchmark] Shard the linear-attention benchmark across parallel jobs#3107
tarinduj wants to merge 1 commit into
mainfrom
tarindu/linear-bench-fix

Conversation

@tarinduj

@tarinduj tarinduj commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

The linear-attention kernels did not appear on the dashboard. The run-h100-linattn / run-b200-linattn nightly jobs ran all variants in one job and hit GitHub's 6h job limit, so they were cancelled before uploading. Every other benchmark suite is sharded into parallel jobs; this brings linattn in line by routing kernels_linattn through compute-benchmark-matrix so each variant runs in its own job.

kernels_linattn now lists the seven variants instead of the fourteen dashboard rows (each variant has a forward and a forward+backward -bwd row): sharding the fourteen would split a variant's two rows into different shards and run it twice. run_linattn still emits both rows per variant, and get_expected_kernels_per_platform expands the -bwd names so the dashboard still expects every row.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 20, 2026
@tarinduj
tarinduj requested review from AmesingFlank and Copilot July 20, 2026 23:06
@tarinduj
tarinduj marked this pull request as ready for review July 20, 2026 23:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes linear-attention (linattn) benchmark uploads timing out (hitting GitHub Actions’ 6-hour job limit) by sharding the linattn benchmark variants across a parallel matrix, aligning linattn with how other benchmark suites are dispatched and ensuring artifacts consistently upload for the dashboard.

Changes:

  • Route run-h100-linattn and run-b200-linattn through compute-benchmark-matrix and run each shard as its own job.
  • Update the kernels_linattn workflow input default to list only the 7 variants (not separate -bwd rows) to avoid splitting forward/backward expectations across shards.
  • Update dashboard expectation generation to expand linattn variants into both <variant> and <variant>-bwd expected rows.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/benchmark_dispatch.yml Adds matrix-generation jobs and shards linattn runs; updates linattn kernel defaults to variant-only list.
.github/dashboard/build_dashboard_data.py Expands kernels_linattn defaults into both forward and -bwd expected dashboard rows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/dashboard/build_dashboard_data.py
Comment thread .github/workflows/benchmark_dispatch.yml Outdated
The run-h100-linattn / run-b200-linattn jobs ran all variants in one job and
hit GitHub's 6h job limit, so they were cancelled before uploading and never
appeared on the dashboard. Route kernels_linattn through compute-benchmark-matrix
like the other GPU suites so each variant runs in its own job.

Feeding the fourteen forward/-bwd rows to the sharder would split a variant's
forward and backward into different shards, running and autotuning the whole
variant twice. kernels_linattn now lists the seven variant names so each runs
once; run_linattn still emits both rows, and get_expected_kernels_per_platform
expands the -bwd names so the dashboard still expects all fourteen.
@tarinduj
tarinduj force-pushed the tarindu/linear-bench-fix branch from 6212205 to 29eacde Compare July 20, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants