NVIDIA / NVIDIA/TransformerEngine

Activation + Group Quantize Fusion with te.Sequential

Open
#2,988 2 comments 0 reactions 1 assignee View on GitHub

@vthumbe1503 is already working on this.

Since Jul 29, 2026.

enhancement
Dominant language
Python
Stars
3.5k
Forks
831
Avg merge
3d 11h
Merged PRs (30d)
65

Description

Is your feature request related to a problem? Please describe.
Grouped MLP Block in MOE can be roughly -equated to GroupedLinear + Activation + GroupedLinear. Each of the GroupedLinear needs to go through group_quantize. For the cases where this is unfused we need to atleast enable fusing Activation with the group_quantize happening in the second GroupedLinear layer.

Describe the solution you'd like

  • Expose the right tex functions in pytorch that fuses activation and quantize. This is already supported for normal pytorch tensors and idea needs to be extended for GroupedTensors.

  • Enable te.Sequential to handle the fusion for grouped MLP block

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.