Skip to content

Promote native Nano to v0.2.0 and stabilize expert reductions - #49

Merged
kailash109 merged 3 commits into
spindle-miles-v0.2.0from
codex/nemotron-release-promotion
Nov 17, 2026
Merged

kailash109 merged 3 commits into
spindle-miles-v0.2.0from
codex/nemotron-release-promotion

Conversation

@kailash109

@kailash109 kailash109 commented Nov 17, 2026 •

Copy link
Copy Markdown

Promote the native Nemotron Nano support from #48 onto spindle-miles-v0.2.0. #48 merged into the previous expert feature branch after #47 had already merged, so the release branch did not receive it.

Fix the repeat-forward discrepancy by enabling Megatron's existing moe_permute_accumulation_in_fp32 for Nano. The unfused MoE combine accumulated top-k expert outputs through BF16 atomic additions; different addition orders changed the first MoE layer and grew to roughly 0.1–0.3 in full-model probe log-probabilities. The same option accumulates duplicated-token gradients in FP32. Adapter storage and expert GEMMs remain BF16.

Validation:

  • An instrumented full-model run confirmed identical inputs and first-Mamba activations, with the first difference appearing in the first MoE layer. Dropout and router jitter were disabled. Checkpoint weights and Adam moments had already been verified to round-trip exactly.
  • All 243 native adapter tests pass in the pinned v0.2.0 image.
  • Two-H200 TP2/EP2 regression passes, including a cancellation-sensitive FP32 combine/permute-backward check built from Nano's actual bridge configuration, plus gated/ungated adapters, independent/shared factors, checkpoint recomputation and export. The torchrun subprocess took 74.3 seconds.
  • Repository checks pass for the numerical fix and regression.
  • Full-model stock Tinker validation on Miles 39ce4c2 (same runtime as this PR head): two concurrent rank-8/rank-16 clients accept GRPO updates and publish adapters for sampling. Repeated-forward and checkpoint-restore scores match exactly.
  • A separate two-client TP2/EP2 replay probe with deterministic mode enabled passes at ranks 8 and 16: repeated-forward, restore and next-update replay maximum log-probability differences are all 0.0, with identical replayed gradient norms. FP32 expert accumulation fixes forward drift; exact optimizer replay additionally requires deterministic_mode, unfused cross entropy, disabled TP overlap, and the supported deterministic NCCL/cuBLAS/TE/Mamba environment settings. Spindle enables these for its Nano recipe. This does not claim hosted-Tinker numerical parity or convergence.

No generated run outputs are included.

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.

1 participant