Repository navigation
provider: scope Nemotron stray-think handling and artifact sampling defaults - #963
Merged
Gajesh2007 merged 2 commits intoOct 1, 2026
Conversation
jonathan308
had a problem deploying
to
benchmarks
September 12, 2026 18:56 — with
GitHub Actions
Failure
|
@jonathan308 is attempting to deploy a commit to the EigenLabs Team on Vercel. A member of the Team first needs to authorize it. |
jonathan308
had a problem deploying
to
benchmarks
September 12, 2026 19:26 — with
GitHub Actions
Failure
3 of 4 tasks
jonathan308
force-pushed
the
fable/nemotron-stray-think-close-20260912
branch
from
October 1, 2026 02:25
dc3bc68 to
a03259e
Compare
Contributor
Threat model review — advisoryReviewed head Review not completed for this head. Previous findings are superseded, not confirmed resolved. Reviewers: anthropic/claude-opus-5.5: incomplete (review unavailable); openai/gpt-6-astra: incomplete (review unavailable) Models: anthropic/claude-opus-5.5, openai/gpt-6-astra. Findings require human validation; this review never requests changes or blocks merging. |
Absorb stray think closers only for the qualified Nemotron Lightning family while preserving preceding content, opaque tool arguments and other model parsers. Apply artifact defaults only to omitted sampling fields, retain explicit overrides, preserve newer prefix donation and MiMo deadlines, and recognize compatible immutable rollout build IDs. Include scoped regressions and documentation. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Gajesh2007
force-pushed
the
fable/nemotron-stray-think-close-20260912
branch
from
October 1, 2026 20:02
a03259e to
c5e5b71
Compare
0xkydo
approved these changes
Oct 1, 2026
This branch was successfully deployed
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.
Summary
Rebase the Nemotron parser/sampling follow-up onto master
36154ac64691e04eaebd0aabbb0057919e937b9e, including merged #962 and its prompt, cache-CI and first-byte fixes. Keep master's SDK1ee8675a035d0d842d5df663938d66cfedf88a8e; this PR no longer changes the SDK pin or reintroduces the parent diff.nemotron_h, absorb a stray</think>in content while preserving preceding text and opaque tool arguments. Other families retain their existing parser behavior.do_sample: falseconfigs retain legacy defaults. Preserve checkpoint-demand hints and current MiMo media/deadline behavior.The stray-close transition matches the current vLLM Qwen3 parser configuration, reused by Nemotron V3. NVIDIA documents
nemotron_v3for Lightning serving. This is a scoped transition match, not a claim of complete parser equivalence.Before
After
flowchart TD A["Request and model identity"] --> B{"Admitted Nemotron?"} B -->|Yes| C["NativeToolStreamRouter + splitter absorb close"] B -->|Yes| D["SlotFactory → SamplingDefaults.resolve"] B -->|No| E["Existing parsing and defaults"] D --> F["samplingParams: explicit values win"] F --> G["CBv2 request retains cache-demand hint"] H["Parent handler installed"] --> I["Cancel; assert closure and eventual cleanup"] classDef input fill:#dbeafe,stroke:#1d4ed8,color:#172554 classDef fixed fill:#dcfce7,stroke:#15803d,color:#052e16 classDef stable fill:#f3f4f6,stroke:#4b5563,color:#111827 class A,H input class B,C,D,F,G,I fixed class E stableCurrent validation
make provider-testpasses: 3,558 Swift Testing tests in the main run; 553 XCTest cases with 123 fixture-gated skips and zero failures; all seven isolated selections pass (13 additional Swift Testing tests, zero skips). Build-for-testing passes. The focused Nemotron/ownership checks above have zero skips.c5e5b718464749aa0c2fda0c56483d5617cafb33, including provider unit/native gates, SDK gates, production prompt parity, coordinator and console UI. Production parity covers 154 vectors across seven models; 96 cold-start and 375 load requests complete with zero mismatches. The repaired cancellation test passes in CI.installer: unbound variable), already fixed on master; fresh E2E passed that setup. Parent prompt-parity fixes are retained.Commands:
swift build --build-tests;scripts/run-nested-suite.shfor the focused suite and 20 isolated cancellation runs;make provider-testwith the existing MiMo and Nemotron fixture gates enabled;make docs-impact-check BASE=origin/master;make docs-check.Release scope and remaining qualification
The model results below were collected on the earlier composed candidate described in the original PR, not rerun on this rebased head. They are retained as historical evidence. The code changes do not turn a refusal into a fabricated tool call, and test success does not establish universal model quality.
Prior model evidence
Same optimized binary and frozen requests for both artifacts; MTP on/off verified through runtime metrics. Counts are automatic scenario-oracle passes, not a BF16-equivalence claim.
Hybrid8 passes the original Boston reasoning-off greedy request and all 20 controlled mode/stream/tool-choice cases in both MTP modes. It still declines the TSLA automatic-tool request and some as-sent sampled draws. The shared poem case also trips the deliberately retained keyword heuristic despite returning a poem; the table does not silently re-score it. Three draws per sampled mode are a bounded regression observation, not a reliability estimate.
The separate long-prefix cache plans observe
readystate and 2,048 cached tokens on repeats, with requests fully retired. However, all three requests in each plan produce no tool call, so each dependent returned-ID cache-history cell remains unrun: these two cache plans are recorded as failed, not passed. Main-plan returned-ID history passes in all four arms. The first Q4 MTP-on attempt stopped before model execution because the previous TCP port was not reusable; a distinct-port retry ran the same frozen requests successfully. No test oracle or production source was weakened.All six completed model processes exited cleanly, with source, executable, resource and artifact hashes unchanged. This is isolated local API evidence, not a signed/notarized release, hosted coordinator or fresh BF16 qualification.
Interfaces and rollout
No new wire fields or provider version. Omitted sampling changes only for admitted Nemotron IDs. Parent #962's normalization v8 / renderer v4 migration requires matching provider, coordinator/sidecar contracts and exact-artifact allowlists at rollout. No artifact or alias is activated here.
Before release, complete the residual reasoning-off automatic-tool and cached returned-ID history acceptance cases on the intended immutable weights, plus signed-release/fleet qualification. Fresh BF16 equivalence is not established by these checks.
Rollback
Use signed reverts. Sampling defaults and stray-close absorption can be reverted independently. Remove compatibility IDs only when nothing depends on them; retain the current upstream SDK and parent fixes. Coordinate any rollback of #962's cache identities separately.