Skip to content

Add native Nemotron Nano model and checkpoint support - #48

Merged
kailash109 merged 2 commits into
codex/native-routed-expert-lorafrom
codex/native-nemotron-nano
Nov 17, 2026
Merged

kailash109 merged 2 commits into
codex/native-routed-expert-lorafrom
codex/native-nemotron-nano

Conversation

@kailash109

@kailash109 kailash109 commented Nov 17, 2026 •

Copy link
Copy Markdown

Add native/raw-mode Nemotron-3 Nano support using Megatron-Core's hybrid model: split Q/K/V adapters and ungated up/down adapters on routed and shared experts. Add mbridge HF checkpoint loading, raw HF export, Mamba tensor-parallel component packing, and selectors accepting both per-expert and Transformers packed namespaces. Mamba projections remain frozen; larger latent-expert Nemotron variants and GPT-OSS are outside this change.

This is the second half of the split of #46, stacked on routed-expert PR #47 (codex/native-routed-expert-lora). Merge the routed-expert PR first, then retarget this PR to spindle-miles-v0.2.0. This diff contains only Nano model/architecture integration and its tests, reusing the generic expert backend.

Validation:

  • Repository pre-commit checks pass. The split branch's native adapter suite passes: 243 tests.
  • Merging both split PRs reproduces the entire 88ca1d1 tree from Add native Nemotron Nano and multi-slot routed expert LoRA #46 exactly, including its Nano-specific GPU fixture (previously passed on two H200s in 51.9 seconds). On that implementation, full-model Nano completed four successful RL optimizer updates through Spindle's Miles command backend, with concurrent rank-8/rank-16 clients, generation, and adapter publication.
  • The earlier diagnostic (0bd70b3) checked both clients through checkpoint restore and trained-adapter sampling. Streamed checkpoint comparisons found zero mismatches in 651,988,992 rank-8 and 1,303,977,984 rank-16 weight/Adam-moment elements.

Still draft: the strict full-model restore-score check fails (0.2752 on 88ca1d1). Repeated forwards without a load also varied (0.1249/0.2299 in the diagnostic), despite exact checkpoint tensor round-trips. Freezing router bias did not resolve this. Score repeatability and exact optimizer replay remain unvalidated; splitting the PR does not change this result.

Generated run outputs are excluded. No full-model E2E rerun is claimed for the split itself.

@kailash109
kailash109 marked this pull request as ready for review November 17, 2026 22:36
@kailash109
kailash109 merged commit 5ec10e2 into codex/native-routed-expert-lora Nov 17, 2026
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