Skip to content

fix(optimizer): route GDN in_proj to Adam under Muon - #5400

Open
yuchenwang3 wants to merge 3 commits into
NVIDIA:mainfrom
yuchenwang3:fix/gdn-in-proj-skip-muon
Open

yuchenwang3 wants to merge 3 commits into
NVIDIA:mainfrom
yuchenwang3:fix/gdn-in-proj-skip-muon

Conversation

@yuchenwang3

@yuchenwang3 yuchenwang3 commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor
  • I, the PR author, have personally reviewed every line of this PR.

Summary

Routes the shared GatedDeltaNet/GatedDeltaNet2 in_proj weight to the scalar optimizer instead of Muon by setting the existing param.use_muon = False marker.

Why

in_proj is a heterogeneous fused matrix containing q, k, v, convolution, gate, and beta projections. Orthogonalizing the whole matrix as one 2D block is not meaningful. out_proj remains on Muon.

This addresses the open routing question in #2885 without adding another optimizer-group mechanism. Current main already consumes use_muon=False in _is_muon_excluded, so the original generic skip_orthogonalization change is no longer needed; this PR now only tags the GDN parameter at its source.

Change

  • Set self.in_proj.weight.use_muon = False in _GDNBase, covering both GDN and GDN2.
  • Extend the existing parameterized constructor test to assert that the fused input projection is excluded from Muon.

Current validation

Merged main (5df6168232) into af0c40587c on November 5. The routing marker and constructor assertion remain unchanged. The manifest retains both the Muon replay test and new upstream SSM inference coverage. Black, isort, Ruff, syntax parsing, whitespace and kernel determinism coverage checks pass. GPU tests have not been rerun on this merge.

Historical validation

  • Repository autoformat checks passed: Black, isort, Pylint, and Ruff.
  • git diff --check and Python syntax compilation passed.
  • On 8×B200, the 8-rank parameterized GDN/GDN2 constructor test completed with 12 passed, including the in_proj.weight.use_muon = False assertion.

Assisted-by: OpenAI Codex

@yuchenwang3
yuchenwang3 requested review from a team as code owners June 18, 2026 07:33
@copy-pr-bot

copy-pr-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@svcnvidia-nemo-ci
svcnvidia-nemo-ci marked this pull request as draft June 18, 2026 07:33
@github-actions

Copy link
Copy Markdown
Contributor

This PR has been automatically converted to draft because all PRs must start as drafts.

When you are ready for review, click Ready for Review to begin the review process. This will:

  1. Add the oncall reviewer (optional reviewer)
  2. Add required review teams based on your changes

See the contribution guide for more details.

@yuchenwang3
yuchenwang3 marked this pull request as ready for review June 18, 2026 17:19
@svcnvidia-nemo-ci
svcnvidia-nemo-ci requested a review from a team June 18, 2026 17:19
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Jun 20, 2026
@yuchenwang3 yuchenwang3 changed the title fix(optimizer): route GatedDeltaNet in_proj to Adam instead of orthogonalizing it (Muon) fix(optimizer): route GDN in_proj to Adam under Muon Jul 6, 2026
@yuchenwang3

Copy link
Copy Markdown
Contributor Author

Branch updated: merged latest main — the gated_delta_net.py → gated_delta_net/ package refactor had made this conflict on GitHub's side; the change now lands in _GDNBase in gated_delta_net/common.py and the PR is conflict-free again.

@balasaajay pinging you as an active merger here. This routes GDN in_proj to Adam instead of orthogonalizing it under Muon — the fused q/k/v/conv/gate/beta matrix isn't meaningful to orthogonalize as one 2D block (see #2885). Two-file change, open since Jun 18 and still waiting on /ok to test. Could you authorize CI and take a look?

@svcnvidia-nemo-ci svcnvidia-nemo-ci added waiting-on-maintainers Waiting on maintainers to respond and removed waiting-on-maintainers Waiting on maintainers to respond labels Aug 6, 2026
@yuchenwang3
yuchenwang3 force-pushed the fix/gdn-in-proj-skip-muon branch from 457feeb to fff2d1b Compare August 25, 2026 07:55
@yuchenwang3

Copy link
Copy Markdown
Contributor Author

Rebased this onto current main and adapted it to the param.use_muon=False exclusion path added since the original PR. The old optimizer-wide workaround is gone; this head only marks the shared GDN/GDN2 in_proj and adds the constructor regression assertion. @balasaajay, could you take another look and run /ok to test fff2d1b97088764f521682b6163f030499a553e0?

@yuchenwang3

Copy link
Copy Markdown
Contributor Author

Ran the rebased fff2d1b9 head on 8×B200 as well. The 8-rank parameterized GDN/GDN2 constructor test completed with 12 passed and no skips or failures, including the assertion that in_proj.weight is excluded from Muon.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Aug 27, 2026
@yuchenwang3
yuchenwang3 force-pushed the fix/gdn-in-proj-skip-muon branch from fff2d1b to 543412f Compare August 31, 2026 21:19
@yuchenwang3

Copy link
Copy Markdown
Contributor Author

Metadata-only refresh: the source tree is byte-identical to the 8×B200-tested fff2d1b9 head; author, committer, signoff, and SSH signature now use my personal GitHub noreply identity. New head: 543412fec26fba95de27fb518451d5c5de98840c. @balasaajay, could you run /ok to test 543412fec26fba95de27fb518451d5c5de98840c when you have a moment?

@svcnvidia-nemo-ci svcnvidia-nemo-ci removed the waiting-on-maintainers Waiting on maintainers to respond label Sep 1, 2026
@yuchenwang3

Copy link
Copy Markdown
Contributor Author

@NVIDIA/mcore-oncall could you help route this to an optimizer/GDN reviewer and authorize CI? The current patch is limited to marking the shared GDN/GDN2 in_proj for the existing Adam exclusion path. Its source is byte-identical to the 8×B200-tested head, where the parameterized constructor suite passed 12/12 with no skips or failures. This has not had maintainer feedback yet.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Sep 3, 2026
@yuchenwang3
yuchenwang3 force-pushed the fix/gdn-in-proj-skip-muon branch from 543412f to 9bd9972 Compare September 3, 2026 22:06
@yuchenwang3

Copy link
Copy Markdown
Contributor Author

/ok to test

@svcnvidia-nemo-ci svcnvidia-nemo-ci removed the waiting-on-maintainers Waiting on maintainers to respond label Sep 4, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Sep 6, 2026
@yuchenwang3

Copy link
Copy Markdown
Contributor Author

@balasaajay, following up on routing the shared GDN/GDN2 in_proj to the scalar optimizer while retaining Muon for out_proj. The PR includes targeted tagging coverage and the recorded GPU validation. Could you review the intended optimizer grouping or help route it, and authorize CI if appropriate? Thanks.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added waiting-on-maintainers Waiting on maintainers to respond and removed waiting-on-maintainers Waiting on maintainers to respond labels Sep 11, 2026
@yuchenwang3
yuchenwang3 force-pushed the fix/gdn-in-proj-skip-muon branch from 9bd9972 to 33f55df Compare September 16, 2026 06:06
@yuchenwang3

yuchenwang3 commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor Author

@xuantengh Rebased onto main at 33f55df716; the five-line change is unchanged and local lint checks pass. Could you review routing GDN in_proj to Adam and authorize CI for this head? The GPU results above are from the earlier revision.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added waiting-on-maintainers Waiting on maintainers to respond and removed waiting-on-maintainers Waiting on maintainers to respond labels Sep 16, 2026
@yuchenwang3

Copy link
Copy Markdown
Contributor Author

@xuantengh Could you review the GDN in_proj routing change and authorize CI for 33f55df716212f07f1e262488cfc320d817efdab? The branch is mergeable, but this head has only DCO and the approval-label check. The earlier GPU results do not cover this revision.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added waiting-on-maintainers Waiting on maintainers to respond and removed waiting-on-maintainers Waiting on maintainers to respond labels Oct 4, 2026
@dimapihtar dimapihtar added the Expert Review [deprecated] Apply this label to indicate that your PR is ready for expert review. label Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@deepakn94 Could you review the GDN in_proj exclusion from Muon? It uses the existing use_muon=False path and leaves out_proj on Muon. CI still needs approval.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added waiting-on-maintainers Waiting on maintainers to respond and removed waiting-on-maintainers Waiting on maintainers to respond labels Oct 9, 2026
GatedDeltaNet in_proj packs heterogeneous q/k/v/gating components into one matrix, so orthogonalizing it as a single Muon weight is not meaningful.

Reuse the existing param.use_muon=False exclusion path to keep this fused weight on the scalar optimizer, and cover the shared GDN/GDN2 constructor behavior.

Signed-off-by: Yuchen Wang <[email protected]>
@yuchenwang3
yuchenwang3 force-pushed the fix/gdn-in-proj-skip-muon branch from 33f55df to 5f26485 Compare October 14, 2026 19:25

Copy link
Copy Markdown
Contributor Author

Merged current main in af0c40587c. The GDN/GDN2 input-projection marker and constructor assertion are preserved, and the determinism manifest retains both the Muon test and new upstream inference coverage. Formatting and kernel coverage checks pass; the historical GPU results are now labeled by revision in the description.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added waiting-on-maintainers Waiting on maintainers to respond and removed waiting-on-maintainers Waiting on maintainers to respond labels Nov 5, 2026

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

community-request Expert Review [deprecated] Apply this label to indicate that your PR is ready for expert review. waiting-on-maintainers Waiting on maintainers to respond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants