Skip to content

feat: AUT-2177 add Ling-V3 Tiny hybrid training support - #6974

Closed
svcnemo-autobot wants to merge 36 commits into
NVIDIA:mainfrom
svcnemo-autobot:chore/cherrypick-14e28c6e-to-main-v3
Closed

svcnemo-autobot wants to merge 36 commits into
NVIDIA:mainfrom
svcnemo-autobot:chore/cherrypick-14e28c6e-to-main-v3

Conversation

@svcnemo-autobot

Copy link
Copy Markdown
Collaborator

Background

Port the Ling-V3 Tiny hybrid-model training support from PR #6556 to main. This replacement preserves the corrected head after the prior PR branch became unavailable to this workflow.

What changed

  • Add Ling-V3 Tiny hybrid model and KDA/GDN training support.
  • Adapt imports and integrations to the main source layout.
  • Secure recipe credential cleanup and legacy checkpoint loading.
  • Apply the Black formatting required by the prior CI run.

Details

flowchart LR
  A[Ling-V3 configuration] --> B[Hybrid model]
  B --> C[KDA and GDN training]
Loading

Tested

  • Source-layout and conflict-marker inspection passed.
  • Confirmed the exact Black fix is present in gdn.py and kda.py.
  • DCO passes on 91f6f85a.
  • Full autoformat could not run because the typed checkout exposes no .git metadata; GitHub CI remains authoritative.

fkuner and others added 30 commits August 27, 2026 21:45
Keep the existing private GDN base as the shared implementation for head-wise GatedDeltaNet and channel-wise variants. Generalize its variant hooks, parameter dtype handling, diagnostics, and norm-output recompute contract without exposing a broader linear-attention API.

Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 6ff2fcc)
Add KDA as the channel-wise Gated DeltaNet variant in HybridModel. Reuse the existing private GDN-family base and gdn_norm_out recompute selector while keeping KDA projection, kernel, and context-parallel behavior variant-specific.

Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 16f448c)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 72cefc3)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit ed853d3)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit fe92b2d)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 2ec2297)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 5fe61a8)
Count KDA and MLA operations in the hybrid training FLOPs estimate so that Ling-V3 Tiny TFLOPs and MFU include every attention layer used by the model.

Keep the architecture-specific formulas separate and cover direct KDA projections and state updates, MLA latent projections, output gating, and ragged dense attention.

Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 8296e8b)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 7f0ae9f)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 7ff158e)
Co-authored-by: Yuzhong Wang <yuzhongw@nvidia.com>
(cherry picked from commit 529e5e4)
Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit c3bf414)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit f08a989)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 545c761)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 27f29bf)
Reject missing or out-of-range lower bounds during KDA construction when safe gate is enabled, matching the FLA kernel contract.

Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 22458cd)
Signed-off-by: Yuzhong Wang <yuzhongw@nvidia.com>
(cherry picked from commit 4b03bfb)
Signed-off-by: Yuzhong Wang <yuzhongw@nvidia.com>
(cherry picked from commit a7855d9)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit f9e20e5)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit fe1caca)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 611c8ac)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 1f6ffd1)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 4a68b8a)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 87c96f8)
Co-authored-by: Yuzhong Wang <yuzhongw@nvidia.com>
Signed-off-by: Fan Kun <784819644@qq.com>
(cherry picked from commit be824cc)
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Signed-off-by: Fan Kun <784819644@qq.com>
(cherry picked from commit aa516dc)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit bd98edc)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit f4e113e)
Signed-off-by: fkuner <784819644@qq.com>
(cherry picked from commit 14e28c6)
Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
Signed-off-by: svcnemo-autobot <svcnemo-autobot@nvidia.com>
@svcnemo-autobot
svcnemo-autobot requested review from a team as code owners August 29, 2026 12:42
@svcnemo-autobot
svcnemo-autobot requested a review from a team August 29, 2026 12:42
@svcnemo-autobot
svcnemo-autobot requested review from a team as code owners August 29, 2026 12:42
@copy-pr-bot

copy-pr-bot Bot commented Aug 29, 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 August 29, 2026 12:42
@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.

This branch was previously deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants