NVIDIA / NVIDIA/TransformerEngine

[Feature Request] Add Gated Delta Net (GDN) support

Open
#2,884 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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.

Megatron Core already has a Gated Delta Net (GDN) layer, but the current implementation depends on external Triton-based fla gated-delta-rule kernels and causal_conv1d. This means GDN does not benefit from native TE kernel performance, and users need extra dependencies.

The current training kernel path is also not performing well in practice, and the gap is noticeable on GB200.

In addition, the current path still has functional gaps: inference is not supported and packed sequences are not supported.

Describe the solution you'd like

Add native TE kernels for Gated Delta Net (GDN), with Megatron Core integration.

Ideally this would include:

  • an optimized kernel path for the chunked gated delta rule
  • substantially better training performance, especially on GB200
  • compatibility with TE mixed-precision flows, especially BF16 and FP8

Describe alternatives you've considered

Using the current Triton-based fla.ops.gated_delta_rule + causal_conv1d implementation in Megatron Core.

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.

Research direction

Start by locating the existing GDN layer and its fla.ops.gated_delta_rule and causal_conv1d path. Define the native TE kernel scope for chunked training, inference, packed sequences, BF16, and FP8, then benchmark training performance on GB200. Done means Megatron Core uses the native path without those external dependencies and covers the requested functionality.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.