Skip to content

feat: support Nemotron 3 Nano 4B BF16#675

Draft
binaryaaron wants to merge 3 commits into
mainfrom
binaryaaron/feat/nemotron-support
Draft

feat: support Nemotron 3 Nano 4B BF16#675
binaryaaron wants to merge 3 commits into
mainfrom
binaryaaron/feat/nemotron-support

Conversation

@binaryaaron

@binaryaaron binaryaaron commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

initial attempt at real nemotron support in nss, mostly aroudn getting mamba to work correctly and addressing toeknizer / prompt construction; this is not meant to merge right away. need to test on DP as well.

Summary

  • add exact BF16 support for nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16 across metadata, native Transformers training, vLLM generation, and grouped time-series assembly
  • use one model-owned response-framing contract across prompt rendering, token budgeting, structured constraints, parsing, and inference evaluation
  • add external Mamba kernel bootstrap plus an A100 selective-state-update tuner covering effective batches through 65,536. hopefully we can obviate this step before landing.
  • reject unvalidated DP and quantized training combinations; FP8 remains deferred

A100 validation

A full financial time-series run completed on an A100 SXM4 80GB:

The lower-than-expected MIA result is under investigation and will be reported separately.

The A100 tuner generated and validated all nine intended selective-state-update entries from effective batch 128 through 65,536. Numerical validation passed for every shape, with measured kernel-level speedups of 1.07x to 1.43x over the vLLM heuristic. The tuned JSON remains machine-local and is activated with VLLM_TUNED_CONFIG_FOLDER.

todos

  • FP8 support
  • Differential privacy and quantized training support
  • slurm benchmarks
  • External kernel builds require a CUDA 12.9 toolchain and remain separate from the standard uv.lock environment.

Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: fd7a9224-1790-436d-b28c-57d84fb0a0a0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch binaryaaron/feat/nemotron-support

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Signed-off-by: Aaron Gonzales <aagonzales@nvidia.com>
# Without grouping, the "sequence" is a single record.
sequence_regex = record_regex
first_sequence_regex = record_regex
subsequent_sequence_regex = record_regex
else:
sequence_format = record_format
first_sequence_format = record_format
subsequent_sequence_format = record_format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant