Skip to content

[CI] Shard Kernels Attention Test to 7 shards, pin AMD mirror at 2 (<20 min) - #52340

Closed
khluu wants to merge 1 commit into
vllm-project:mainfrom
khluu:amr/shard-kernels-attention
Closed

[CI] Shard Kernels Attention Test to 7 shards, pin AMD mirror at 2 (<20 min)#52340
khluu wants to merge 1 commit into
vllm-project:mainfrom
khluu:amr/shard-kernels-attention

Conversation

@khluu

@khluu khluu commented Aug 14, 2026

Copy link
Copy Markdown
Member

What

kernels-attention-test runs 2 NVIDIA shards at ~48–49 min each (~96 min logical) — a Phase-2 long pole. Raise NVIDIA parallelism 2 → 7 to land each shard ~13–14 min (<20 min target), while keeping the AMD mirror at its current 2 shards.

How

Sizing

~96 min logical ÷ 7 ≈ 13.7 min/shard; leaves headroom under 20 min for pytest-shard's nodeid-hash imbalance. Provisional — will confirm from the targeted run and trim if there's excess headroom.

Validation — build #83915 (targeted kernels-attention-test on #473, 7/7 green)

  • Per-shard NVIDIA wall (min): 16.52 / 16.30 / 16.28 / 16.32 / 17.50 / 17.48 / 17.23 — max 17.50, all <20.
  • Exact node union: pytest-shard partitions the full collection disjointly — per-shard "Running N" = 1131/1155/1142/1101/1166/1161/1153, Σ = 8009 = collected 8009 (each item on exactly one shard).
  • Fixed setup: 4.28–4.31 min/shard (job wall − pytest runtime).
  • Total GPU-min: 117.6 vs the 2-shard baseline 96 (+21.6) — the increase is exactly the 5 added shards × ~4.3 min fixed setup; wall dropped ~49→17.5 min (~2.8×).
  • AMD2 selector-off render (real indexSelectLargeIndex: block: [308,0,0], thread: [95,0,0] Assertion srcIndex < srcSelectDimSize failed. #473 generator, head e006ba64): NVIDIA renders 7, AMD mirror pinned to exactly 2 (un-pinned it would inherit 7); AMD command byte-identical.

Part of the Phase-2 CI-overhaul sharding pass (kernels/basic-models workstream), one PR per key.

…at 2

kernels-attention-test currently runs 2 NVIDIA shards at ~48-49m each (~96m
logical, Phase 2 45+ min long pole). Raise NVIDIA parallelism 2 -> 7 (pytest-shard
already in the command) to land each shard ~13-14m (<20m target). Pin
mirror.amd.parallelism: 2 so the higher NVIDIA count does not multiply the AMD
mirror; this relies on the ci-infra amd-mirror-parallelism-override (PR vllm-project#473).
Per-shard timeout 65 -> 30.
@mergify mergify Bot added ci/build rocm Related to AMD ROCm labels Aug 14, 2026
@github-project-automation github-project-automation Bot moved this to Todo in AMD Aug 14, 2026
@khluu

khluu commented Sep 1, 2026

Copy link
Copy Markdown
Member Author

Superseded by consolidated kernels PR #54754 on current main.

@khluu khluu closed this Sep 1, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in AMD Sep 1, 2026
@khluu
khluu deleted the amr/shard-kernels-attention branch September 1, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/build rocm Related to AMD ROCm

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant