Skip to content

Shared draft rounds price drafts first and skip proposals they won't verify (Nemotron, Qwen MTP, GLM, Gemma 4, LFM2; CUDA and Metal) - #1779

Merged
ashhart merged 15 commits into
mainfrom
lead/shared-round-pricing
Nov 1, 2026
Merged

ashhart merged 15 commits into
mainfrom
lead/shared-round-pricing

Conversation

@ashhart

@ashhart ashhart commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Part of #1621. In a shared draft round, each stream's drafts are priced before drafting, and a stream whose drafts would get no verify rows skips the drafter's proposal work. Each family keeps its head step's cost in the price: follow-up commits restore it where the first version dropped it. Replies are unchanged everywhere: drafted, solo, serial and "draft": false all equal.

Nemotron 3.5 Lightning with its MTP head:

  • M5 Ultra, against main, six repetitions per fresh server, A/B/C/C/B/A:
    • 16-stream chat +9.0% greedy, +4.7% sampled.
    • Four-stream sampled chat recovered with the Metal head-step fix: 537.3 against main's 534.5 tok/s.
    • 4,176 concurrent replies checked exact.
  • GB10 (two boxes): 8 streams +1.1%, 16 streams +2.1%, tokens equal.

Twelve commits; host tests for each family's grants; light gate passes.

Reuse shared lane pricing for native and attached draft adapters. Keep required committed-row absorption, add counted greedy and sampled lifecycle checks, and repair the stale cost-rule source pin.

Refs #1621.
Keep the prior depth rule and current acceptance rates before skipping unused default-mode MTP proposals. Cover copy displacement, stale probabilities, one copy lookup per stream, and sixteen-stream greedy and sampled target tokens.

Refs #1621.
Enable the existing costed depth cap with a loaded Metal MTP head. Compare old and shared neural/copy grants across four, eight and sixteen greedy or sampled streams, with fresh and stale acceptance rates and costly or free heads.

Refs #1621.
….zig, so cuda_native.zig stays under 600 lines
@ashhart
ashhart force-pushed the lead/shared-round-pricing branch from ad2d44f to 18b55ba Compare November 1, 2026 00:27
@ashhart
ashhart merged commit cb036e0 into main Nov 1, 2026
13 checks passed
russellmm added a commit to russellmm/TensorFold that referenced this pull request Nov 1, 2026
…the pooled-key write keeps its own stride there)
@ashhart
ashhart deleted the lead/shared-round-pricing branch November 10, 2026 16:34
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