Repository navigation
CBv2: Nemotron 3.5 plain decode commits by operation count; complete checkpoints stay native - #378
Merged
Merged
Conversation
MLX's defaults commit every 40-50 operations or 40-50 M distinct input elements. A step's inputs include the expert banks and each 64 MiB KV segment the history reads, so decode committed after almost every MoE layer, reached MLX's limit of ten command buffers in flight, and waited inside evaluation. Plain decode steps now commit every 100 operations with no input bound, as Nemotron Super, Flint and GLM do. Prefill chunks and MTP rounds keep the defaults. Results do not depend on the partitioning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The earlier test named a private oracle from another file and did not compile. Tests only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CONTRIBUTING gives each new test one type; the kernel tests live in KernelTests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Beside its MTP head Lightning's checkpoints stay native, because the head's persistent state requires it. Served without the head they would become eligible for balanced rows, and a cache hit's output would move: 40 of 55 requests differed on a frozen conversation, 0 of 55 with native rows. A saved provider.toml spells out the previous default, so the global word balanced is not a choice; k4v4, a per-model setting and the process switch still are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Draft
9 of 14 tasks
Brings #378 up to the SDK the provider pins for 0.10.12. No conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 of 8 tasks
Author
|
Merged |
…oses The rule's tests lived only in the provider; SDK CI now guards it. Swift logic only (UnitTests). A standalone harness of the same cases passes on this branch's policy and fails 6 on main 093563b's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 5 tasks
jonathan308
marked this pull request as ready for review
November 10, 2026 19:11
jonathan308
added a commit
that referenced
this pull request
Nov 10, 2026
#378 (Nemotron 3.5 Lightning: plain decode commits by operation count; complete checkpoints stay native) merged at 19:11Z. Its four files are disjoint from this branch's; Lightning's checkpoints now stay native, so they do not take the coded path this branch changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 10, 2026
…row-reads CBv2: a lossy checkpoint export reads rows in batches and codes them on several cores (same bytes). Merged by an agent with the owner's approval (11-10) after the independent review (review-stream-tail.md: approve, merge after #378 as a merge commit); Fork Tests 42882853010 on 781c382: success, all 10 shards.
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.
Proposed changes
Two changes for Nemotron 3.5 (
nemotron_h), which the provider PR needs together:CBv2DecodeCommandBufferLimitsProviding. MTP rounds keep MLX's defaults. Results do not depend on the partitioning.PagedKVQuantizationPolicy.nativeCheckpointModelTypes). Beside its MTP head Lightning's checkpoints stay native because the head's persistent state requires it. Served without the head they would become eligible forbalancedrows, and a cache hit's output would move: 40 of 55 requests differed on a frozen conversation, 0 of 55 with native rows. A saved globalbalancedis the old default, not a choice;k4v4, a per-model setting and the process switch still are.Provider side and evidence: Layr-Labs/d-inference#1714. Target: 0.10.7. It conflicts textually with a possible native-checkpoint default for other models only on the one set literal.
Checklist
Put an
xin the boxes that apply.pre-commit run --all-filesto format my code / installed pre-commit prior to committing changes (not run)NemotronH35DecodeCommandBufferTests; the checkpoint rule is pinned by the provider'sEngineV2KVQuantizationPolicyTests)AI usage
accurately describes the code changes.
🤖 Generated with Claude Code