Repository navigation
Fix Nemotron prompt parity and first-byte/cache regressions - #962
Merged
Gajesh2007 merged 5 commits intoOct 1, 2026
Merged
Gajesh2007 merged 5 commits into
Gajesh2007 merged 5 commits into
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
codex/nemotron-template-parity-20260911
branch
from
October 1, 2026 02:25
4ed2446 to
398fe79
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. |
Member
|
@codex review this |
Gajesh2007
force-pushed
the
codex/nemotron-template-parity-20260911
branch
from
October 1, 2026 18:32
3744b8d to
458a4fe
Compare
Retain strict metadata and render Nemotron scalar and JSON values with reference-compatible semantics. Advance normalization v8 and renderer v4 across Swift, Go and Rust; regenerate identity-only production vectors and preserve newer model normalization behavior. Pin the content-identical signed SDK dependency and include reference fixtures, regressions and documentation. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Gajesh2007
force-pushed
the
codex/nemotron-template-parity-20260911
branch
from
October 1, 2026 18:58
ed1a1d9 to
58c8bc7
Compare
0xkydo
previously approved these changes
Oct 1, 2026
0xkydo
approved these changes
Oct 1, 2026
10 of 19 tasks
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
Align Nemotron tool prompts with the pinned Transformers reference while preserving other model families' metadata policy. Nemotron retains optional function
strictand uses model-scoped scalar/JSON filters in the provider, scan-time render check and Rust sidecar.Fix numeric parity in both filters: exponent spelling and the SDK's Int-before-Double conversion now produce matching token counts and cache hashes. Ambiguous decimal/exponent integers outside the exact Double range fail cold; plain integer inputs remain eligible. Apply non-Nemotron
strictstripping to native media inputs as well as text. The provider's existing media/history/schema transformations remain in their own paths. Repair the exact-cache E2E fixture's SSD opt-in and repeat-demand setup, then make its unchanged output/isolation/recovery assertions a blocking CI gate.Remove a redundant registry lookup from post-dispatch slot-metric attribution. Primary and backup paths use their already-selected provider, so registry writers cannot delay first content at this bookkeeping step; terminal attribution rules stay intact.
Rebased onto current
masteratd3300443b73defb0209a7d0a34f12c42545f01b2. This includes the latest payouts and default rectangular MiMo verification merges. The SDK pin stays at master's1ee8675a035d0d842d5df663938d66cfedf88a8e, preserving the newer MiMo cache and decode fixes; it already includes mlx-swift-lm #147.Before
After
First-byte contention: before and after
flowchart LR subgraph Before direction TB A["Request handed to provider"] --> B["noteServingSlotFor: registry lookup"] B --> C["Registry writer can delay first content"] end subgraph After direction TB D["Request handed to provider"] --> E["noteServingSlotFor: selected provider"] E --> F["Same metric tags; no registry lookup"] end classDef gap fill:#fee2e2,stroke:#b91c1c,color:#450a0a classDef fixed fill:#dcfce7,stroke:#15803d,color:#052e16 Before ~~~ After class A,B,C gap class D,E,F fixedValidation
scripts/verify-nemotron-prompt-parity.shprovisions hash-verified metadata and runs both Swift and Rust artifact/planner checks without weights.scripts/verify-prompt-parity.shpasses: all 154 production vectors match; 96/96 cold and 375/375 warm sidecar requests complete with no errors, mismatches or restarts.54f6c81c4.make coordinator-testpass; Postgres-backed cases run in CI.make provider-testpass with the pinned MiMo fixtures. XCTest reports 553 tests including 125 opt-in skips; Swift Testing reports 3,542 tests. All isolated gates pass. Full-model qualification opt-ins remain separate.42b88351d, including blocking paged, exact-cache and default-provider checks. External advisory reviewers were unavailable; their green workflow status was not a completed review.All 154 existing production vectors retain identical requests, normalized inputs and token arrays. Only contract-dependent IDs/hashes change. The number oracle is regenerated by
scripts/generate-nemotron-number-vectors.swift; the additional prompt corpus uses local-only Transformers viascripts/generate-nemotron-prompt-edges.py.Existing CI regression addressed
The failed Provider Prompt Parity jobs on #1282, #1299, #1279 and #1289 report the same three
tool_function_extra_keysmismatches: Qwen3.8, Qwen3.5 and Qwen3.6 retain function-levelstrictin Swift while the sidecar strips it. This PR restores that non-Nemotron normalization in both text and native-media paths. Existing token expectations remain unchanged, and the production parity lane passes with this correction. The red aggregate Provider Tests check on those PRs reflects this failed child lane.Contract and release impact
Normalization advances v7 to v8 and renderer v3 to v4 consistently in Swift, Go and Rust. This invalidates old prompt/cache identities for every model. Provision matching contracts and update configured exact-artifact allowlists together before rollout; never relabel old cached objects. Mixed identities retain ordinary serving without cross-version cache credit.
This PR establishes prompt fidelity. It does not include #963's parser/sampling changes or prove that the intended Nemotron weight artifact selects tools with reasoning disabled. That generation acceptance case, signed release qualification and fleet rollout remain separate release gates. No model weights, sampling defaults or inference kernels change in this PR.
Rollback
Revert the prompt normalization/rendering/identity changes together with signed commits. If deployed later, coordinate provider and coordinator/sidecar contracts and restore their matching allowlists; preserve the newer upstream SDK fixes.