[PR #1154] [CLOSED] decode: support a three-GPU two-window pipeline on 3 P4s #3270

Closed
opened 2026-11-07 14:40:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 0f8834e core: keep VMM resolver compatible with CUDA 12.0 on Pascal
  • dd7045d decode: support two-window speculation across three split GPUs
  • 272f488 prefill: allow per-device helper shares on asymmetric three-GPU splits
  • 653f7c9 bench: 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, and STRATA_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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1154 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `r730/three-p4-pipeline` --- ### 📝 Commits (4) - [`0f8834e`](https://github.com/Niko1221/Strata/commit/0f8834ed0fdfd2429db7fd217d419e7d1044b2d3) core: keep VMM resolver compatible with CUDA 12.0 on Pascal - [`dd7045d`](https://github.com/Niko1221/Strata/commit/dd7045d4b6a5143b73477b56c21b58bf3d6fa140) decode: support two-window speculation across three split GPUs - [`272f488`](https://github.com/Niko1221/Strata/commit/272f4884db83b28bbdb18c46106b4742ea853178) prefill: allow per-device helper shares on asymmetric three-GPU splits - [`653f7c9`](https://github.com/Niko1221/Strata/commit/653f7c9f246519fe771ffdfdecc1ab8d0c4e7d0a) bench: record R730 three-P4 validation and scoped hardware results ### 📊 Changes **12 files changed** (+555 additions, -189 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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`, and `STRATA_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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:40:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3270
No description provided.