Repository navigation
Nemotron 3.5 Bolt on CUDA: the shared expert runs on the side stream in decode windows - #2847
Merged
Merged
Conversation
Owner
Author
|
Device result on a GB10, Nemotron 3.5 Bolt, main against this head (base-new-new-base, run 1 excluded): identical replies and faster everywhere. One stream +2.9% to +3.0% (chat and code, greedy and sampled), four streams +1.4% to +2.1%. That's in line with Super's side stream (#1002). It lands after an independent read.
|
ashhart
added a commit
that referenced
this pull request
Nov 12, 2026
ashhart
force-pushed
the
lead/bolt-shared-side
branch
from
November 12, 2026 02:14
c43f1d1 to
fa4768d
Compare
ashhart
force-pushed
the
lead/bolt-shared-side
branch
from
November 12, 2026 14:15
fa4768d to
47388db
Compare
ashhart
added a commit
that referenced
this pull request
Nov 12, 2026
Owner
Author
|
Status: this branch now sits on today's main. Two files conflicted:
I also read the change on its own and found nothing to fix:
The Bolt host tests and the Linux CUDA compile (engine and device tests) pass on the rebased head. One check is still owed before this lands:
|
ashhart
added a commit
that referenced
this pull request
Nov 14, 2026
ashhart
force-pushed
the
lead/bolt-shared-side
branch
from
November 14, 2026 20:09
47388db to
b70c993
Compare
ashhart
added a commit
that referenced
this pull request
Nov 16, 2026
ashhart
added a commit
that referenced
this pull request
Nov 16, 2026
This was referenced Nov 16, 2026
… windows (#2840) Bolt sizes its shared slot for every window row and plans its one-expert shared layer once at load for rows 1 to windowRows, with its own act and out rows, so the routed path's plan, act and ymoe are never shared. In a decode window with a side stream the shared up and down kernels run on f.side between a fork and a join; the main stream waits for the join before addBf16, so the sum keeps its order. Windows without a side stream run the same kernels serially; prompt chunks are unchanged. shared-fork covers Bolt with a NaN-poisoned slot and the side stream held back.
ashhart
force-pushed
the
lead/bolt-shared-side
branch
from
November 16, 2026 09:57
b70c993 to
0663101
Compare
ashhart
added a commit
that referenced
this pull request
Nov 16, 2026
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.
Nemotron 3.5 Bolt ran each layer's shared expert serially after the routed experts on the main stream, and planned it over an all-zero id list every layer. Super already forks its shared expert onto the side stream (
cuda_latent.run,forked), measured at +2.1-2.5% decode on one GPU. This ports that design to Bolt.What changes:
cuda_state.zig: Bolt's shared slot is sized for every window row, its one-expert shared layer is planned once at load for rows 1 towindowRows, and the shared expert gets its own act and out rows, so the routed path's plan, act and ymoe buffers are never shared.cuda_forward.zig(latentExperts): in a decode window with a side stream, the shared up and down kernels run onf.sidebetween a fork and a join; the main stream waits for the join beforeaddBf16. Windows without a side stream (two ranks, a dump run) run the same kernels serially; prompt chunks are unchanged.Exactness: the shared and routed experts compute the same values into separate buffers with the same kernels and plans, and the sum happens in the same order after the join; the separate buffers are what make the fork race-free.
Checks: a host test that Bolt's shared slot covers the cached plans for every window row (main sized it as
shared_words);shared-forkextended to Bolt with its shared output NaN-poisoned and the side stream held back.test-bolt-host(471/475, 4 skipped on macOS),test-modelopt-host,test-nemotron-window-host,compile-cuda-tests -Dtarget=aarch64-linux-gnu,zig fmt --checkand the lean count pass.Still to run before landing:
tf-cuda-test shared-forkwith Bolt on a GB10, and Bolt decode at 1 and 4 streams on one GB10, main against this branch, replies equal (about +1-3% expected from Super's numbers).For #2840.