mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1674] [CLOSED] fix: preserve pipeline token equality on 3x P4 (23 -> 28 tok/s) #3600
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3600
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1674
Author: @CC-David-CC
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:fix/pipeline-one-token-commit📝 Commits (1)
9e67094fix: defer pipelined one-token commits to the host verdict📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
src/core/verify.cpp(+3 -2)📄 Description
3x Tesla P4: 23.0 -> 28.6 tok/s with exact output
At 4,096 prompt tokens, prose decode improved from 23.000485 to 28.606868 tok/s (+24.375063%) with two-window pipelining. This is the same-day serial-versus-pipeline comparison on #1656 plus this guard; the pipeline speedup comes from #1656.
Minimal correctness fix
Add
!always_publish_to the one-token self-commit condition inVerifier::record_window()and its matching shortcut inVerifier::commit(). Pipelined verifiers must leave recurrent state updates to the host verdict/snapshot and explicit commit path. Otherwise a one-token window can advance state during verification and then advance it again when the pipeline commits it.The complete code diff is two guards and one explanatory comment in
src/core/verify.cpp. Ordinary serial verifiers retain their existing shortcut. No scheduler, kernel, configuration default, or benchmark files change.Found while testing #1656. The mismatch also reproduced on its exact parent,
fb58e0dbc8399662c0e47c76578c6e878b14f6cf, with a two-stage split, so it predates that PR. The guard is extracted from the earlier three-P4 work in #1154, specifically dd7045d.Measurements
Measured 2026-10-09 on 3x Tesla P4, dual Xeon E5-2697 v3, 251.77 GiB usable RAM, CUDA 12.0, driver 580.178.04. Model: Qwen3.8-Flash-Next-GSQ-RCO IQ3_XXS, int8 KV, split
19,37, 40,960-token context limit, 32,768 resident KV, 27 CPU workers, greedy decoding, MTP--spec 2 --spec-min-p 0.5, suffix drafting off. Static expert placement:STRATA_IQ_MT_MIN=1 --pcie-frac 0 --adapt-every 0.Both arms use the same corrected binary and expert placement, switching
pw=0/pw=2per request. Three measured repetitions per arm; median engine decode throughput below. One initial serial/pipeline code warmup pair excluded. Order reversed for the middle repetition; zero reused prompt tokens throughout. Model loading excluded.4K prose median whole-request latency: 33.755897 -> 31.510369 seconds, a 6.652252% reduction. Decode throughput uses generated tokens divided by engine decode time, not whole-request time. A separate results-only PR will carry all per-run values, ranges, prompts, and reproduction files.
Validation and scope
sm_61build succeeded on #1656 head06abdfa50aef6e5068869bc7552fafa5e99b7b9dplus exactly this patch.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.