Fix CK FP8 grouped GEMM dtype gating for columnwise operands #594
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 305 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #594"
general
weight: 0.35
aris134
Description
During an E2E Qwen Megatron run, it was observed that certain FP8 grouped GEMM WGRAD paths were unexpectedly falling back from CK grouped GEMM to multi-stream hipBLASLt grouped GEMM. Further investigation showed that the CK backend was incorrectly rejecting certain FP8 WGRAD GEMMs due to dtype gating assuming row-wise tensor storage rather than the effective canonicalized operand.
This commit fixes the FP8 grouped GEMM dtype gating logic to use the effective operand dtype after canonicalization, eliminating erroneous fallback for columnwise FP8 operands. Additionally, this commit introduces support for FP8 padding when required to satisfy kernel requirements. Finally, this commit adds shape specialization for fully aligned operands.
Observed fallback warnings:
Number of fallback warnings originally: 7680
Number of fallback warnings after applying the fix from this PR: 960
Remaining fallbacks are due to lack of fp8 accumulate support.
These changes substantially reduce unintended fallback behavior in FP8 grouped GEMM execution paths while improving handling of padded FP8 grouped GEMM configurations.
Fixes # (16708)
Type of change
Optimizations attempted but excluded:
CK Pipeline changes (i.e., compute V3 --> V4 with double-buffered ping-pong). This change consistently resulted in considerable performance degradation.
Tried a larger tile (256x256x128) with k-padding, which also reduced performance.
Changes
Please list the changes introduced in this PR:
Checklist: