[TE] CK fused attention: return max_logit #755
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.49) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 353 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.351
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #755"
general
weight: 0.35
Micky774
Description
Adds
return_max_logit=True(MuonClip/QK-clip) on ROCm through CK fused attention, for PyTorch and JAX. Before, PyTorch asserted and no backend supported it.The CK forward writes the exact per-row max next to the LSE; TE reduces it to
[h], as for cuDNN.Dependencies:
Fixes https://github.com/AMD-ROCm-Internal/frameworks-internal/issues/381
Type of change
Changes
Please list the changes introduced in this PR:
- passes
max_ptrand turns asm v3 off when the max is on;- Max scratch and
pad_remap_lseon group-mode paths; -inf prefill for rows CK doesn't write;- aux pack
[S, Max, rng_state, bias?, softmax_offset?], as upstream.- QoLA bump (ROCm/QoLA#13): patches
0012and0013, plus a checkout fix for patches that add files.-
ci/ck_jit_prebuild.txt: +70 gfx950 blobs used by these tests (gfx942 ones to follow from MI300 CI).- Exact max-logit: bshd/sbhd/thd, all masks, GQA, MLA 192/128, custom softmax_scale, fp16, sinks, SWA, fully masked rows; CK selection and fallback.
- CP:
cp_1_0/cp_1_1as upstream (max on); ROCm-onlycp_1_6/cp_1_7(max off) cover the asm forward;cp_3_5(MLA) andcp_4_4(sink) with max on.- JAX CP max-logit: THD + all-gather skipped on ROCm, like the striped CP test.
Checklist: