Skip to content

[FlyDSL] [CI] [JIT] [MHA] Route MHA forward through a tuned backend row - #5762

Open
amd-bartgips wants to merge 24 commits into
mainfrom
users/bartgips/fmha-single-store
Open

amd-bartgips wants to merge 24 commits into
mainfrom
users/bartgips/fmha-single-store

Conversation

@amd-bartgips

@amd-bartgips amd-bartgips commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

On an exact match in aiter/configs/tuned_mha_fwd.csv, flash_attn_varlen_func runs the backend the row names: asm_v3, ck, opus or flydsl. On a miss it runs today's auto-select. The CSV ships empty, so nothing changes until a row is written to it; #6580 writes the rows and adds Triton and Gluon rows.

Stack. main → #5762 (this) → #6580 → #5849. Builds on #5846 (merged). No kernel changes and no Triton code: a triton or gluon row is an unknown backend here and is skipped.

How

  • The key is every problem field plus gfx, gpu_model and cu_num. A row names only a backend; each backend keeps its own configs.
  • The model. gpu_model keeps MI300X and MI325X rows apart: both are gfx942 with 304 CUs, but MI325X has faster memory. chip_info.get_gpu_model (first commit, moved here from [CK] [CI] [JIT] [Tuning] Per-candidate faults, selection proof and auto-select in --compare #5846) reads it from the HIP device name or, for the gfx950 parts an older libdrm leaves unnamed, from the PCI product ID (subsystem_device, then device) as upstream amdgpu.ids lists it. comm_fused_moe_host now calls it instead of keeping its own copy of the PCI table. [Triton/Gluon] [JIT] Identify MI350P, and stop hardcoding the XCD count #5182's get_device_name() names families (MI300 covers MI300X and MI325X), so it can't serve as the key.
  • A model without rows. A GPU whose model has no rows uses rows that leave gpu_model blank (or a table without the column), which are valid for every model with that gfx and cu_num. Failing those, it uses another model's rows with the same gfx and cu_num (the alphabetically first, logged once). So it is never worse off than with a table without the model key. A model with rows of its own uses only those. unknown is refused: it means the tuner could not tell the model.
  • Scope. Only varlen calls without physical padding (cu_seqlens_*_padded) or a paged KV cache (block_table) are keyed. For those, q.shape[0] and k.shape[0] count physical rows or KV-pool blocks rather than tokens, so such rows are rejected at load and such calls skip the lookup; they run auto-select as today. Padded rows are not planned: the real token count lives in cu_seqlens_q[-1] on the GPU. Paged rows need a key that does not depend on the pool size and will get their own PR.
  • Fallback. A row the call can't honour falls back to auto-select without FlyDSL: the arch lacks the backend, FlyDSL declines the call, or the row is malformed. The warning names the shape and fires once per backend and shape. One bad row never breaks other calls.
  • Selection record. Dispatch records the backend it ran, which [CK] [CI] [JIT] [Tuning] Per-candidate faults, selection proof and auto-select in --compare #5846's dispatch verification checks.

Trade-offs

  • torch.compile. Code that Dynamo traces auto-selects and never reads a row. The key needs concrete sizes, and Dynamo makes them symbolic, so a traced lookup broke fullgraph=True on the second token count, and recompiled per token count without it. vLLM on ROCm calls aiter attention inside an opaque custom op (unified_attention_with_output), so the lookup runs eagerly there, and HIP graph capture still runs the row.
  • A matching call does extra host-side work to build the exact key. Graph-captured serving does not pay it; eager callers do. Rows are chosen on kernel time ([MHA] Tune MHA forward across every backend on the shared tuning contract #6580), so this cost never decides a row.

Overlaps. #6893 (varlen calls with a sink go to CK), #5223 (single-sequence calls go to OPUS), #5910, #7214 (merged; FP8 descales for FlyDSL varlen, same FlyDSL gate, kept as main has it), #7487 (merged; one gfx1250 varlen ASM gate, which an asm_v3 row may take and any other row skips), #7584 (merged; OPUS varlen gained D=128 behind AITER_ENABLE_FMHA_OPUS, so an opus row serves hd128 only where that flag is set) and #6767 (gfx1250-strict plumbing in mha.py and core.py) touch the same code. asm_v3 split-KV rows follow once #5592 merges.

Size. 12 files, +1,212 / −42 (about 555 lines of tests). Owners: @valarLip; @yifehuan / @charlieguo1106 for the comm_fused_moe_host.py change. Builds on @amd-yashagar's #5592.

PR Self-Review

Reviewed revision

324a374cb

Behavior and intent

flash_attn_varlen_func looks up an exact-match row in tuned_mha_fwd.csv and runs the backend it names (asm_v3, ck, opus or flydsl); on a miss it auto-selects exactly as today. Rows are keyed on the problem plus gfx, gpu_model and cu_num. A GPU whose model has no rows uses rows without a model, then another model's rows with the same gfx and cu_num. A row the call can't honour warns once and falls back to auto-select. The shipped CSV is empty, so nothing changes until rows are written (#6580).

Validation and unverified scope

Head 324a374cb (main bf5994891 merged in, which includes #5846 and #8313), one MI350X (gfx950):

  • python3 -m unittest op_tests.tuning_tests.{test_mha_fwd_dispatch,test_csv_validation,test_config_shape_collision,test_dispatch_verification,test_tuner_infra}: all 132 passed.
  • python3 -m pytest op_tests/test_mha_optional_flydsl.py: all 6 passed. Main passes them too; 7c6726630 failed the two flash_attn_varlen_func cases.
  • The gpu_model PCI-ID fallback now also maps MI300X (0x74A1, VF 0x74B5) and MI325X (0x74A5, VF 0x74B9), from ROCm's amdgpu.ids and mi_gpu_spec.yaml. The MI308 IDs stay out.
  • The tests for a model without rows fail with the fallback reverted, except the one that pins what the fallback leaves alone (a model with rows of its own uses only those). The new hd128 opus test fails against the hd192-only gate main had before [HIP] [Feature] Add group/varlen and sliding-window support to the hd128 opus forward #7584.

Unverified:

PR-specific question

The .github/ changes only add op_tests/tuning_tests/test_mha_fwd_dispatch.py to existing test lists: split_tests.sh (run by aiter-test.yaml's split_aiter_tests job under pull_request, not pull_request_target, so fork code gets a read-only token and no secrets) and the unittest command in tuning-tests.yaml, which runs only on schedule and workflow_dispatch. No trigger, permission, secret or runner changes.

Changed op tests

  • test_mha_fwd_dispatch.py (new): the lookup and dispatch this PR adds, with backends mocked. It covers one key shared by a call and its row, bad and duplicate rows, other hardware or head dims, a multi-arch GPU_ARCHS build, a call with how_v3_bf16_cvt=None, the gpu_model fallback (a model without rows, rows without a model, a table without the column, a model with its own rows), padded and paged calls skipping the key, compiled callers, a declined row falling back to auto-select (including an opus row on hd128 with and without AITER_ENABLE_FMHA_OPUS), and the public op reaching the pinned forward. Nothing else tests this code.
  • test_tuner_infra.py (extended): TestGpuModelKey for chip_info.get_gpu_model: products that share an arch get distinct models, a device name without a model falls back to the PCI product, the PCI lookup prefers subsystem_device over device, and the gfx942 IDs map MI300X and MI325X (VFs too) but no MI308 ID.
  • test_csv_validation.py (extended): test_mha_fwd_runtime_schema: the shipped tuned_mha_fwd.csv has exactly the runtime columns, no duplicate keys, and every row loads.
  • test_mha_optional_flydsl.py (two stubs): the test runs flash_attn_varlen_func in its own namespace. That namespace now stubs get_mha_fwd_tuned_backend and record_mha_fwd_selection, the two policy names this PR adds to the function. Its checks do not change.
  • README.md: lists test_mha_fwd_dispatch.py. Documentation only.

@amd-bartgips
amd-bartgips force-pushed the users/bartgips/fmha-single-store branch from bf10259 to fbf18fa Compare September 23, 2026 09:52
@amd-yashagar
amd-yashagar force-pushed the feat/gfx942-fmha-hd192-split-asm branch from 346dcd7 to 2d1a827 Compare September 23, 2026 11:26
@amd-bartgips
amd-bartgips force-pushed the users/bartgips/fmha-single-store branch 2 times, most recently from 6b6067a to 397f2d4 Compare September 23, 2026 11:55
@amd-bartgips amd-bartgips changed the title [MHA] Add tuned-config dispatch and delta-race tuner for packed varlen [MHA] Add tuned-config dispatch and an exhaustive tuner for packed varlen Sep 25, 2026
amd-bartgips added a commit that referenced this pull request Sep 28, 2026
#5762 raised its fixed-delta gate to 3%. This branch replaced that gate
with the shared PromotionPolicy, so the merge keeps this branch's
version of the three files; the next commits move the shared policy to
the same 3%.

Co-authored-by: Cursor <[email protected]>
@amd-bartgips
amd-bartgips force-pushed the users/bartgips/fmha-single-store branch from 8776074 to 8a11428 Compare September 28, 2026 14:17
amd-bartgips added a commit that referenced this pull request Sep 28, 2026
Moved unchanged from the MHA forward tuner branch (#5762) so that other
tuners can use them without waiting for it:

- mp_tuner: optional per-candidate status and detail (return_status), a
  per-candidate progress queue with result_callback, a faulted group
  keeping the candidates it had already measured, MpTunerTask, broader
  accelerator-fault detection, and a pool restart on a stale PID map.
- TunerCommon.measurement_kwargs, so --warmup and --iters reach the timed
  call instead of run_perftest's defaults.
- _read_csv builds a new frame rather than assigning into a slice.
- FileBaton treats a zombie lock holder as dead, so a builder that exited
  without releasing its lock no longer wedges the module build.
amd-bartgips added a commit that referenced this pull request Sep 28, 2026
Moved unchanged from the MHA forward tuner branch (#5762) so that other
tuners can use them without waiting for it:

- mp_tuner: optional per-candidate status and detail (return_status), a
  per-candidate progress queue with result_callback, a faulted group
  keeping the candidates it had already measured, MpTunerTask, broader
  accelerator-fault detection, and a pool restart on a stale PID map.
- TunerCommon.measurement_kwargs, so --warmup and --iters reach the timed
  call instead of run_perftest's defaults.
- _read_csv builds a new frame rather than assigning into a slice.
- FileBaton treats a zombie lock holder as dead, so a builder that exited
  without releasing its lock no longer wedges the module build.
amd-bartgips added a commit that referenced this pull request Sep 28, 2026
#5762 raised its fixed-delta gate to 3%. This branch replaced that gate
with the shared PromotionPolicy, so the merge keeps this branch's
version of the three files; the next commits move the shared policy to
the same 3%.
@amd-yashagar
amd-yashagar force-pushed the feat/gfx942-fmha-hd192-split-asm branch from 2760b97 to d7c3e42 Compare September 30, 2026 08:57
amd-bartgips added a commit that referenced this pull request Sep 30, 2026
Moved unchanged from the MHA forward tuner branch (#5762) so that other
tuners can use them without waiting for it:

- mp_tuner: optional per-candidate status and detail (return_status), a
  per-candidate progress queue with result_callback, a faulted group
  keeping the candidates it had already measured, MpTunerTask, broader
  accelerator-fault detection, and a pool restart on a stale PID map.
- TunerCommon.measurement_kwargs, so --warmup and --iters reach the timed
  call instead of run_perftest's defaults.
- _read_csv builds a new frame rather than assigning into a slice.
- FileBaton treats a zombie lock holder as dead, so a builder that exited
  without releasing its lock no longer wedges the module build.
amd-bartgips added a commit that referenced this pull request Oct 1, 2026
Moved unchanged from the MHA forward tuner branch (#5762) so that other
tuners can use them without waiting for it:

- mp_tuner: optional per-candidate status and detail (return_status), a
  per-candidate progress queue with result_callback, a faulted group
  keeping the candidates it had already measured, MpTunerTask, broader
  accelerator-fault detection, and a pool restart on a stale PID map.
- TunerCommon.measurement_kwargs, so --warmup and --iters reach the timed
  call instead of run_perftest's defaults.
- _read_csv builds a new frame rather than assigning into a slice.
- FileBaton treats a zombie lock holder as dead, so a builder that exited
  without releasing its lock no longer wedges the module build.
amd-bartgips added a commit that referenced this pull request Oct 1, 2026
Moved unchanged from the MHA forward tuner branch (#5762) so that other
tuners can use them without waiting for it:

- mp_tuner: optional per-candidate status and detail (return_status), a
  per-candidate progress queue with result_callback, a faulted group
  keeping the candidates it had already measured, MpTunerTask, broader
  accelerator-fault detection, and a pool restart on a stale PID map.
- TunerCommon.measurement_kwargs, so --warmup and --iters reach the timed
  call instead of run_perftest's defaults.
- _read_csv builds a new frame rather than assigning into a slice.
- FileBaton treats a zombie lock holder as dead, so a builder that exited
  without releasing its lock no longer wedges the module build.
@amd-bartgips
amd-bartgips force-pushed the users/bartgips/fmha-single-store branch from 8a11428 to ab166eb Compare October 1, 2026 12:55
@amd-bartgips
amd-bartgips force-pushed the users/bartgips/fmha-single-store branch from ab166eb to 5e212c8 Compare October 15, 2026 13:26
@amd-bartgips amd-bartgips changed the title [MHA] Add tuned-config dispatch and an exhaustive tuner for packed varlen [MHA] Honor a tuned row in MHA forward dispatch Oct 15, 2026
@amd-bartgips
amd-bartgips changed the base branch from feat/gfx942-fmha-hd192-split-asm to users/bartgips/tuning-shared-infra October 15, 2026 13:26
@amd-bartgips
amd-bartgips force-pushed the users/bartgips/fmha-single-store branch from 5e212c8 to 2057f17 Compare October 15, 2026 13:47
@amd-bartgips
amd-bartgips force-pushed the users/bartgips/tuning-shared-infra branch from e3a353a to 2412741 Compare October 15, 2026 13:47
@amd-bartgips
amd-bartgips force-pushed the users/bartgips/fmha-single-store branch from 2057f17 to f0621a0 Compare October 16, 2026 08:01
amd-bartgips added a commit that referenced this pull request Oct 16, 2026
Moved unchanged from the MHA forward tuner branch (#5762) so that other
tuners can use them without waiting for it:

- mp_tuner: optional per-candidate status and detail (return_status), a
  per-candidate progress queue with result_callback, a faulted group
  keeping the candidates it had already measured, MpTunerTask, broader
  accelerator-fault detection, and a pool restart on a stale PID map.
- TunerCommon.measurement_kwargs, so --warmup and --iters reach the timed
  call instead of run_perftest's defaults.
- _read_csv builds a new frame rather than assigning into a slice.
amd-bartgips added a commit that referenced this pull request Oct 16, 2026
gfx and cu_num cannot tell MI300X from MI325X, so a row measured on one
would be applied on the other. chip_info gains get_gpu_model (with an
AITER_GPU_MODEL override for replay environments), normalize_gpu_model
and get_tuning_hardware, the (gfx, gpu_model, cu_num) triple a family
scopes its rows by. run_config filters a tuned CSV by gpu_model when the
CSV has that column, the same way it already filters by gfx and cu_num.

Moved from the MHA forward tuner branch (#5762), since nothing in it is
MHA-specific; @yzhou103 wrote the run_config filter.
@amd-bartgips
amd-bartgips force-pushed the users/bartgips/tuning-shared-infra branch from 9f020c6 to c055f86 Compare October 16, 2026 08:03
amd-bartgips added a commit that referenced this pull request Oct 16, 2026
A tuner measures a candidate in its own worker; serving reads the tuned
CSV through the public operator in a new process. Nothing checked that
the two agree, so a row could be written that dispatch never honors.

aiter/utility/selection_proof.py (standard library only) closes that gap
for any family:

- the operator calls record_selection(family, ...) where it dispatches,
  a no-op unless a probe asked for it;
- the family's tuner module runs run_selection_probe(probe) when started
  with --_selection_probe, with a probe that calls the public operator,
  checks it against a reference and times it;
- prove_selection starts that child with the family's config env var
  pointing at the candidate CSV and returns verified, wrong_selection
  (ran correctly, dispatched elsewhere) or failed.

TunerCommon opts a family in with SELECTION_PROBE_MODULE, SELECTION_FAMILY
and expected_selection, reuses the existing config_env_name, and then
gives it prove_selection and a default run_config that proves each row.
Families that do not opt in see no change.

The mechanics are lifted from the MHA forward tuner (#5762), which
becomes the first family to use them.
@amd-bartgips
amd-bartgips force-pushed the users/bartgips/fmha-single-store branch from f0621a0 to 98674fd Compare October 16, 2026 08:03
zufayu
zufayu previously approved these changes Nov 17, 2026

@zufayu zufayu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Re-reviewed current head 9641c5a against its stacked base. The shipped CSV is empty, so default dispatch is unchanged. Exact hardware/problem keys, padded/paged and torch.compile bypasses, backend-decline fallback, GPU-model handling, and selection recording are covered by the targeted 126-test validation. I found no correctness blocker in this PR. Approving from the integration side; the stacked-base/retarget CI and the requested tuned-policy owner review remain independent merge gates, not reasons to defer this code review.

Base automatically changed from users/bartgips/tuning-shared-infra to main November 19, 2026 07:30
@yzhou103
yzhou103 dismissed zufayu’s stale review November 19, 2026 07:30

The base branch was changed.

@yzhou103
yzhou103 requested a review from a team November 19, 2026 07:30
@aiter-bot

aiter-bot commented Nov 19, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision 7c950fee5b56 · mode shadow

Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision.

Questions to answer in the PR description

  1. What behavior does this PR change, and why is the existing behavior insufficient?
  2. What did you validate, and what remains unverified? Include commands, hardware/configuration and results.
  3. What permissions and untrusted-input boundary does this CI change have, and can fork PR code or text reach a privileged execution path?
  4. For every changed op_tests/ file, what behavior does it cover and why is it not redundant? Write None if no op test changed.

Edit the PR Self-Review section in the PR description. Include the current revision SHA; this comment refreshes automatically.

Missing or invalid answers

  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

@github-actions github-actions Bot changed the title [MHA] Route MHA forward through a tuned backend row [FlyDSL] [CI] [JIT] [MHA] Route MHA forward through a tuned backend row Nov 19, 2026
@yzhou103

Copy link
Copy Markdown
Contributor

@zoe-cop review

@zoe-cop zoe-cop 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.

LGTM

@yzhou103

Copy link
Copy Markdown
Contributor

@valar-cop review

amd-bartgips added a commit that referenced this pull request Nov 19, 2026

@valar-cop valar-cop 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.

a few small things..

ci green.

Comment thread aiter/ops/mha_fwd_policy.py Resolved
Comment thread aiter/ops/mha_fwd_policy.py Resolved
get_gfx() names only the last GPU_ARCHS entry, so with
GPU_ARCHS=gfx942;gfx950 a gfx942 dropped every tuned row. Check the
running arch against get_gfx_list() instead.
The key coerced it with int(), which raised TypeError before dispatch
once a row matched the GPU and head dims.
The key builder now reads batch from cu_seqlens_q, as it reads the other
cells from q, k and v. The call site passes the tensor and no longer
computes a cell by hand.

test_mha_optional_flydsl runs flash_attn_varlen_func in its own namespace.
That namespace now stubs get_mha_fwd_tuned_backend and
record_mha_fwd_selection, the two policy names the function calls.
amd-bartgips and others added 3 commits November 20, 2026 14:41
An older libdrm amdgpu.ids can lack a product, and then the HIP device name
carries no model. The fallback now maps 0x74A1 and its VF 0x74B5 to mi300x,
and 0x74A5 and its VF 0x74B9 to mi325x. The IDs come from ROCm's amdgpu.ids
and mi_gpu_spec.yaml. The MI308 IDs in MI308_CHIP_IDS stay out of the table.
@yzhou103
yzhou103 requested a review from shay-li77 November 30, 2026 08:29
@amd-bartgips

Copy link
Copy Markdown
Contributor Author

Hi @shay-li77, thank you for taking this review! Quick summary: both review threads from valar-cop are fixed and resolved, and there is no open change request. The earlier approval was dismissed, so the PR needs a fresh approval, including one from team_aiter. I just merged main into the branch (7c950fee5b). The four required checks passed on the previous head and are re-running on this one. cc @yzhou103 (Zoe)

@shay-li77

Copy link
Copy Markdown
Contributor

@aiter-bot review

@aiter-bot

Copy link
Copy Markdown

aiter-bot — queued behind 1 review(s); expect to start in about 23 min. The box reviews one PR at a time.

@aiter-bot aiter-bot 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.

ROCm/aiter PR #5762 — [FlyDSL] [CI] [JIT] [MHA] Route MHA forward through a tuned backend row

Review (advisory): ⚠️ NEEDS WORK
Validation (deterministic): NOT RUN — REVIEW_AUTO_VALIDATE=0 (auto-validation disabled); the target this PR adds, op_tests/tuning_tests/test_mha_fwd_dispatch.py, was not run by this review
Perf (advisory): NOT RUN — the target ships no benchmark entry point (no --scenario bench, no perftest/@benchmark harness); the PR claims no numbers and changes no kernel
Size: 1312 lines / 13 files — over the review bar
Design (advisory): SPLIT — the natural seams: the chip_info.get_gpu_model move + comm_fused_moe_host dedup; the tuned_mha_fwd schema/loader + jit/core config property + empty CSV; the mha.py dispatch threading + lookup + tests + CI lists
Human: recommend yzhou103 review whether PR #5762's tuned-row contract — the gpu_model fallback order, the decline-to-auto-select-without-FlyDSL fallback, and a MHA_FWD_BACKENDS set that must grow with every new backend (main's mha_v4 today) — is the right policy for the #6580 tuner that will write the rows

📝 [verified] op_tests/tuning_tests/test_mha_fwd_dispatch.py's TestMhaVarlenForward mocks mha.get_gfx but not mha._IS_GFX1250_ASM_DEVICE, so on a gfx1250/MI450 box the metadata-only _select_gfx1250_fmha_fwd_varlen_asm returns the BF16 constant for the CPU dummies and dispatch reaches the real fmha_fwd_with_sink_varlen_asm — the "CPU-only tests" claim holds only on non-gfx1250 boxes (today's matrix runs them on gfx950/gfx942). Author must also mock _IS_GFX1250_ASM_DEVICE, as op_tests/test_mha_optional_flydsl.py's namespace already does.

📝 [verified] The PR's one admitted runtime cost — the 31-cell key construction in aiter/ops/mha_fwd_policy.py on every eager matching call once rows exist — ships with no measurement, and the test target exposes no benchmark entry point, so eager callers (vLLM's opaque-op path) cannot know the per-call price before #6580 turns the rows on. Reviewer should ask the author for a per-call number, or where #6580 measures it, before rows land.

1 finding(s) posted inline, on the lines they are about:

  • aiter/ops/mha.py:3696 — The diff no longer applies to the merge target

Comment thread aiter/ops/mha.py
S_dmask = torch.empty((0,), dtype=torch.float32, device=q.device)
rng_state = torch.empty((2,), dtype=torch.int64, device=q.device)
elif gfx1250_asm == _GFX1250_VARLEN_ASM_FP8:
elif selected_backend in (None, "asm_v3") and (

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ [verified] The diff no longer applies to the merge target — git apply fails at aiter/ops/mha.py:3696 — and the conflict sits inside the exact dispatch chain this PR re-gates: main added the elif can_impl_fmha_v4_thd(): branch (#8704) between the gfx1250 FP8 branch and the fmha_v3 branch, that branch checks no selected_backend, and MHA_FWD_BACKENDS in aiter/ops/mha_fwd_policy.py has no mha_v4 entry, so after the forced rebase a row pinning ck for a gfx950 hd256 bf16 GQA varlen call (a shape only mha_v4 serves) would silently run mha_v4 instead of the row's backend, and no row can ever pin the backend auto-select chooses there. Author must rebase and extend the selected_backend in (None, <name>) gating — and MHA_FWD_BACKENDS, or an explicit decline — to the mha_v4 branch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants