[gfx1250] MXFP8 quantize: 2D block scaling and GEMM-swizzled scales #801
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.45) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 449 lines diff across 5 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.366
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #801"
general
weight: 0.35
matthiasdiener
Description
Fixes ROCm MXFP8 quantize issues found by the C++ operator tests. The tests skip on MI300/MI350 (compute capability < 100), so gfx1250 is the first ROCm target to run them. The branch is merged with the latest dev, including the TDM quantize kernels (#778).
mxfp8_2d_quantizationand always wrote 1D (1x32 / 32x1) scales instead of one scale per 32x32 tile.with_gemm_swizzled_scalesand wrote compact scales into tensors flagged as GEMM-swizzled: single-tensor and grouped quantize.Fixes # (issue)
Type of change
Changes
IS_2D_SCALINGtemplate flag. The rowwise and colwise scales use the 32x32 tile amax, and the flag is dispatched the same way as on CUDA. The tile amax is a butterfly reduction within each warp (rocm_subwarp_allreduce, which now takes an optional lowest offset), followed by one shared-memory exchange between warps.swizzle_scaling_factors_mxlayout and fills the padding with the E8M0 identity value (127). GEMM-swizzled outputs skip the TDM quantize until it writes swizzled scales (#789).mx_preswizzle_scale_idxtorocm_device_utils.cuhso quantize and dequantize share it.Known: the opt-in CK MX grouped GEMM ignores
with_gemm_swizzled_scalesand needs a separate fix. The emulated gfx1250 CI still skipsSwizzledScalesFusedCastMXFP8TestSuiteuntil #789 removes itsKNOWN_FAILURESentry.Tests (gfx1250, strict):
OperatorTest_FusedCastMXFP8_Swizzled.MatchesSwizzledCompactCast(2D, GeLU and dbias casts, padded scale tensors),OperatorTest_GroupedFusedCastMXFP8.SwizzledScales,SwizzledScales2DandSwizzledScalesRejectUnaligned.Checklist: