Skip to content

[FlyDSL] [Feature] Add quantized attention-output intranode all-to-all for Ulysses sequence-parallel attention - #7648

Merged
TennyWang1223 merged 9 commits into
mainfrom
ksikiric/attention-output-a2a
Nov 20, 2026
Merged

TennyWang1223 merged 9 commits into
mainfrom
ksikiric/attention-output-a2a

Conversation

@ksikiric

@ksikiric ksikiric commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add AttentionOutputA2AIntraNodeOp, a FlyDSL intranode operator for the attention-output hop of Ulysses sequence parallelism. It quantizes the BF16 MHA output and performs the inverse Ulysses all-to-all over MoRI symmetric memory, writing each destination rank's activation directly in the layout consumed by the following output-projection GEMM.

It is the output-side counterpart of the input-hop operator from #5815 and reuses that operator's parity-reuse gate and completion kernels.

Motivation

The output hop currently sends the BF16 attention output through RCCL, and each destination then quantizes it again for its quantized output projection. This operator quantizes at the source and sends quantized bytes, removing the BF16 exchange and the destination's separate activation quantizer:

packed MHA output (BF16 BSHD, all sequence rows, local heads)
  -> quantize for the consumer GEMM's codec
  -> MoRI peer writes (inverse Ulysses all-to-all)
  -> this rank's sequence rows for all heads, in the consumer GEMM's layout

Changes

  • aiter/ops/flydsl/attention_output_a2a_intranode.py: the new operator. No existing op changes behavior.
  • aiter/ops/flydsl/kernels/attention_output_a2a_intranode_kernel.py: the E4M3 quantize-and-push kernel and the copy kernel for the canonically packed MX codecs. Buffer reuse and completion use make_attention_a2a_reuse_jit and make_attention_a2a_completion_kernel from [FlyDSL] [CI] Add FlyDSL fused intranode all-to-all for Ulysses sequence-parallel attention #5815.
  • aiter/ops/flydsl/kernels/attention_a2a_intranode_kernel.py (the input-hop kernel from [FlyDSL] [CI] Add FlyDSL fused intranode all-to-all for Ulysses sequence-parallel attention #5815): moves from deprecated FlyDSL APIs to their stable forms (flyc.get_backend().target.arch, fx.max/fx.min, fx.gpu.shuffle_xor). The compiled ISA is unchanged for every configuration xDiT and the benchmark use.
  • op_tests/multigpu_tests/test_attention_output_a2a.py: the multi-GPU correctness test.
  • op_tests/multigpu_tests/bench_attention_a2a.py: --hop output benchmarks the new op against RCCL plus the consumer's quantizer. The input hop stays the default, and both hops share the distributed and MoRI setup.

Public contract

  • AttentionOutputA2AIntraNodeOp(*, rank, world_size, shape, group, codec="e4m3", block_num=128, warp_num_per_block=8)
  • op(input, stream=None, destination_scales=None) -> PackedAttentionOutputResult(payload, scale)
  • ATTENTION_OUTPUT_A2A_CODECS = ("e4m3", "e4m3_external_scale", "mxfp4", "mxfp6")
  • Input: contiguous BF16 BSHD [1, S_global, H_local, 128]. S_global must divide by the world size, and the world size must be 2, 4, or 8.
  • Output: each destination receives its S_global / world_size rows for all H_local * world_size heads.
Codec Payload Scale Consumer
e4m3 BSHD FP8, as per_1x128 quantizes FP32 per 128-wide head vector gemm_a8w8_blockscale
e4m3_external_scale BSHD FP8, clamp(x / destination_scales[dst]) as TorchAO quantizes destination_scales[rank], viewed as (1, 1) TorchAO per-tensor FP8 GEMM (torch._scaled_mm)
mxfp4 E2M1, [rows, features / 2] E8M0 per 1x32, shuffled A4W4 layout gemm_a4w4
mxfp6 A6W6/A6W4 packed layout packed E8M0 scales gemm_a6w6, gemm_a6w4
  • e4m3 is byte-identical to aiter's per_1x128 quantizer for finite, infinite and quiet-NaN inputs. A signalling NaN, which arithmetic never produces, can get a different scale: per_1x128 skips it like a quiet NaN ([HIP] Opt group quant gfx1250 #5985), while the op resets the running maximum it is folded into.
  • e4m3_external_scale follows TorchAO's dynamic per-tensor activation quantization (_quantize_affine_float8: divide, clamp, cast), which the consuming projection runs. It is not static_per_tensor_quant, which multiplies by the hardware reciprocal of the scale and rounds a few values differently. A NaN input becomes an FP8 NaN, though not always with TorchAO's sign bit.
  • e4m3_external_scale applies no scaling policy and performs no reduction. The caller passes one FP32 descale per destination rank and must keep them positive and finite, identical on every source rank for a given destination, ready on the launch stream, and unchanged until the consuming GEMM has read the result. The op checks only dtype, shape, device and contiguity.
  • e4m3 also targets gfx942 (FNUZ). The other codecs require gfx950.
  • The payload, and the scale of every codec except e4m3_external_scale, alias double-buffered symmetric storage that is reused two calls later. Consumers must finish before then, and a consumer on another stream must be joined explicitly.
  • All calls must use one stream: the reuse gate takes reaching a call on that stream as proof that earlier consumers of the parity have finished. A call on another stream raises. destination_scales, and input when stream is passed, are recorded on the launch stream.
  • group is mandatory and must contain exactly the MoRI participants.

Safety checks

  • Construction checks the group size and rank, and MoRI PE/npes agreement. It then collectively agrees on shape, launch geometry, world size, codec and spin timeout before allocating any symmetric memory, so mismatched ranks raise instead of hanging in the SHMEM barrier.
  • Missing peer pointers and diverging symmetric-buffer offsets raise on every rank.
  • Each MX codec's layout is its canonical quantizer's. For mxfp6, the copy takes its tile geometry from the A6W6 packer (aiter/ops/gemm_op_a6w6.py), and construction raises if mxfp6_gemm_pack_size disagrees with the tiles the copy addresses. The mxfp4 scale shuffle matches aiter::mx_scale_shuffle_idx, and the test compares both layouts byte for byte against the canonical quantizers.
  • The input, payload, scale and local-pack extents are checked against the 32-bit raw-buffer limit.
  • Each call waits until every destination has released the buffers of the parity it is about to write, so a late rank cannot have live buffers overwritten.
  • Each call checks the input dtype, shape, device, contiguity and stream, and the destination_scales contract.
  • Debug: AITER_A2A_SPIN_TIMEOUT_ITERS=N makes each device wait loop trap after N polls instead of hanging, as in [FlyDSL] [CI] Add FlyDSL fused intranode all-to-all for Ulysses sequence-parallel attention #5815.

Performance (if applicable)

python3 op_tests/multigpu_tests/bench_attention_a2a.py -w 8 --hop output --shapes wan2.2 --iterations 50. "Before" is the work the operator replaces: the RCCL inverse all-to-all of the BF16 output followed by the consumer's quantizer on the destination, which for e4m3_external_scale is aiter's HIP per-tensor quantizer. For e4m3_external_scale, "After" also includes the caller's scale policy (per-destination amax and a world-size MAX all-reduce). Outputs are compared bit-exactly before timing; for e4m3_external_scale the comparison is against TorchAO's formula.

Bandwidth is the BF16 attention output each rank exchanges (97.0 MB at the Wan2.2 shape) divided by the slowest rank's median time, as in the nccl-tests algorithm bandwidth. The benchmark also reports min and max.

Hardware Workload/configuration Before After Change
8x MI355X (gfx950) Wan2.2 shape (75776, 40, 128), e4m3 244.6 GB/s 582.6 GB/s 2.38x
8x MI355X (gfx950) Wan2.2 shape (75776, 40, 128), e4m3_external_scale 190.8 GB/s 438.1 GB/s 2.30x
8x MI355X (gfx950) Wan2.2 shape (75776, 40, 128), mxfp4 246.2 GB/s 657.6 GB/s 2.67x
8x MI355X (gfx950) Wan2.2 shape (75776, 40, 128), mxfp6 240.0 GB/s 688.4 GB/s 2.87x

End to end, the xDiT integration speeds up 40-step Wan2.2 T2V runs on eight GPUs by 1.4% to 2.5%, depending on the GEMM format.

Testing

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

Tested on MI355X (gfx950). MI250X is not supported. e4m3 also targets gfx942 but has not been run on MI300X; see "Validation and unverified scope".

Documentation

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

The contract is documented in the module, class, and result docstrings. The guides have no page for the intranode attention A2A operators.

Dependencies

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

The operator uses MoRI and FlyDSL, which the input-hop operator from #5815 already requires.

Breaking Changes

None.

PR Self-Review

Reviewed revision

c10d847

Behavior and intent

This PR adds a new op, AttentionOutputA2AIntraNodeOp, and changes no existing op's behavior. For the Ulysses output hop, xDiT currently sends the BF16 attention output through RCCL all_to_all_single, and the output projection then quantizes it again. The new op quantizes at the source into the consumer GEMM's activation layout and writes each destination's rows into its MoRI symmetric buffer, so both the BF16 exchange and the separate quantizer go away. At the Wan2.2 shape on eight MI355X GPUs, it reaches 2.3x to 2.9x the bandwidth of RCCL plus the quantizer.

Validation and unverified scope

  • gfx950 (8x MI355X), FlyDSL 0.5.0 (main's pin since [FlyDSL] [CI] [Build] Bump FlyDSL pin to v0.5.0 #7600), python3 op_tests/multigpu_tests/test_attention_output_a2a.py -w 2 4 8: completed rows=24 checks=952 failures=0. For all four codecs at world sizes 2, 4, and 8, with 256 and 1184 destination rows (1184 is not a multiple of 256, so it exercises the row-tile tails), it checks:
    • Payload and scale bytes against the canonical quantizer applied after an RCCL inverse all-to-all, for random inputs and corner inputs: signed zeros, the smallest normal BF16 values of both signs, a -1 to 1 ramp, the BF16 maximum, a NaN, and an infinity of each sign. e4m3_external_scale bytes are compared up to the sign of NaN. MXFP4 tails compare the scales of real rows at their shuffled offsets.
    • Consumer GEMM outputs, bitwise: gemm_a8w8_blockscale, torch._scaled_mm, gemm_a4w4, gemm_a6w6, and gemm_a6w4.
    • Buffer lifetime: a result survives the next call, and the third call reuses the first call's parity correctly.
    • A delayed rank, and a slow reader: rank 0 reads result N after call N+1, on the op's stream and behind a delay, while its peers run on to call N+2. With the reuse gate's launches skipped, this check fails on the E4M3 push and the MX packed-copy paths.
    • Errors raised on every rank: missing group, swapped rank, unknown codec, head dimension 64, launch-geometry disagreement, unexpected or per-rank instead of per-destination scales, a wrong input shape, a change of stream, and an A6W6 pack size the copy does not address.
  • The multi-GPU CI job runs the test with its default arguments: world size 2, all four codecs, 8 heads.
  • The output-op kernels compile to the same ISA on FlyDSL 0.5.0 as on 0.4.1, and the op times at the Wan2.2 shape match within run-to-run noise in an alternating A/B, so the table above holds for 0.5.0.
  • Input-hop kernel: for xDiT's eight A2A profiles at the Wan2.2 shard (with and without the padded K/V length of Wan2.2 T2V) and the benchmark's five recipes at both of its shapes, the final ISA and register allocation of all 382 compiled kernels is identical before and after the API change, on FlyDSL 0.4.1 and on 0.5.0 (against main's kernel), and python3 op_tests/multigpu_tests/test_attention_a2a.py -w 2 4 8 --heads 8 40, as CI runs it, passes on both: completed rows=273 checks=14686 failures=0.
  • Unverified: the gfx942 (MI300X) e4m3 path has not been run. End-to-end coverage comes from the xDiT integration, which is not part of this PR.

PR-specific question

Pending: answered once the automated PR Self-Review comment posts its question for this revision.

Changed op tests

  • op_tests/multigpu_tests/test_attention_output_a2a.py: the correctness test for the new op, which no existing test covers. It checks every codec's payload and scale bytes against the canonical quantizer after an RCCL inverse all-to-all, the consumer GEMM outputs bitwise, buffer reuse across calls, a delayed rank, a slow reader against the reuse gate, and the errors every rank raises for invalid configurations.
  • op_tests/multigpu_tests/bench_attention_a2a.py: --hop output is the perf harness for the op and the source of the table above. Before timing, it compares the op's outputs bit-exactly against RCCL all_to_all_single plus the consumer's quantizer. CI already skips this file via skip_tests.

@github-actions

github-actions Bot commented Nov 9, 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 Radeon R9700 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 7648 --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.

Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.

@johannes-graner johannes-graner 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.

Thanks for the work on this. Below are the items I would like to see addressed before merge, with a few exceptions. Item 15 is a shared follow-up with the in-hop kernel from #5815, and whether it lands in this PR or a follow-up is up to you. Items 15 to 17 are lower importance and are listed last. Two design questions are also open: one below the items, and one inline on the bench registration line. I would like your view on both.

Items

  • 1 — Parity-reuse gate is not exercised by the test
  • 2 — e4m3 output diverges from the canonical quantizer for groups containing NaN
  • 3 — External-scale reference mirrors the kernel formula
  • 4 — External-scale baseline is an eager torch expression
  • 5 — Serialized submission streams
  • 6 — Input extent is not checked against the raw-buffer limit
  • 7 — External-scale agreement and lifetime
  • 8 — Arch selection in the wrapper, builder, test and benchmark
  • 9 — Shared transport lifecycle
  • 10 — Unselected MX encoder in the push builder
  • 11 — Share the Hadamard butterfly with the in-hop kernel
  • 12 — Unused constant, reimplemented stdlib function, and cache version suffix
  • 13 — Input is not stream-recorded when a side stream is passed
  • 14 — MX scale swizzle as a shared layout

Lower importance

  • 15 — Deprecated and unstable FlyDSL API uses
  • 16 — Row-count help text
  • 17 — Benchmark sample size

Design questions

  • Layout ownership. The transport hard-codes the MXFP6 tile sizes (256 rows, 128 K), the K guards, the payload and scale tile bytes, and the MXFP4 scale shuffle. The host takes its pack size from mxfp6_gemm_pack_size, but the device addresses the layout independently. A codec name does not pin the layout either: ordinary A4W4 MXFP4 and the H32-rotated FP4 operand for A6W4 weights share a dtype and shape. If the canonical packer changes, source quantization follows it while the peer copy may keep the old addressing. Which module should own each codec's physical layout, and what should happen when that layout changes?

Comment thread .github/scripts/aiter_test.sh Resolved
- E4M3 matches per_1x128 for NaN and infinite inputs: a NaN-ignoring group
  amax from aiter::kAmaxFloor and a clamp that saturates NaN as v_med3_f32 does.
- e4m3_external_scale is documented as TorchAO's per-tensor quantization
  (divide, clamp, cast), with its caller preconditions.
- The push kernel only builds the two E4M3 modes; the unused MX encoder is gone.
- The wrapper passes its arch to the builders, checks it against the FlyDSL
  target, requires one stream across calls, records a side-stream input, checks
  every raw-buffer extent and symmetric-buffer offsets, aggregates missing peer
  pointers on every rank, and wires AITER_A2A_SPIN_TIMEOUT_ITERS.
- The test adds a slow reader against the parity reuse gate, NaN/Inf corners, a
  stream change, and MXFP4 tail scales of real rows.
- The benchmark moves into bench_attention_a2a.py --hop output, times aiter's HIP
  per-tensor quantizer for e4m3_external_scale, and reports min/median/max.
…e input hop

The attention-output packed copy now takes the MXFP6 tile geometry (tile
rows, K tile, K guard tiles, payload and scale tile bytes) from
aiter.ops.gemm_op_a6w6 instead of restating it. Construction checks that
mxfp6_gemm_pack_size for the source packs and the destination matches the
tiles the copy addresses and raises on every rank, before any collective or
symmetric allocation, if it does not. A negative-construction case patches
the packer's pack size and checks that every rank raises. The docstring
names each MX codec's layout owner: mxfp4 is the A4W4 activation layout of
the per_1x32 quantizer, not the H32-rotated FP4 operand for A6W4 weights.

The input-hop kernel from #5815 moves to the stable FlyDSL forms:
flyc.get_backend().target.arch instead of
flydsl.compiler.backends.current_target, fx.max/fx.min instead of
maximumf/minimumf, and fx.gpu.shuffle_xor instead of Numeric.shuffle_xor.
For xDiT's A2A profiles and the benchmark's recipes, every compiled
kernel's ISA is unchanged.
@ksikiric

Copy link
Copy Markdown
Contributor Author

Thanks for the careful review. Everything is addressed on the branch, including item 15 for the input hop's kernel, and item 3 is resolved by changing the contract rather than the kernel (details in the thread). Verification on 8x MI355X:

  • test_attention_output_a2a.py -w 2 4 8: completed rows=24 checks=952 failures=0 (812 before; the new checks are the slow reader, the NaN/±Inf corners, the stream change, the A6W6 pack-size check and the MXFP4 tail scales).
  • The new slow-reader case fails with the reuse gate's launches skipped, on both the E4M3 push path and the MX packed-copy path.
  • At the Wan2.2 configuration the compiled e4m3_external_scale, mxfp4 and mxfp6 kernels are instruction-for-instruction identical to the reviewed head; e4m3 is 3 instructions shorter. In alternating A/B runs against the reviewed head, e4m3 is 0.3 us (0.2%) slower, 165.1 vs 165.4 us as the mean of three runs' medians, and the other codecs are within run-to-run noise. The external-scale speedup drops from 2.99x to 2.30x with the HIP baseline.
  • Input hop (item 15): the final ISA is identical before and after for all 382 kernels that xDiT's eight profiles and the benchmark's recipes compile, and test_attention_a2a.py -w 2 4 8 --heads 8 40, as CI runs it, passes.

Design question: layout ownership

Each codec's canonical quantizer owns its layout, and the transport now depends on it rather than restating it.

  • MXFP6: the A6W6 packer (aiter/ops/gemm_op_a6w6.py). The packed copy takes the tile rows, K tile, K guard tiles and payload and scale tile bytes from that module, as gemm_op_a6w4 and gemm_op_a4w6 already take its tile constants, and construction checks that mxfp6_gemm_pack_size for the source packs and the destination equals what the copy addresses, raising on every rank otherwise. A change to the tile constants therefore flows into the copy, and any other change to the pack sizes fails at construction. The copy moves whole tiles, so the layout inside a tile is irrelevant to it; the tile order lives in the HIP packer, and the test's bitwise comparison against the packer and both GEMMs pins it.
  • MXFP4: the per_1x32 quantizer, whose scale shuffle is aiter::mx_scale_shuffle_idx in C++. There is no Python form to import, so _a4w4_scale_index names it as the definition it must match, and the test compares every real-row scale byte at the shuffled offsets, so a change there fails CI.
  • E4M3 codecs have no packing; per_1x128 and TorchAO define the bytes, and the test compares them bit for bit.

On naming, mxfp4 here is the A4W4 activation layout (ordinary per-1x32 MXFP4 with shuffled scales), not the H32-rotated FP4 operand for A6W4 weights; the docstring now says so.

@johannes-graner johannes-graner 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.

Thanks for the changes, looks great! Just a couple of nits.

Before merge: the branch conflicts with main in attention_a2a_intranode_kernel.py after #7600 moved to FlyDSL 0.5.0 and removed the _JIT_CACHE_TAG / key tuples there. Taking main's side and dropping the same leftovers in attention_output_a2a_intranode_kernel.py should resolve it. Two minor notes inline, neither blocking.

Resolves the conflict in attention_a2a_intranode_kernel.py by taking main's removal of the cache-key tuple (#7600).
…s bench report

FlyDSL 0.5.0 keys its JIT cache on the traced IR, so the _JIT_CACHE_TAG and
the key tuples kept alive in both launchers are redundant; this drops them
as #7600 did for the input hop.

The output hop of bench_attention_a2a.py now writes
/tmp/bench_attention_a2a_output_w{world}.md, a name derived from the merged
script, instead of the removed bench_attention_output_a2a.py's.

Since #5985, per_1x128 skips a bf16 signalling NaN like a quiet one, while
the e4m3 path resets the running maximum it is folded into. The docstring
now claims byte identity for finite, infinite and quiet-NaN inputs.
@ksikiric

Copy link
Copy Markdown
Contributor Author

Merged main and resolved the conflict as you suggested: main's side in attention_a2a_intranode_kernel.py, and the same leftovers dropped here (_JIT_CACHE_TAG and both key tuples). Verified on FlyDSL 0.5.0, 8x MI355X:

  • test_attention_output_a2a.py -w 2 4 8: completed rows=24 checks=952 failures=0.
  • The output-op kernels compile to the same ISA as before the merge, and the op times at the Wan2.2 shape match the pre-merge branch on FlyDSL 0.4.1 within run-to-run noise (alternating A/B).
  • Input hop: all 382 kernels that xDiT's profiles and the benchmark's recipes compile have the same ISA as with main's kernel, and test_attention_a2a.py -w 2 4 8 --heads 8 40 passes: completed rows=273 checks=14686 failures=0.

One thing main changed under this PR: since #5985, per_1x128 skips a bf16 signalling NaN like a quiet one, while the e4m3 path still resets the running maximum it is folded into, as per_1x128 did before. Quiet NaNs, infinities and finite values still match byte for byte, and the docstring and PR description now state the claim for those.

@ksikiric
ksikiric marked this pull request as ready for review November 12, 2026 11:40
@ksikiric
ksikiric requested review from a team and a balanced review from Copilot November 12, 2026 11:40

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot changed the title [FlyDSL] [CI] [Feature] Add quantized attention-output intranode all-to-all for Ulysses sequence-parallel attention [FlyDSL] [Feature] Add quantized attention-output intranode all-to-all for Ulysses sequence-parallel attention Nov 12, 2026
@aiter-bot

aiter-bot commented Nov 12, 2026 •

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision f45def456534 · 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 behavior would each changed op test fail on before this PR, and why is that coverage not already provided by an existing canonical test?
  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.

@TennyWang1223 TennyWang1223 added the ci:multi-gpu Trigger multi-GPU op tests on PR label Nov 19, 2026
TennyWang1223
TennyWang1223 previously approved these changes Nov 19, 2026

@TennyWang1223 TennyWang1223 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.

LGTM

Copilot AI balanced review requested due to automatic review settings November 19, 2026 09:12

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 20, 2026 08:31

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@TennyWang1223
TennyWang1223 self-requested a review November 20, 2026 15:44

@TennyWang1223 TennyWang1223 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.

LGTM

@TennyWang1223
TennyWang1223 merged commit 50bfa78 into main Nov 20, 2026
61 checks passed
@TennyWang1223
TennyWang1223 deleted the ksikiric/attention-output-a2a branch November 20, 2026 15:44
yhl-amd added a commit to yhl-amd/aiter that referenced this pull request Nov 21, 2026
…its PE

The attention-output all-to-all (ROCm#7648) reads mori's PE and allocates from
its heap. With mori's heap now initialised lazily, it calls
ensure_mori_shmem() first, as MoriSymmetricHeap does; that stays a no-op when
no aiter EP manager registered a group (the caller initialises mori, as the
op's tests do).

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

Labels

ci:multi-gpu Trigger multi-GPU op tests on PR FlyDSL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants