Skip to content

[ASM] [HIP] [gfx1250] asm mha bf16 hd256: batch and varlen forward - #7559

Merged
shengnxu merged 2 commits into
mainfrom
lxx/dev/gfx1250_asm_mha_bf16_hd256
Nov 9, 2026
Merged

shengnxu merged 2 commits into
mainfrom
lxx/dev/gfx1250_asm_mha_bf16_hd256

Conversation

@shay-li77

@shay-li77 shay-li77 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds gfx1250 (MI450) BF16 ASM forward kernels for head dim 256 (q/k/v head dim 256). There are batch (bshd) and packed varlen (THD) variants, each with a causal (bottom-right aligned) and a non-causal code object, and all of them can return the LSE. They are served through the existing entries aiter.fmha_fwd_with_sink_asm and aiter.fmha_fwd_with_sink_varlen_asm, and through the existing gfx1250 ASM routing in flash_attn_varlen_func / flash_attn_func.

Motivation

Compared with what aiter runs today for bf16 head-dim-256 attention on gfx1250 (the current aiter baseline), the new kernels are faster:

  • Equal lengths: 1.23–1.46x on most shapes and up to 1.8–2.0x on small causal shapes.
  • mi455x-opbench attn/uniform/B4L16000/h32d256: 1.27x non-causal and 1.26x causal.
  • Variable lengths: 1.75–7.83x, median 4.0x.

The kernels peak at about 2.6 PFLOPS, the same level as the existing hd128 ASM kernel measured the same way (hd128 2638 TF, hd256 2575 TF on a common 32-shape set).

Changes

  • Kernels (hsa/gfx1250/fmha_fwd_bf16/, hsa/gfx1250/fmha_fwd_bf16_varlen/):
    • fmha_bf16_pertokenBf16_hd256_128x128[_mask][_varlen].co and their csv rows.
    • Q tile and KV tile are both 128 rows. The kernels are built without sink support (ENABLE_SINK=0).
    • A row that sees no key, including kv length 0, gets O = 0 and LSE = -inf.
  • Batch C++ entry (csrc/py_itfs_cu/asm_fmha_fwd_with_sink.cu):
    • Accepts head dim 256 and takes bshd q/k/v/out as strided views in place. The stride limits are a token stride below 2^24 B and batch and head strides in (0, INT32_MAX] B; a dimension of size 1 is not checked.
    • Picks the launch options per call (see "Launch options" below), and the grid follows the remap bit.
    • Refuses a sink for head dim 256: those kernels are built without one.
    • Returns without a launch when there are no queries (batch 0 or seqlen_q 0), for every head dim; a zero grid dimension used to fail the launch.
    • D64 / D128 otherwise unchanged: options 0x7, same grid.
  • Varlen C++ entry (csrc/py_itfs_cu/asm_fmha_fwd_with_sink_varlen.cu):
    • Head dim 256 uses the strided kernargs and stride checks of D192x128.
    • It uses the same option rule, plus the launch-width padding described below.
    • Refuses a sink for head dim 256.
    • D64 / D128 / D192x128 are unchanged.
  • Launch options (s_opt): bit0 reverse_kv, bit1 double_q, bit2 remap_xy. They are chosen from host-side sizes only, without reading cu_seqlens:
    • remap_xy is set when kv heads × mean kv length (total_k / batch) ≤ 2^17 rows.
    • Causal calls use double_q + reverse_kv. Non-causal calls use double_q only together with remap_xy.
    • The rule was fitted with run_perftest on 16–64 heads, MHA and MQA, 1K–32K tokens, equal and variable lengths. Against the best option per shape, it loses 0.55% on average on the 216-shape fitting set and 0.82% on a 22-shape validation set.
    • Re-measuring with cold caches (inputs rotated by run_perftest) does not move the best threshold.
  • Varlen launch width: workgroups are dealt to the 8 XCCs round-robin by linear id. Without remap_xy, x is the Q tile. With an even launch width and unequal lengths, the tiles that do work for the shorter sequences then land on a few XCCs, which measured 2–5x slower.
    • So with remap_xy off, the host launches one more Q-tile column to make the width odd, unless the lengths are known to be equal. That column exits at once: the kernel exits by each sequence's own tile count, and max_q_len stays the real maximum.
    • Lengths are known equal only when q has exactly max_seqlen_q × batch rows. Fewer rows mean unequal lengths; more rows mean a padded q, whose lengths are unknown, so it is padded too.
  • Python (aiter/ops/mha.py):
    • fmha_fwd_with_sink_varlen_asm treats (256, 256) as strided, like (192, 128).
    • _select_gfx1250_fmha_fwd_varlen_asm accepts (256, 256). Like D192x128, it is offered to the ASM ahead of FlyDSL; _prefer_flydsl_over_gfx1250_bf16_varlen_asm is unchanged.
    • can_impl_fmha_fwd_with_sink_asm accepts head dim 256 when there is no sink and _can_impl_fmha_fwd_asm_d256_strides passes. With out None, that check covers the dense output fmha_fwd_with_sink_asm allocates. flash_attn_func still offers the call to FlyDSL first, as for D64 / D128.
    • can_impl_fmha_fwd_with_sink_asm, all head dims: windows follow the CK convention, as in the varlen gate. A left window ≥ 0, or a right window ≥ 0 without causal, is a mask the kernels cannot apply, so such calls no longer reach them. (-1, 0) without causal and causal (0, -1) used to be computed as no mask and as plain causal.
    • flash_attn_varlen_func: a call that needs gradients goes to the ASM forward only for head dims the gfx1250 ASM backward has (_GFX1250_BWD_HDIMS, now shared with the two backward gates). D256 has none. Such a call goes on as before this PR: FlyDSL takes no call that needs gradients, so it runs on Triton with ENABLE_CK=0, or through FlashAttnVarlenFunc with CK built.
    • _can_impl_fmha_varlen_asm_d192_strides: dense_last_dim_later skips the last-dim check of q/k/v only. out is used as given, so it is always checked.
    • Comments brought up to date for D256 (options per call, no sink, the FlyDSL-first policy).
  • Op tests: see "Changed op tests".

Routing impact:

  • Varlen: gfx1250 bf16 head-dim-256 varlen calls through flash_attn_varlen_func now go to this kernel instead of FlyDSL.
  • Varlen, calls that need gradients: D256 stays off the ASM forward in the pre-router. With CK built, such a call reaches the ASM forward through FlashAttnVarlenFunc, and its backward is CK's.
  • Batch: routing priority is unchanged. flash_attn_func gives the call to FlyDSL when FlyDSL accepts it. Otherwise, with CK enabled, _flash_attn_forward sends it to this kernel. With ENABLE_CK=0 the call goes to Triton, as it already does for D64 / D128.
  • Batch, windows of 0 (D64 / D128 / D256): no longer served by the ASM, as described above.

Performance (if applicable)

  • Hardware: MI450 (gfx1250 B0, 256 CUs, 8 XCCs).
  • Timing: aiter run_perftest, 2 warm-up runs and 101 profiled iterations. The reported time is the device time of all kernels in one call. Each candidate is measured for one round.
  • Inputs: randn bf16.
  • TFLOPS: 2 × q heads × visible (q, k) pairs × (256 + 256), counting causal pairs bottom-right aligned.
  • Kernels compared:
    • Before: the current aiter baseline, i.e. the kernel that flash_attn_varlen_func (varlen tables) and flash_attn_func (batch table) run for these calls without this PR.
    • After: this kernel through the ops entry.
    • Every candidate returns the LSE.

Varlen, equal lengths:

heads q/kv sequences causal Before (aiter baseline) After (ASM) Change
64/4 2×2048 no 295.4 us (1861 TF) 219.5 us (2504 TF) 1.35x
64/4 2×2048 yes 170.6 us (1612 TF) 134.3 us (2047 TF) 1.27x
16/16 1×16384 no 2277.0 us (1932 TF) 1784.1 us (2465 TF) 1.28x
16/16 1×16384 yes 1232.6 us (1784 TF) 846.1 us (2599 TF) 1.46x
16/16 1×32768 no 9402.3 us (1871 TF) 7440.2 us (2364 TF) 1.26x
16/16 1×32768 yes 4806.3 us (1830 TF) 3787.2 us (2323 TF) 1.27x
16/2 4×4096 no 545.5 us (2016 TF) 408.1 us (2695 TF) 1.34x
16/2 4×4096 yes 296.3 us (1856 TF) 222.8 us (2467 TF) 1.33x
32/32 4×16000 (opbench) no 18333.8 us (1830 TF) 14491.1 us (2316 TF) 1.27x
32/32 4×16000 (opbench) yes 9515.6 us (1763 TF) 7524.3 us (2230 TF) 1.26x
32/1 1×16384 no 4724.3 us (1862 TF) 3738.2 us (2353 TF) 1.26x
32/1 1×16384 yes 2340.4 us (1879 TF) 1823.4 us (2412 TF) 1.28x
64/64 16×1024 no 668.7 us (1644 TF) 541.4 us (2031 TF) 1.24x
64/64 16×1024 yes 638.3 us (861 TF) 358.4 us (1534 TF) 1.78x

