feat(models): vendor Nemotron-H Puzzle checkpoint support - #1228
Open
pierre427 wants to merge 2 commits into
Open
feat(models): vendor Nemotron-H Puzzle checkpoint support#1228pierre427 wants to merge 2 commits into
pierre427 wants to merge 2 commits into
Conversation
pierre427
marked this pull request as ready for review
July 27, 2026 17:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(models): vendor Nemotron-H Puzzle checkpoint support
Source: ml-explore/mlx-lm#1536
Review state: validated — real 75B server/tool-call gate passed; MTP unavailable in the tested artifact
Why
Nemotron-H Puzzle matters to Rapid users because it is a practical 75B / ~9B-active hybrid MoE that can run locally on Apple Silicon with a 262k context window and strong tool-calling behavior. The port lets Rapid instantiate the heterogeneous per-layer Puzzle variant while keeping hybrid SSM and speculative-decode safety gates conservative.
Summary
Add native-first
nemotron_hcompatibility for the Nemotron Labs Puzzlecheckpoint while preserving Rapid-MLX's conservative hybrid-model safety
gates.
AI assistance disclosure
OpenAI Codex Terra implemented the initial adaptation. The coordinator
independently inspected the diff, repaired process-global test cleanup,
verified public checkpoint metadata, corrected the tool parser profile to the
checkpoint's Nemotron XML template, and reran focused tests, Ruff, format, and
whitespace checks.
Implementation
mlx-lmhas nonative module.
parser and Qwen3 reasoning parser.
speculative decoding: Rapid still lacks validated hybrid SSM
rollback/replay for this architecture.
Test plan
pytest -q tests/test_nemotron_puzzle_vendored.py tests/test_aliases_contract.py— 2545 passed.git diff --check.nemotron_h, 88 blockdescriptors, one configured MTP layer, 13 weight shards, and zero MTP
tensor keys in the tested community 6-bit artifact.
<function>/<parameter>Nemotron template.community 6-bit artifact,
/v1/modelsadvertised 262144 context withtext/tools capabilities, ordinary chat returned
Paris, and a forcedNemotron-format weather tool request produced
get_weather({"city":"Toronto"}).Remaining validation
The tested community 6-bit artifact has no MTP tensor keys, so MTP decode was
not a valid validation target for this PR. mlx-lm#1533 remains deferred until a
Puzzle checkpoint with MTP weights is available and Rapid has a safe hybrid SSM
rollback/replay contract.
Attribution
The vendor module preserves Apple copyright and Apache-2.0 attribution and is
adapted from mlx-lm #1536 for Rapid-MLX's native-first vendoring seam.
Draft opened from
pierre427fork after duplicate-checking freshraullenchai/Rapid-MLX@b3ccb921cd2d435b7238d89b079134258f7d3485.