Skip to content

[TE 3.0] Remove legacy split-accumulator configuration - #3924

Open
vthumbe1503 wants to merge 5 commits into
NVIDIA:mainfrom
vthumbe1503:remove-split-accumulator-api
Open

vthumbe1503 wants to merge 5 commits into
NVIDIA:mainfrom
vthumbe1503:remove-split-accumulator-api

Conversation

@vthumbe1503

@vthumbe1503 vthumbe1503 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Breaking change
  • Code refactoring

Changes

  • Remove transformer_engine.common.recipe.MMParams, the three fp8_gemm_* recipe fields, and per-module forward/backward accumulator state.
  • Remove accumulator arguments and configuration attributes throughout the common C/C++ APIs, PyTorch and JAX bindings, grouped/batched GEMMs, and communication overlap paths.
  • Remove JAX's NVTE_FP8_GEMM_HIGH_PRECISION_ACCUMULATION switch and always use accurate accumulation in its native fallback. Update custom recipe references to match.
  • Update callers, benchmarks, and tests, and add long-reduction numerical checks against higher-precision references.
  • Document migration: remove accumulator arguments/settings and rebuild native consumers. Pickled recipes containing the removed legacy MMParams class 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 MMParams class still carries the output dtype; only its accumulator field is removed.

Checklist

  • I have read and followed the contributing guidelines.
  • I have made corresponding changes to the documentation.
  • I have added numerical regression coverage.
  • Full L0 suites pass.
  • Human author review is complete.

Keep this PR in draft until the human author reviews it.

@ptrendx ptrendx added the 3.0 label Nov 24, 2026
@vthumbe1503
vthumbe1503 marked this pull request as ready for review November 30, 2026 19:36
@vthumbe1503

Copy link
Copy Markdown
Collaborator Author

/te-ci L0 L1

@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5RetriggerView in Greptile

[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

  1. P1 Row-scaled grouped GEMMs crash ▶

Summary

Removes the legacy split-accumulator setting across recipes, GEMM APIs, framework bindings, and communication-overlap calls.

  • Hopper tensor-scaled FP8 GEMMs use accurate accumulation without a caller-controlled switch.

Reviews (3) · Last reviewed commit: "Merge branch 'main' into remove-split-ac..." · Reviewed by Greptile

@jberchtold-nvidia

Copy link
Copy Markdown
Collaborator

LGTM from the TE/JAX side pending CI, thanks!

@cyanguwa

cyanguwa commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

LGTM as well from the attention side. Thanks!

Comment thread docs/api/common.rst Resolved
Comment thread tests/jax/test_custom_call_compute.py Resolved
Comment thread tests/pytorch/test_numerics.py Resolved
timmoon10 and others added 2 commits December 4, 2026 19:24
Remove unnecessary docs. Remove redundant tests.

Co-authored-by: Tim Moon <[email protected]>
Signed-off-by: Tim Moon <[email protected]>

@timmoon10 timmoon10 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending CI

@timmoon10

Copy link
Copy Markdown
Member

/te-ci L1

Comment on lines 506 to 507
use_bias: bool = False,
use_split_accumulator: bool = False,
D_dtype: Optional[DType] = None,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants