mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1524] [CLOSED] Performance: wider speculative batches and shared experts — 1.31×–2.07× c4 throughput #3508
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#3508
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/1524
Author: @tntcannon5000
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:publish/concurrent-performance-v0404📝 Commits (4)
6d34a03feat: add opt-in wide concurrent speculation and bounded executionc8c90d1fix: retain solo graph bounds and avoid duplicate upstream MTP metadataae084bcdocs: audit v0.1.40.4 integration and define fresh paired benchmarks69aa406docs: qualify v0.1.40.4 throughput with fresh paired runs and lifecycle parity📊 Changes
43 files changed (+2517 additions, -100 deletions)
View changed files
📝
CMakeLists.txt(+15 -0)📝
docs/BATCHING.md(+27 -0)➕
docs/CONCURRENT_THROUGHPUT.md(+66 -0)➕
docs/PR_WORKLOAD_BENCHMARKS.md(+75 -0)➕
docs/V0404_REBASE.md(+79 -0)➕
docs/evidence/v0404-performance/.gitattributes(+2 -0)➕
docs/evidence/v0404-performance/baseline.json(+51 -0)➕
docs/evidence/v0404-performance/candidate.json(+62 -0)➕
docs/evidence/v0404-performance/experts.log(+13 -0)➕
docs/evidence/v0404-performance/gdn.log(+1 -0)➕
docs/evidence/v0404-performance/hardware-cpu.json(+3 -0)➕
docs/evidence/v0404-performance/hardware-gpu.txt(+2 -0)➕
docs/evidence/v0404-performance/hardware-memory.json(+10 -0)➕
docs/evidence/v0404-performance/lifecycle-baseline.log(+38 -0)➕
docs/evidence/v0404-performance/lifecycle-candidate.log(+46 -0)➕
docs/evidence/v0404-performance/qualification-summary.json(+21 -0)➕
docs/evidence/v0404-performance/qualification.json(+18 -0)➕
docs/evidence/v0404-performance/raw-sha256.json(+72 -0)➕
docs/evidence/v0404-performance/segments.log(+1 -0)➕
docs/evidence/v0404-performance/summary.json(+354 -0)...and 23 more files
📄 Description
Supersedes #1209 with a performance-focused port onto pristine upstream v0.1.40.4 (
6674a00). Wider speculative batches let concurrent requests share more verification and expert work while retaining upstream admission, prefix reuse, cancellation, checkpoints and return-to-solo handling.Fresh c=4 measurements on an RTX 5090, Ryzen 9 9950X3D, 48 GB DDR5-6000 show 1.31x essay and 2.07x coding aggregate decode throughput. These replace the older PR's figures; both arms were rebuilt and measured again.
Performance against current upstream
Three paired runs per workload, alternating AB/BA/AB, seeds 123/456/789. Values are medians; ratios are ratios of medians. Baseline has upstream concurrent MTP enabled (
--batch-mtp) and needs no correctness patch.Swift 1.5 IQ2_XS; 98,304 allocated context/request; int8 KV; 2,560 MiB requested reserve; identical explicit cache request, rounded by profile sizing to 11,568 resident experts in every run. Temperature .85, normal optimized CPU arithmetic, QFUSE off. Fresh processes with startup and 256-token warm-up excluded. No cache cuts or reserve shrinks occurred. GPU undervolt removal was previously reported by the owner; the voltage curve was not independently verified.
Median native token-gap p95: 47 -> 47 ms for essays; 62 -> 47 ms for coding. Turn TTFT p95: .313 -> .344 s and .891 -> .813 s respectively. These are native receipt measurements, not browser latency guarantees.
Four-stream decode counts emitted tokens while all four slots are active with no admission. Whole-run throughput includes prompt work, tools and periods with fewer streams. The coding fixture is a bounded read/write/AST-check loop, not DSH or SWE-bench. 12/12 modules passed syntax/structure checks in each arm, but nine agents per arm reached the six-turn limit. Generated tests were not executed. Outputs differ, so these numbers do not establish faster equal-quality task completion.
Full method and results | All twelve run summaries
What changes
The speedup is for the combined opt-in configuration, not an isolated attribution to each feature. Wider speculation remains off by default and limited to eligible single-NVIDIA, text/MTP, resident-int8-KV configurations without helper expert caches. Unsupported configurations keep upstream batching; AMD/multi-GPU concurrency is not disabled.
How this differs from #1209
Integration decisions and audit | Feature rationale
Fresh validation and limits
Qualification summary, logs, token dumps and artifact hashes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.