Batch (bshd shape; sbhd memory for batch = 1, bshd memory for batch > 1):

heads q/kv batch × seq causal Before (aiter baseline) After (ASM) Change
16/16 1×4096 no 142.2 us 104.0 us (2642 TF) 1.37x
16/16 1×4096 yes 120.6 us 60.9 us (2256 TF) 1.98x
16/16 1×16384 no 2411.2 us 1792.8 us (2453 TF) 1.34x
16/16 1×16384 yes 1269.6 us 921.8 us (2386 TF) 1.38x
32/4 1×8192 no 1152.0 us 900.1 us (2443 TF) 1.28x
32/4 1×8192 yes 559.6 us 438.3 us (2509 TF) 1.28x
32/32 4×16000 no 18597.7 us 14410.8 us (2328 TF) 1.29x
32/32 4×16000 yes 9438.9 us 7532.3 us (2227 TF) 1.25x
32/1 1×16384 no 4826.4 us 3750.3 us (2345 TF) 1.29x
32/1 1×16384 yes 2367.9 us 1932.7 us (2276 TF) 1.23x
64/64 16×1024 no 723.4 us 515.0 us (2135 TF) 1.40x
64/64 16×1024 yes 639.6 us 340.6 us (1614 TF) 1.88x

Varlen, variable lengths:

  • 52 shapes: 26 length distributions × (32/32, 64/8) heads × causal / non-causal, about 64K tokens each.
  • Distributions: lognormal with mean 256 / 1024 / 4096 and σ 0.5 / 1.0 / 1.5; two bimodal sets (a few long sequences plus many short ones); the mi455x-opbench n86 / n29 length lists.
  • ASM vs the aiter baseline: 1.75–7.83x, median 4.0x; the more short sequences, the larger the gain. Output cosine similarity to the baseline ≥ 0.999992. Selected rows:
distribution sequences mean / max heads q/kv causal Before (aiter baseline) After (ASM) Change
logn_m256_s0.5 238 276 / 1405 32/32 no 2589.5 us 680.3 us (1219 TF) 3.81x
logn_m1024_s1.0 56 1199 / 10813 32/32 no 13899.6 us 4182.9 us (2016 TF) 3.32x
logn_m4096_s0.5 18 3841 / 6599 32/32 no 8411.5 us 4818.2 us (2055 TF) 1.75x
opbench_n86 86 744 / 6330 32/32 no 8391.9 us 1870.0 us (1773 TF) 4.49x
opbench_n29 29 3103 / 25654 64/8 no 81724.9 us 32284.7 us (2132 TF) 2.53x
bimodal_2x8k_short300 170 387 / 8192 32/32 yes 11880.1 us 1531.4 us (1608 TF) 7.76x
opbench_n86 86 744 / 6330 32/32 yes 7620.8 us 1111.7 us (1492 TF) 6.85x

Testing

  • Unit tests added or updated
  • Performance benchmarks run
  • Tested on MI250X
  • Tested on MI300X

The kernels are gfx1250-only; all testing ran on MI450 (gfx1250).

Documentation

  • Docstrings updated
  • User guide updated
  • Performance guide updated
  • No documentation change is needed, with the reason stated below

Dependencies

  • No new third-party dependencies added
  • New dependencies are listed and justified below

Breaking Changes

None.

PR Self-Review

Reviewed revision

Behavior and intent

  • New capability: bf16 head-dim-256 forward on gfx1250 through the ASM entries.
  • Varlen calls with that head dim now route to the ASM ahead of FlyDSL, the same priority as D192x128.
  • Batch routing priority is unchanged.
  • D64 / D128 / D192x128 launches are unchanged.
  • Fixes in shared code, for every head dim:
    • batch windows of 0 are no longer served by the ASM;
    • a batch call without queries returns without a launch;
    • the varlen pre-router checks a non-dense out.

Validation and unverified scope

On MI450 (gfx1250 B0), the op tests were run as below. The two environment variables route the torch reference's GEMMs to rocBLAS. Without them, a hipBLASLt fp32 batched GEMM picked for some reference shapes intermittently reads out of bounds and faults the GPU (the same issue as mi455x-opbench known issue 1); the attention kernels are not involved.

TORCH_BLAS_PREFER_HIPBLASLT=0 ROCBLAS_USE_HIPBLASLT=0 python3 op_tests/test_fmha_fwd_with_sink_varlen_asm.py --dtype bf16 -d 64 128 192 256
TORCH_BLAS_PREFER_HIPBLASLT=0 ROCBLAS_USE_HIPBLASLT=0 python3 op_tests/test_fmha_fwd_with_sink_asm.py -d 64 128 256 -l 0 1 2

Results: every check passed, with O and LSE error 0; every comparison with the torch reference asserts (assertAllclose). The runs need no kernel serialization.

  • Varlen, all four head dims:
    • correctness: 92 rows;
    • strided q/k/v: 32 rows, and strided out: 16 rows. Every repeat equals the dense run bit for bit.
    • q/k lengths: 28 rows, covering sq ≠ sk, kv = 0 and q = 0;
    • unsupported strides: refused, 8 rows;
    • gate: 22 cases;
    • gradient routing: 6 cases. D128 / D192x128 take the ASM forward and backward. D256 with gradients takes no ASM launch and its backward runs (Triton, ENABLE_CK=0).
  • Batch, D64 / D128 / D256:
    • correctness: 204 rows (bshd / bhsd / sbhd × causal × 2 inits), for both the ASM and the public candidate;
    • gate: 16 cases, covering windows, sinks, strides and the allocated output;
    • empty input: 6 cases.
  • AITER_ENABLE_EXPERIMENTAL=1: the varlen test passes too. There, the calls offered to FlyDSL first skip the bit-for-bit public candidate and are routed as expected.
  • Performance after the launch-width change: 14 shapes with remap_xy off (equal and variable lengths, causal and not) took 0.976–1.007x (median 0.994) of the time measured before the change for the same option and padding.

Not verified (the test container has ENABLE_CK=0):

  • Batch flash_attn_func with CK enabled, where _flash_attn_forward would reach the ASM. The batch gate is tested directly instead.
  • With CK built, a D256 varlen call that needs gradients runs the ASM forward with CK's backward. The two agree on the LSE convention and layout, but the pair was not run.
  • Option-rule loss on heavy-tailed length distributions. The rule uses the mean kv length, which underestimates the work of a few very long sequences; on such shapes it is 4–7% slower than the best option.

PR-specific question

Changed op tests

  • op_tests/test_fmha_fwd_with_sink_varlen_asm.py:
    • Correctness table: adds D256 shapes. They include unaligned lengths, GQA, and shapes where the rule turns remap_xy off with equal and unequal lengths, which exercises the launch-width padding.
    • Strided tables: the q/k/v, out and unsupported-stride tests are parameterized by head dim, so they cover both D192x128 and D256. The out-padding tests cover an odd row width.
    • q/k lengths table: sq ≠ sk, kv = 0 and q = 0. The reference gives O = 0 and LSE = -inf on rows that see no key.
    • Gate table: (256, 256) routes to the ASM; head dim 96 does not. Ahead of maybe_contiguous, a q with a non-unit last-dim stride is accepted and an out with one is refused.
    • Gradient routing table: ASM forward launches through flash_attn_varlen_func with and without gradients, D128 / D192x128 / D256. With gradients, the backward must run.
    • Experimental mode: the strided and q/k-lengths tables skip the bit-for-bit public candidate for calls offered to FlyDSL first.
    • Reference checks: the correctness, strided, q/k-lengths and unsupported-stride tables assert their comparisons with the torch reference (assertAllclose).
    • Perf table: ASM, public-entry and aiter-baseline columns, all returning the LSE, with the opbench shape, MQA and a 16×1024 64-head shape.
    • Not redundant: these are the only tests of the D256 varlen kernel, its stride handling and its gate.
  • op_tests/test_fmha_fwd_with_sink_asm.py:
    • Correctness: adds D256 shapes: aligned; q-unaligned; kv-unaligned, including non-causal; sq > sk with causal rows that see no key; sq < sk; and a shape where remap_xy is off. Each runs in bshd / bhsd / sbhd memory with the ASM (ops) and the public candidate.
    • Reference checks: O and LSE assert against the torch reference (assertAllclose). The public LSE is compared on rows that see a key only (mask=): behind flash_attn_func the call may go to FlyDSL, Triton or CK, and Triton writes LSE = 0 on rows that see no key. The ASM candidate is checked on every row.
    • Gate table (new): drives the batch gate through _flash_attn_forward, with every forward entry replaced by a stand-in that raises instead of launching; with ENABLE_CK=0, flash_attn_func never reaches it. Covers head dims, sinks, windows of 0, a k token stride of 2^24 B, and the output the wrapper allocates (batch stride 2^30 B accepted, 2^31 B refused, on meta tensors).
    • Empty input (new): batch 0 or seqlen_q 0 returns without a launch, D64 / D128 / D256.
    • Perf table: adds D256 shapes.
    • Not redundant: these are the only tests of the D256 batch kernel, its stride checks and the batch gate.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the gfx1201 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 7559 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

@shay-li77
shay-li77 force-pushed the lxx/dev/gfx1250_asm_mha_bf16_hd256 branch from 423d129 to f4d67e2 Compare November 6, 2026 13:52
@shay-li77
shay-li77 marked this pull request as ready for review November 6, 2026 13:54
@shay-li77
shay-li77 requested review from a team and a balanced review from Copilot November 6, 2026 13:54
@aiter-bot

aiter-bot commented Nov 6, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision b7aa8fae8ee8 · 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. Which architecture, dtype and shape boundaries select the changed kernel path, and what invariant prevents unsupported inputs from reaching it?
  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
  • FAIL — PR-specific question has no substantive answer

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

Copilot AI 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.

🟡 Changes recommended

Critical correctness tests do not enforce output or LSE agreement with the Torch reference, and the FlyDSL benchmark performs less work than the other candidates, making the comparison inconsistent.

3 open issues
What changed in this PR

Adds gfx1250 BF16 head-dimension-256 assembly forward attention through AITER’s existing batch and variable-length APIs, supporting causal and non-causal execution with optional LSE output.

Changes:

  • Registers D256 kernels and adds stride validation, per-call launch options, and variable-length grid padding.
  • Extends Python routing while preserving sink restrictions and gradient fallbacks; fixes batch window eligibility.
  • Expands correctness, routing, stride, empty-input, and performance tests.
File Description
op_tests/​test_fmha_fwd_with_sink_varlen_asm.py Adds D256 variable-length, stride, gradient-routing, and benchmark cases.
op_tests/​test_fmha_fwd_with_sink_asm.py Adds D256 batch coverage, routing gates, empty-input tests, and benchmarks.
hsa/​gfx1250/​fmha_fwd_bf16/​fmha_fwd_bf16.csv Registers causal and non-causal D256 batch kernels.
hsa/​gfx1250/​fmha_fwd_bf16_varlen/​fmha_fwd_bf16_varlen.csv Registers causal and non-causal D256 variable-length kernels.
csrc/​py_itfs_cu/​asm_fmha_fwd_with_sink.cu Adds D256 validation and launch selection, plus empty-query handling.
csrc/​py_itfs_cu/​asm_fmha_fwd_with_sink_varlen.cu Adds D256 strided arguments, launch selection, and grid padding.
aiter/​ops/​mha.py Integrates D256 dispatch, stride checks, window restrictions, and gradient-aware routing.

Review effort: Balanced

Comment thread op_tests/test_fmha_fwd_with_sink_asm.py Resolved
Add the gfx1250 BF16 hd256 ASM forward kernels to fmha_fwd_with_sink_asm and
fmha_fwd_with_sink_varlen_asm, with strided q/k/v/out, empty-KV support and
per-shape launch options. Routing keeps the existing ASM priority. Op tests
cover hd256.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@shay-li77
shay-li77 force-pushed the lxx/dev/gfx1250_asm_mha_bf16_hd256 branch from f4d67e2 to 7487db6 Compare November 8, 2026 08:22
Copilot AI balanced review requested due to automatic review settings November 8, 2026 08:22

Copilot AI 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.

🟡 Changes recommended

The unequal-length causal tests overcount visible query/key pairs in _flops_bytes, inflating reported TFLOPS by about 3.32× for sq=1000, sk=300.

1 open issue
3 resolved since last review

Review effort: Balanced

Comment thread op_tests/test_fmha_fwd_with_sink_asm.py Resolved
@shengnxu
shengnxu merged commit 5c003a5 into main Nov 9, 2026
@shengnxu
shengnxu deleted the lxx/dev/gfx1250_asm_mha_bf16_hd256 branch November 9, 2026 01:53
ruanjm pushed a commit that referenced this pull request Nov 10, 2026
…7559)

Add the gfx1250 BF16 hd256 ASM forward kernels to fmha_fwd_with_sink_asm and
fmha_fwd_with_sink_varlen_asm, with strided q/k/v/out, empty-KV support and
per-shape launch options. Routing keeps the existing ASM priority. Op tests
cover hd256.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

5 participants