mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1154] [CLOSED] decode: support a three-GPU two-window pipeline on 3 P4s #3270
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#3270
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/1154
Author: @CC-David-CC
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:r730/three-p4-pipeline📝 Commits (4)
0f8834ecore: keep VMM resolver compatible with CUDA 12.0 on Pascaldd7045ddecode: support two-window speculation across three split GPUs272f488prefill: allow per-device helper shares on asymmetric three-GPU splits653f7c9bench: record R730 three-P4 validation and scoped hardware results📊 Changes
12 files changed (+555 additions, -189 deletions)
View changed files
📝
CMakeLists.txt(+3 -0)➕
bench/results/2026-10-06-r730-three-p4/README.md(+28 -0)➕
bench/results/2026-10-06-r730-three-p4/validation.json(+49 -0)📝
docs/MULTI_GPU.md(+26 -6)➕
include/strata/core/commit_limit.hpp(+17 -0)📝
include/strata/core/verify.hpp(+1 -1)📝
include/strata/core/vmm.hpp(+2 -1)➕
src/core/commit_limit_test.cpp(+26 -0)📝
src/core/verify.cpp(+3 -2)📝
src/core/vmm.cpp(+6 -2)📝
src/prefill/prefill.cpp(+30 -2)📝
src/program/generate.cpp(+364 -175)📄 Description
Three split GPUs currently disable
--pipeline-windows 2. This change lets one conversation use two speculative windows across three stages, including an opt-in early start on the first stage. Every prefix stage keeps its own rollback snapshot, and commits stop at EOS or the output budget. Pipelined verifiers leave single-token commits to the host verdict.The R730 recipe uses three Tesla P4s with x16/x8/x16 links:
gpu: [0,1,2],layer_split: "20,28"(20/8/20 layers),--pipeline-windows 2, andSTRATA_PIPELINE_PREFIX_EARLY=1. All cards read one host expert backing. Optional per-device prefill helper shares and helper selection let the x16 cards help the narrow middle stage. The CUDA driver resolver also retains compatibility with CUDA 12.0 used on this Pascal machine.Validation and measurements are recorded in
bench/results/2026-10-06-r730-three-p4/README.md. The preceding patched v0.1.40 build reached median 26.88 tok/s on code and 18.12 tok/s on prose with Q8_0 weights, FP16 KV, 4,096 input tokens and a 512-token output cap. These are hardware results, not a stock-versus-patch speedup claim. The comparison to patched v0.1.39 was +2.9%/+3.4% decode, with prefill essentially unchanged at 147-149 tok/s.This PR excludes the experimental shared-arena reuse and late PLE-residency utilities. Q4/IQ3_S, other hardware and sustained concurrent serving have not been validated on this final branch. The three-stage path remains opt-in.
Exact clean branch checks: Pascal Release build and commit_limit_test passed; all 30 requests matched serial tokens and all-stage recurrent/attention state; all six forced-rollback requests exercised rollback; five measured code outputs passed 1,005 functional cases each.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.