pin Triton RMSNorm/LayerNorm launch configs instead of autotuning #792
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.62) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 246 lines diff across 3 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.330
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #792"
general
weight: 0.35
Micky774
Description
Fixes #790 (related PRs: #646, #615, #593).
Triton's autotuner picks a launch config per process by timing. For the
RMSNorm and LayerNorm kernels, num_warps (and the RMSNorm dgamma-reduce block
shape) sets the reduction order, so processes running identical
shapes can produce slightly different results.
Launch configs are now fixed by row width:
On gfx950 these are within ~1% geomean of the per-shape best. LayerNorm fwd
is 1.2-2.4x faster at widths <= 2048, which the old config space missed.
The autotune kwargs remain for API compatibility. The FP8 transpose stays
autotuned because its output does not depend on the config.
Also adds a test.
cc @jbelofamd
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: