Ifu dev 20260828 v2.19 #721
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #721"
general
weight: 0.35
matthiasdiener
Description
Upstream changes from v2.18 to v2.19:
- NVFP4: row-scaled (per-token) backward for GroupedLinear, row-scaled transpose quantization in backward, arch-gated RHT path, stochastic-rounding fixes
- FP8 block scaling reaches the te.ops/fusible path; enabled for fusible ops and the GroupedLinear module
- Hybrid quantization: mixed-recipe support
- MXFP8 additions: 2D quantization, swizzled-scale fast path for cast-only, EP dispatch with unfused MXFP8, single-group grouped-MLP
- torch.compile: new TensorProto mechanism, traceable attention-backend selection (no graph breaks), UnfusedDotProductAttention + declarative packed
QKV/KV support
- Attention: FP8 + THD, THD with hierarchical context parallelism, D=256 cuDNN fused-attn backward on Blackwell, host-sync-free padding-mask build, and
return_max_logit from JAX fused attn
- New fused kernel: fused Q up-proj GEMM/RoPE/Quant, fused ScaledActivation for MoE (lower CPU overhead)
- Optimizer: newton_schulz_tp (Muon-style) step function
- Platform/infra: Rubin arch enablement, NVRTC runtime CUDA-header resolution, migration to NVIDIA/nccl-extensions
ROCm compatibility changes:
- Fused attention under activation recompute: forced non-reentrant checkpointing on ROCm in DotProductAttention; the ROCm FusedAttnFunc leaks its recompute subgraph
into the outer graph under reentrant recompute, double-calling the QKV LayerNormLinear backward, which the new v2.19 saved-tensor machinery (restore_from_func_ctx
nulls ctx.tensor_objects) turns from silent gradient double-counting into a crash
- FP8 block-scaling split accumulator in te.ops: modified the fusible BasicLinear/GroupedLinear fprop GEMMs to honor recipe.fp8_gemm_fprop.use_split_accumulator
instead of the hard-coded module default; ROCm's blockwise GEMM asserts a split accumulator, and this mirrors the (unguarded) module/ path
- NVFP4 row-scaled columnwise output: skipped the RHT columnwise/both-directions quantize tests on ROCm; row-scaled NVFP4 columnwise amax is unsupported on ROCm (guarded NVTE_ERROR in quantize.cuh)
- JAX fused-attn return_max_logit: threaded the flag through the backend-selection probe so the existing ROCm No_Backend skip fires; return_max_logit maps to
No_Backend on ROCm, which previously surfaced as an Unsupported backend= ValueError instead of a skip
Correctness follow-ups (issues currently masked by a workaround):
- Hybrid quantization on ROCm: HybridQuantizedTensor / CustomRecipe Float8Blockwise forward is not bitwise-identical to Float8BlockScaling; root cause is the hybrid GEMM-operand dispatch not routing to the ROCm blockwise GEMM path; currently two FSDP2 parity subtests are xfail-guarded on ROCm; enable proper hybrid-tensor operand/transpose selection so the two-format hybrid recipes match their vanilla equivalent
- CustomRecipe split-accumulator plumbing: CustomRecipe carries no fp8_gemm_fprop/fp8_gemm_dgrad/fp8_gemm_wgrad, so module/linear.py silently falls back to
use_split_accumulator=False; on ROCm the blockwise GEMM requires split accumulation; give CustomRecipe the MMParams fields (or force split-accum for blockwise
operands on ROCm) so custom/hybrid recipes get correct accumulation without relying on the base recipe's hardcoded True
- NVFP4 amax reduction on ROCm: multi-rank with_amax_reduction=True drives RCCL allreduce_coalesced on NVFP4 amax tensors to wrong values, giving scale_inv = max/0 =
inf then NaN loss (already xfail-guarded in test_fused_adam_regression); fix the RCCL amax-coalesced path so NVFP4 FSDP2 training is numerically stable
Feature enablement follow-ups (unsupported features worked around this IFU):
- NVFP4 row-scaled (RHT) columnwise output: the transpose/columnwise RHT path errors on ROCm and its exact-quantize tests are skipped; implement columnwise RHT so return_transpose=True is supported.
- JAX fused-attn max-logit: return_max_logit=True selects NVTE_No_Backend on ROCm and the JAX probe/tests were adapted to reflect that; add max-logit support to the
CK/AOTriton fused-attn backends and re-enable the JAX max-logit configs.
- Activation recompute (reentrant): ROCm FusedAttnFunc leaks its recompute subgraph into the outer autograd graph under reentrant checkpointing, so we forced
non-reentrant on ROCm as a workaround; fix the saved-tensor/ctx handling so reentrant use_reentrant=True checkpointing works and the workaround can be removed
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: