Repository navigation
[TE 3.0] Remove legacy split-accumulator configuration - #3924
vthumbe1503 wants to merge 5 commits into
Conversation
Signed-off-by: Varun Thumbe <[email protected]>
|
/te-ci L0 L1 |
Confidence Score: 4/5
[High impact] The PR changes GEMM behavior and removes its configuration across Transformer Engine’s PyTorch, JAX, and native APIs. Fix the stale accumulator arguments in the row-scaled NVFP4 grouped path before merging. Findings
SummaryRemoves the legacy split-accumulator setting across recipes, GEMM APIs, framework bindings, and communication-overlap calls.
Reviews (3) · Last reviewed commit: "Merge branch 'main' into remove-split-ac..." · Reviewed by Greptile |
Signed-off-by: Varun Thumbe <[email protected]>
|
LGTM from the TE/JAX side pending CI, thanks! |
|
LGTM as well from the attention side. Thanks! |
Remove unnecessary docs. Remove redundant tests. Co-authored-by: Tim Moon <[email protected]> Signed-off-by: Tim Moon <[email protected]>
Signed-off-by: Tim Moon <[email protected]>
|
/te-ci L1 |
| use_bias: bool = False, | ||
| use_split_accumulator: bool = False, | ||
| D_dtype: Optional[DType] = None, |
There was a problem hiding this comment.
Row-scaled grouped GEMMs crash
Removing use_split_accumulator from general_grouped_gemm leaves its row-scaled NVFP4 path reading an undefined name at line 566. With NVFP4 operands, no output quantizer, and no unsupported fused operation, the call raises NameError instead of returning an output.
Remove the argument from that call and from _general_grouped_gemm_row_scaled_nvfp4, including its recursive call at line 682. Otherwise, the recursive call will raise TypeError for passing the removed keyword.
Description
Remove the legacy split-accumulator configuration for TE 3.0. Tensor-scaled FP8 GEMMs on Hopper now use accurate accumulation automatically, including forward GEMMs that previously defaulted to fast accumulation. cuBLASLt already disables fast accumulation by default, so the common backend no longer overrides that setting.
Type of change
Changes
transformer_engine.common.recipe.MMParams, the threefp8_gemm_*recipe fields, and per-module forward/backward accumulator state.NVTE_FP8_GEMM_HIGH_PRECISION_ACCUMULATIONswitch and always use accurate accumulation in its native fallback. Update custom recipe references to match.MMParamsclass require conversion. Downstream integrations such as Megatron's GEMM adapter must stop passing the removed keyword.This option does not change the numerical behavior of Blackwell and newer GPUs or modern FP8 block-scaling/MXFP8 recipes. The custom-recipe
MMParamsclass still carries the output dtype; only its accumulator field is removed.Checklist
Keep this PR in draft until the human author reviews it.