Skip to content

[HIP] [Bugfix] paged_attention_ragged: scale FP8 softmax probabilities into the e4m3 normal range - #5642

Merged
amd-ruitang3 merged 8 commits into
ROCm:mainfrom
rbrugaro-amd:fix/pa-ragged-fp8-logits-scaling
Oct 21, 2026
Merged

amd-ruitang3 merged 8 commits into
ROCm:mainfrom
rbrugaro-amd:fix/pa-ragged-fp8-logits-scaling

Conversation

@rbrugaro-amd

Copy link
Copy Markdown
Contributor

Summary

On the FP8 KV-cache path, paged_attention_ragged normalizes the softmax
probabilities to sum = 1 within a partition and then casts them to
fp8_e4m3 for the PV MFMA. With the default partition_size = 256 and a
typical near-uniform attention distribution, every probability lands at ≈2⁻⁸ —
subnormal in e4m3 (min normal 2⁻⁶, subnormal step 2⁻⁹), where the relative
ulp is ½. The result is ~15% RMS error on P, which propagates 1:1 to the
attention output.

The BF16 path does not have this problem, and aiter's own Gluon paged-decode
kernel already implements the fix
.

Reproduction

aiter's only FP8-KV test for this op fails on a stock image:

$ python3 -m pytest op_tests/test_pa_ragged.py -k fp8_kv_nhd -x -q
FAILED op_tests/test_pa_ragged.py::test_paged_attention_ragged_glm_gqa_fp8_kv_nhd
1 failed, 13824 deselected, 2 warnings in 19.52s

Greatest relative difference: 0.355 (up to 0.03 allowed)

Environment: MI355X (gfx950), ROCm 7.0, torch 2.9.0a0, image
lmsysorg/sglang-rocm:v0.5.19-rocm700-mi35x-20260910 + aiter
4ad99832823dde2315b361cbd3b54b1c5c12acd5.

That test uses head_size 128, 8 KV heads, seq_len 128 — a single partition —
and it barely fails (3 of 24576 elements). At realistic decode contexts the
mechanism is pervasive. Measured against an fp32 PyTorch reference at
head_dim 256, 1 KV head, 4 query heads, context 8192 (32 partitions):

KV cache kv_cache_dtype mean relative error
bf16 "auto" 0.0032
fp8_e4m3fn "fp8_e4m3" 0.1422

Error is flat in context length (0.140 / 0.147 / 0.149 at ctx 256 / 1024 / 4096)
— consistent with per-token independent rounding rather than an accumulation
problem — and identical for "NHD" and "HND", so it is not a layout issue.

Root cause

csrc/cpp_itfs/pa/pa_kernels.cuh:

  • :586-588 — inv_sum_scale = 1/(partition_exp_sum + 1e-6) * exp(warp_max - partition_max).
    P is fully normalized to sum 1.
  • :633-647 — d_out *= inv_sum_scale, then
    __builtin_amdgcn_cvt_pk_fp8_f32(...). The already-normalized P is cast
    to e4m3.
  • :794 — gcn_mfma16x16x32_instr<__hip_fp8_e4m3, ...> consumes it.
  • :596-621 — the kAuto/bf16 branch keeps P in bf16, which represents
    2⁻⁸ exactly. Hence the 0.3% agreement there.

Q is also cast to fp8 on this path (:379-409), contributing a further ~0.7%.

At partition_size = 256, 100% of P values measured fall in the e4m3
subnormal range
, with RMS relative rounding error 0.163 — matching the observed
0.153. Raising partition_size to 512 (p ≈ 2⁻⁹) drives the error to 1.04,
which is the predicted behaviour if this diagnosis is right.

Attribution, by emulation

A partition-aware fp32 model with each rounding step toggled independently
(ctx 2048, partition 256; shipped kernel vs exact = 0.1534):

emulated model kernel-vs-model model-vs-exact
exact fp32 0.1534 0.0000
+ bf16 partial writeback 0.1534 0.0017
+ fp8 Q only 0.1528 0.0070
+ fp8 P only 0.0468 0.1523
+ fp8 Q and fp8 P 0.0014 0.1534

Adding only the two fp8 casts reproduces the shipped kernel to 0.14%.

Fix (implemented and validated)

Normalize P by the partition max rather than the sum — putting the largest
value inside the e4m3 normal range — and fold 1/exp_sum into the fp32 output
after the MFMA. Same instruction count, same MFMA, no extra memory traffic.

upstream/aiter-pa-ragged-fp8-fix.patch (54 insertions in pa_kernels.cuh)
splits inv_sum_scale into a pre-cast and a post-MFMA factor inside the existing
if constexpr(KV_DTYPE != kAuto) branches, so the BF16 path is untouched. The
scale is the largest power of two inside the normal range (256 on gfx950,
128 on gfx942 where e4m3 is fnuz) rather than the range maximum: a power of two
is exact in binary, so the rescale introduces no rounding of its own and cannot
push the cast into saturation. The two factors multiply back to inv_sum_scale
exactly, so the result is unchanged in exact arithmetic — only the rounding
improves.

Only _paged_attention_kernel needs it. _paged_attention_kernel_EXPERIMENTAL
shares the pattern but is bf16-only (pa_ragged.py:32 requires
kv_dtype == "__hip_bfloat16"), so it never reaches the fp8 branch.

Validation

MI355X (gfx950), ROCm 7.0, same container before and after:

before after
test_paged_attention_ragged_glm_gqa_fp8_kv_nhd FAIL (rel diff 0.355 vs 0.03) PASS
fp8 error vs fp32 reference, bs 1 / 8 / 32 / 64 0.1417 / 0.1432 / 0.1420 / 0.1426 0.0273 / 0.0277 / 0.0276 / 0.0276
bf16 error, same shapes 0.00317 / 0.00325 / 0.00322 / 0.00319 0.00317 / 0.00325 / 0.00322 / 0.00319
bf16 output checksum 0.037695 / 0.706248 / 0.237597 / −1.877981 bit-identical
fp8 kernel time (µs) 13.49 / 14.57 / 35.36 / 59.68 13.51 / 14.58 / 35.65 / 59.50
bf16 kernel time (µs) 14.82 / 20.21 / 62.96 / 137.99 14.82 / 20.26 / 62.82 / 138.03

5.2× error reduction, timing neutral to within noise, BF16 bit-identical.
Broader regression: 192 passed / 0 failed on a BF16 slice of
test_pa_ragged.py. Harness: notes/pa_fix_validate.py.

The residual 0.0277 is expected and is not this defect — the KV cache is
genuinely fp8, and Q is also cast to fp8 for the QK MFMA (:379-409), which the
emulation attributed ~0.007 to. Both are deliberate design choices, unlike the
subnormal P.

This is what aiter's own Gluon kernel does, so the approach is already
established in-tree —
aiter/ops/triton/gluon/pa_decode_gluon.py:

  • :918 keeps attention_probs = exp2(qk - max) unnormalized
  • :943 multiplies by FP8_MAX_VALUE (448) before the cast, with a
    compensating probability_scale at :944 / :975
  • :990 applies 1/exp_sums only after the MFMA
  • :933, in as many words: "Scale the maximum value of value_scale to
    FP8_MAX_VALUE to improve the precision of P * V."

Test coverage gap

op_tests/test_pa_ragged.py:686-688 — the main parametrized test_paged_attention
skips every quantized-cache case for the Shomy variant, so
paged_attention_ragged has no FP8-KV coverage in the main matrix. The single
dedicated test at :452-514 uses rtol = atol = 3e-2, head_size 128, seq_len
128, and never exercises a multi-partition context or head_dim 256.

Suggest extending it to cover multi-partition contexts (≥ 1024 tokens) and
head_dim 256, which is where the defect is largest.

Impact

paged_attention_ragged is the decode attention op SGLang's aiter backend calls
for non-MLA models on ROCm
(python/sglang/srt/layers/attention/aiter_backend.py:3312), and
--kv-cache-dtype fp8_e4m3 is a common production setting. Any deployment
combining the two is running decode attention with ~15% error on the attention
probabilities.

I have not measured downstream task-accuracy impact — softmax outputs are
averages over many values and the error is zero-mean, so end-to-end damage may
be much smaller than the per-tensor number suggests. The kernel-level error is
nonetheless far outside the op's own stated tolerance.

… the e4m3 normal range

On the FP8 KV-cache path the softmax probabilities are normalized to sum = 1
within a partition and only then cast to e4m3 for the P*V mfma
(pa_kernels.cuh:586-588 computes inv_sum_scale, :633-647 applies it before
__builtin_amdgcn_cvt_pk_fp8_f32, :794 consumes the result). With the default
partition_size = 256 and a near-uniform attention distribution every probability
lands at ~2^-8, which is SUBNORMAL in e4m3 (smallest normal 2^-6, subnormal step
2^-9) and therefore carries a relative ulp of 1/2. That injects ~15% RMS error
into P, which propagates 1:1 to the attention output.

The kAuto/bf16 branch (:596-621) keeps P in bf16, which represents 2^-8 exactly,
so only the FP8 branch is affected.

Fix: split inv_sum_scale into a pre-cast and a post-mfma factor. Rebase P to the
partition max -- making the largest probability exactly 1.0 -- scale it into the
e4m3 normal range before the cast, and fold 1/exp_sum back into the fp32
accumulator after the mfma. The two factors multiply back to inv_sum_scale
exactly, so the result is unchanged in exact arithmetic; only the rounding
improves. Instruction count, mfma count and memory traffic are unchanged.

The scale is the largest power of two inside the normal range (256 on gfx950,
128 on gfx942 where e4m3 is fnuz) rather than the range maximum: a power of two
is exact in binary, so the rescale introduces no rounding of its own, and the
headroom below the maximum keeps fp32 rounding from pushing the cast into
saturation.

This mirrors what aiter's own Gluon paged-decode kernel already does --
ops/triton/gluon/pa_decode_gluon.py:943 scales P by FP8_MAX_VALUE before the
cast with a compensating factor at :944/:975 and applies 1/exp_sums only at :990
("Scale the maximum value of value_scale to FP8_MAX_VALUE to improve the
precision of P * V", :933).

Only _paged_attention_kernel is changed. _paged_attention_kernel_EXPERIMENTAL
shares the pattern but is bf16-only (pa_ragged.py:32 requires
kv_dtype == "__hip_bfloat16"), so it never reaches the FP8 branch.

Validated on MI355X (gfx950), ROCm 7.0, same container before and after:

* op_tests/test_pa_ragged.py::test_paged_attention_ragged_glm_gqa_fp8_kv_nhd
  FAIL -> PASS. It was already failing on a stock image before this change
  (greatest relative difference 0.355 against a 0.03 tolerance).
* Mean relative error against an fp32 reference at head_dim 256, 1 KV head,
  context 8192: 0.142 -> 0.027 at batch 1/8/32/64, a 5.2x reduction.
* BF16 path bit-identical (output checksums unchanged), BF16 error unchanged.
* Kernel time neutral within noise on both paths: FP8 13.49/14.57/35.36/59.68
  -> 13.51/14.58/35.65/59.50 us; BF16 unchanged.
* 192 passed / 0 failed on a BF16 slice of test_pa_ragged.py.

The residual 0.027 is not this defect: the KV cache is genuinely FP8, and Q is
also cast to FP8 for the QK mfma (:379-409), which an fp32 emulation attributed
~0.007 to. Both are deliberate design choices, unlike the subnormal P.

Note that this op currently has no FP8-KV coverage in the main parametrized
matrix -- test_paged_attention skips every quantized-cache case for the Shomy
variant (op_tests/test_pa_ragged.py:686-688) -- and the one dedicated test uses
head_size 128 and seq_len 128, a single partition. Extending it to
multi-partition contexts and head_dim 256 would catch this class of defect.

Signed-off-by: Rita Brugarolas Brufau <[email protected]>
@rbrugaro-amd
rbrugaro-amd requested a review from a team September 17, 2026 17:31
@github-actions

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; main branch always runs both MI35X and MI300X
multigpu 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: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
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 5642 --add-label <label>

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 opt this PR out.

@github-actions github-actions Bot changed the title [Bugfix] paged_attention_ragged: scale FP8 softmax probabilities into the e4m3 normal range [HIP] [Bugfix] paged_attention_ragged: scale FP8 softmax probabilities into the e4m3 normal range Sep 17, 2026
@github-actions github-actions Bot added the HIP label Sep 17, 2026
@zufayu
zufayu requested a review from amd-ruitang3 September 18, 2026 01:16
@rbrugaro-amd
rbrugaro-amd force-pushed the fix/pa-ragged-fp8-logits-scaling branch from 6af25ad to f712dcb Compare September 22, 2026 20:51
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

No activity for 15 days, so this is now labelled stale. A push or a comment clears it; keep-open exempts it. Nothing is closed automatically.

@github-actions github-actions Bot added the stale The PR hasn't been updated in 2 weeks label Oct 8, 2026
@rbrugaro-amd

Copy link
Copy Markdown
Contributor Author

@zufayu @amd-ruitang3 Rebased onto current main and re-verified on today's tree — the defect is still present and the fix still applies cleanly. Some context on reach first, since this has been sitting a while.

Why this one matters

paged_attention_ragged is not a niche entry point. SGLang calls it from the generic decode path in its aiter attention backend (aiter_backend.py, forward_decode), so it is reached by any model served with --attention-backend aiter on ROCm rather than by one model family; dsa_backend.py imports it as well.

The defective branch is the FP8 one specifically. SGLang selects it via _get_aiter_paged_ragged_kv_cache_dtype(), which passes "fp8_e4m3" when the server runs an FP8 KV cache and "auto" otherwise — so every FP8-KV deployment on that backend hits the subnormal cast on every decode step, and BF16-KV deployments do not. FP8 KV is a common long-context configuration, which is where paged decode matters most.

Re-measured on current main

ROCm 7.2.4, MI355X, fp8_e4m3 KV cache, partition_size = 256, mean relative error against an fp32 reference over the dequantized cache:

bs context main (no fix) with fix kernel time
1 8 192 14.29% 2.78% 24.28 → 24.33 µs
8 8 192 14.15% 2.73% 24.60 → 25.18 µs
32 8 192 14.00% 2.73% 34.27 → 34.95 µs
8 65 536 14.15% 2.80% 63.77 → 63.92 µs

5.1x error reduction, and still timing-neutral — the largest time delta is 2.4% at bs=8 and the rest are under 1%, all within run-to-run noise. This reproduces the original measurement on this branch (0.142 → 0.027, 5.2x) on a stack three weeks newer.

The residual ~2.8% is the floor for this design: the probabilities are still cast to e4m3, they are just no longer subnormal. The KV cache itself is fp8 in both arms and in the reference, so that part cancels.

@github-actions github-actions Bot removed the stale The PR hasn't been updated in 2 weeks label Oct 13, 2026
@amd-ruitang3

Copy link
Copy Markdown
Contributor

@rbrugaro-amd I’ve reviewed your PR. It aims to improve the robustness of FP8 attention. To make this more solid, could you add a regression test under op_tests?

@rbrugaro-amd

Copy link
Copy Markdown
Contributor Author

I believe this was wrongly closed with the merge of #5715 and is still relevant. reopening

@rbrugaro-amd rbrugaro-amd reopened this Oct 13, 2026
@github-actions

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 5642 --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.

The fix had no test asserting the property it restores. This adds one next to
the existing GLM FP8 KV test, at seq_len 256 and 512 -- at or above the
256-token partition, where the normalized probabilities land at ~2^-8 and are
subnormal in e4m3.

Uses an aggregate relative error rather than elementwise assert_close, because
at these lengths the output is a probability-weighted sum over seq_len values
and individual errors average out: no element exceeds a 3e-2 tolerance on
either side of the fix, while the aggregate separates cleanly (9.55% without
the rescale, 3.40% with it, gfx950 / ROCm 7.2.4 at seq_len 512). The threshold
is 6e-2, roughly midway, so it fails loudly on a regression without sitting on
top of the passing value.

Signed-off-by: Rita Brugarolas Brufau <[email protected]>
@rbrugaro-amd

Copy link
Copy Markdown
Contributor Author

@amd-ruitang3 thanks — added

The regression test

op_tests/test_pa_ragged.py::test_paged_attention_ragged_fp8_logits_stay_in_normal_range, parametrized over seq_len 256 and 512 — at and above the 256-token partition, where the normalized probabilities land at ~2^-8 and are subnormal in e4m3 (smallest normal is 2^-6).

Both arms are the same kernel over the same KV values — one reading the cache as FP8, the other as BF16 upcast from that same FP8 — so the only thing measured is the in-kernel probability cast.

Verified in both directions on gfx950 / ROCm 7.2.4:

seq_len=256 seq_len=512
fix reverted FAIL FAIL
fix applied PASS PASS

and the failure is diagnostic rather than a bare tolerance miss:

AssertionError: FP8 decode diverges from the BF16 path by 9.55% at seq_len=512;
softmax probabilities are likely being cast to e4m3 while subnormal
(expected <6%, ~3.4% when correct)

Why an aggregate metric rather than assert_close

An elementwise tolerance does not see this at these lengths. The output is a probability-weighted sum over seq_len values, so individual errors average out — at seq_len=512, zero elements exceed a 3e-2 tolerance on either side of the fix, while the aggregate relative error is 9.55% without the rescale and 3.40% with it. The threshold is 6e-2, roughly midway, so it fails loudly on a regression without sitting on top of the passing value.

Counterintuitively, longer contexts are less sensitive by this measure, not more: max absolute error falls from 0.047 at seq_len=128 to 0.011 at 4096 as more terms average together. That is why the test targets 256/512 rather than something longer.

The residual ~3.4% is the floor for this design — the probabilities are still e4m3, just no longer subnormal.

The thing worth flagging

test_paged_attention_ragged_glm_gqa_fp8_kv_nhd, already in this file since #3609, fails on current main and passes with this fix:

Mismatched elements: 3 / 24576 (0.0%)
Greatest absolute difference: 0.046875 at index (0, 43, 108) (up to 0.03 allowed)

It uses seq_len=128, below the partition size, so the probabilities are only mildly subnormal and it fails by a hair — three elements out of 24,576. That is probably why it has not been chased down. So this PR does not only add coverage; it turns an already-red shipped test green.

Caveat

All of the above is measured on gfx950. The rescale constant is arch-conditional (256 for OCP e4m3 on gfx950, 128 for e4m3fnuz elsewhere) and I do not have a gfx942 part to hand, so the gfx942 side of that #if is covered by CI rather than by me. If the new test's threshold turns out to be tight there, I would rather hear it from a CI run than guess at it now.

@amd-ruitang3

Copy link
Copy Markdown
Contributor

@rbrugaro-amd our CI only run main in test*.py. Maybe not run @pytest. Are you sure that your test is triggered in CI?

Comment thread csrc/cpp_itfs/pa/pa_kernels.cuh Resolved
aiter_test.sh invokes op-tests as 'python3 <file>' and only two files are on
the pytest allowlist, so every pytest-style test in this file is unreachable
from CI. That includes test_paged_attention_ragged_glm_gqa_fp8_kv_nhd, added in
 ROCm#3609, which fails on current main at gfx950 -- it has never been red in CI
because it has never been run.

Calls both FP8 KV tests from __main__ so the existing invocation reaches them.
They run first, ahead of the long sweep, since they are fast (~18s) and guard
in-kernel precision, so a failure should surface early.

pytest marks do not wrap the function, so the same definitions serve both
direct calls and a pytest run.

Signed-off-by: Rita Brugarolas Brufau <[email protected]>
Review feedback, and the inversion turns out to fix a real gap rather than
being a style preference. csrc/include/aiter_enum.h lists the OCP archs as
gfx950, gfx1201 and gfx1250, with gfx942 the only fnuz one. Keying on gfx950
and defaulting everything else to the fnuz constant therefore handed gfx1201
and gfx1250 the wrong scale. Keying on gfx942 as the exception matches that
table and gives a new OCP arch the right constant by default.

Also answers the other half of the comment -- why a power of two rather than
the 448/240 range maximum -- with a measurement instead of an argument. On
gfx950, aggregate relative error against the BF16 path at seq_len 256/512/1024
is 3.45/3.40/3.56% scaling to 256 and 3.51/3.48/3.60% scaling to 448. The
ceiling is never better, so the tie-break is saturation headroom. The comment's
previous lead reason -- exactness of the multiply and divide -- is true but
~2^-24 relative, negligible against e4m3 error, so it is now stated as the
minor point it is.

gfx950 behaviour is unchanged: the same four cells measure identically before
and after the inversion, and both FP8 KV tests pass.

Signed-off-by: Rita Brugarolas Brufau <[email protected]>
@rbrugaro-amd

Copy link
Copy Markdown
Contributor Author

Regarding the test triggering in CI your observation was right. addressed in 65b23ef

You were right — it wasn't running. aiter_test.sh invokes op-tests as python3 and only test_fhmoe.py and tuning_tests/test_fhmoe_tuner.py are on the pytest allowlist, so every @pytest-style test in test_pa_ragged.py was unreachable from CI.

Worth flagging that this was not just my test: test_paged_attention_ragged_glm_gqa_fp8_kv_nhd, added in #3609, has never been executed by CI either. It fails on current main when you run it, which is why nobody has noticed.

Fixed by calling both FP8 KV checks from main, so the existing invocation reaches them — no workflow change, ~18s added, and they run ahead of the long sweep so a precision failure surfaces early.

Confirmed in CI on the last run, shard 7 of 8, both architectures:
MI35X (gfx950): https://github.com/ROCm/aiter/actions/runs/38782284794/job/116646164997
MI300X (gfx942): https://github.com/ROCm/aiter/actions/runs/38782284794/job/116646164971

Both logs show the test actually executing rather than just being collected:

[test] FP8 KV cache checks
[test] FP8 KV cache checks passed

All 16 Standard Tests shards passed. The MI300X run matters beyond the wiring question: it is the first execution of the fnuz branch of the arch-conditional constant, which I have no hardware for locally, so the threshold is confirmed on both encodings rather than tuned to gfx950.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants