Skip to content

lanes: lone-copy pricing only for families that opt in and serve without a model drafter - #4661

Merged
ashhart merged 3 commits into
mainfrom
lead/lone-copy-no-drafter
Nov 22, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/lone-copy-no-drafter

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What this changes

5c22fbb took #3728's lone-stream copy pricing out of the lanes because on an M3 Ultra it made Qwen3.8-27B with its DFlash2 drafter verify more drafted rows that did not land. Without it, Qwen3.8-27B on AMD Strix Halo (HIP, copies only, no model drafter) decodes 6-9% slower than 1.3.3 right after a fresh 2K prompt (13.8 against 14.7 and 13.9 against 15.2 tok/s).

This brings the pricing back only where a family opts in with copy_guard and the stream has no model head or drafter. Every other family's and every drafted stream's lane decisions stay exactly as on main. 1.3.4 ships with this commit.

Exactness

Pricing only changes which draft rows the target verifies; every reply stays token-equal.

Measured

Against v1.3.3, three runs a side, tokens equal:

  • Strix Halo, copies only: decode after a fresh 2K prompt 14.6 = 14.6 and 15.1 -> 15.2 tok/s (main without this: 13.8, 13.9).
  • M3 Ultra, Qwen3.8-27B with DFlash2: decode after a fresh 2K prompt -0.4% and -0.2% with overlapping runs; after an 8K prompt at position 10,000 57.6 -> 57.7 (the full revert of 5c22fbb was -3.9% there).
  • GB10, Nemotron 3.5 Lightning: decode after a fresh 32K prompt -0.2% and +0.3%.

Tests

copy_scope_test.zig (pricing on for HIP copies-only, off for every other family and for drafted streams), the restored lone-copy price and sampled tests, and the copies-only plain guard test.

ashhart and others added 3 commits November 22, 2026 20:24
Keep current main head depth functions and every non-opted path. Only HIP
Qwen copies-only facts opt into prefix prices and retained calibration.
Restore price, backoff, sampling and scope regressions.

Co-authored-by: Abraham <119352736+AbrahamCete@users.noreply.github.com>
@ashhart
ashhart force-pushed the lead/lone-copy-no-drafter branch from 18fe282 to 3dbacfc Compare November 22, 2026 20:25
@ashhart
ashhart merged commit a325f58 into main Nov 22, 2026
1 check passed
@ashhart
ashhart deleted the lead/lone-copy-no-drafter branch November 22, 2026 20:25
@ashhart

ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

Thank you @AbrahamCete. This is merged into main with your commits under your own name, so you're credited as a TensorFold contributor.

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