Repository navigation
perf(nemotron cuda): the lone driver takes requests with logprobs - #777
Merged
Merged
Conversation
It commits each round's kept rows as the lane core's windows read them (logprobRows on the window's logits) and opens the stream with the prompt's last row, so a lone logprobs request decodes on the lone driver's graphs and confidence depth rule.
This was referenced Oct 13, 2026
jschmied
pushed a commit
to jschmied/TensorFold
that referenced
this pull request
Oct 13, 2026
jschmied
pushed a commit
to jschmied/TensorFold
that referenced
this pull request
Oct 13, 2026
The contributor's commits landed above with the same code, on top of ashhart#777's; this keeps the PR's head, which also holds ashhart#777's and the contributor's merge of the two CHANGELOG lines, in the history with no change to the tree.
Owner
|
Thank you, @plotarmordev. Reading the kept rows off the window the lone driver just verified is the right way to bring What we measured on a GB10 (sm_121), against the build without it:
|
Closed
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
The contributor's two commits landed above with the same code; this keeps the PR's head in the history with no change to the tree.
BlivionIaG
pushed a commit
to BlivionIaG/TensorFold
that referenced
this pull request
Oct 20, 2026
The contributor's commits landed above with the same code, on top of ashhart#777's; this keeps the PR's head, which also holds ashhart#777's and the contributor's merge of the two CHANGELOG lines, in the history with no change to the tree.
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.
What this changes
Nemotron CUDA's lone driver takes a lone request that asks for
logprobs. Before, such a request decoded in the lane rounds even when nothing else ran. The driver opens the stream with the prompt's last row, as the lane rounds do. Each round it reads the kept rows from the window's logits with the samelogprobRowskernel the lane rounds' windows use, so rows and tokens are unchanged.cuda_lone.zig: the first row, and each round's rows committed with its tokens.engine_api.zigLone.logprobs,lane_host_lone.zigfits,native/cuda.zig: the driver says it gives rows, and the host lets such requests through.Receipt
Environment: DGX Spark (GB10), Nemotron 3.5 Lightning MLX-4bit @
d9d758fb, on 1.0.8 (0efbd447),--context 16384 --parallel 4. Every server start measured its own window-cost table (a fresh cache), arms alternated.Exactness: a 400-token greedy reply has the same
token_shaand the samelogprobsarray as 1.0.8 at 0, 5 and 20 alternatives (3 starts, 4 calls each). Pairs where a second request arrives 0, 0.3 or 1.0 s later, so the driver hands the first to the lane rounds mid-reply, greedy and seededtemperature: 0.8, at 0 and 20 alternatives: all 24 replies' tokens and rows equal 1.0.8's. Drafted output equals"draft": falsefor each kind, rows included.Speed, the same reply, 3 starts an arm:
logprobsPercentages are the cost over the same start's reply without
logprobs. The reply took 116 rounds on 1.0.8 against 104 now, as many as withoutlogprobs.Tests run:
zig build test616/621 (5 skipped);test-cuda-host25/25 steps; server tests 155/155 and 96/96; goldens 309/319 with 0 unexpected differences;zig fmt;lean_checkas on 1.0.8.Not run, and why: Metal (unchanged). The NVFP4 checkpoint and RTX cards (no hardware here). The Grill has no
logprobsworkload. Note: this and perf(nemotron cuda): prompt_logprobs reads 256 rows a head pass #776 each open a## Unreleasedsection in CHANGELOG.md.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.