Skip to content

Nemotron CUDA: copy drafts in the lanes, verified copies first (#1910) - #1974

Merged
ashhart merged 2 commits into
mainfrom
lead/s209-nemotron-copies
Nov 3, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/s209-nemotron-copies

Conversation

@ashhart

@ashhart ashhart commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Ports copy drafts to the native CUDA Nemotron lanes (part of #1910: copy drafts for every native CUDA family that lacks them).

  • Three fields in Cuda.facts: root_copies and context_copies follow copy_drafts, and copy_match is 4 when on, else 8. With drafts off, main's defaults, width, kernels, worker payloads and the --parallel 1 driver are untouched.
  • Copies enter the existing verify windows within state.windowRows, with the same acceptance rule, so every reply is unchanged.
  • At TP>1 only rank 0 proposes (rank 0 runs the model and lanes; rank 1 computes its expert shares a layer).
  • Only Nemotron changes, apart from test registration. A new host test covers matching, rejection, resumed heads, seeded solo/shared equality and restored states.

Device: main against this head on a GB10 (Nemotron 3.5 Lightning MLX 4-bit), balanced order: GREEN. 0 of 20 prompt rows differ across runs; prompt and decode are level at every size from 2K to 64K (within -1.4% to +1.0%, inside the run-to-run spread). These are prose and code prompts with little to copy; the gain shows on repetitive text.

Independent review: LAND.

Use four-token root and context copies with the existing verification width and drafts-off behavior. Keep the lone driver and expert-worker protocol unchanged, and check plain equality, rejected copies and cancellation on the host.

Refs #1910.
@ashhart
ashhart force-pushed the lead/s209-nemotron-copies branch from 47e49ea to be270f0 Compare November 3, 2026 04:17
@ashhart
ashhart merged commit 071cefe into main Nov 3, 2026
3 of 7 checks passed
ashhart added a commit that referenced this pull request Nov 3, 2026
Use the root and context copy policy from #1974 for Gemma 4, MiniMax M3, Kolibri and Spark behind their existing serving drafts switch. Retain target widths and head policies; leave core pricing and GLM unchanged. Exercise real family facts with strict plain equality, rejected copies and cancellation through the shared lane planner.

Refs #1910.
ashhart added a commit that referenced this pull request Nov 3, 2026
Use the root and context copy policy from #1974 for Gemma 4, MiniMax M3, Kolibri and Spark behind their existing serving drafts switch. Retain target widths and head policies; leave core pricing and GLM unchanged. Exercise real family facts with strict plain equality, rejected copies and cancellation through the shared lane planner.

Refs #1910.
outcastofmusic added a commit to outcastofmusic/TensorFold that referenced this pull request Nov 4, 2026
1.2.2 (2026-11-03) gives Super the same server fixes as this branch: a
max_tokens-cut call returned as the call (ashhart#1238), the stream keeping an
unoffered call's text (ashhart#1365), blank-string history arguments (87f7fbf),
plus Nemotron copy drafts in lanes (ashhart#1974) and a shared top-k (ashhart#1354).
prepare.sh pins its aarch64 archive's sha256 (17632c30...); the archive
still ships no libturbojpeg or libwebpdecoder.

Not yet served: needs the GPU check 1.1.3 got (thinking off, primes,
get_weather, an image) before it reaches fork/dev.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012882unKVWq5Ve1jHg3xizt
@ashhart
ashhart deleted the lead/s209-nemotron-copies branch November 10, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant