mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2721] [CLOSED] [Engine] prefill: STRATA_PF_PEER_CPU=1 (opt-in) runs the CPU share beside a peer GPU (--peer-device) #4230
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#4230
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/2721
Author: @bulhenvaster
Created: 10/16/2026
Status: ❌ Closed
Base:
main← Head:pr/pf-peer-cpu📝 Commits (2)
06e0612prefill: STRATA_PF_PEER_CPU=1 (opt-in) runs the CPU share beside a peer GPU (--peer-device)d082c71Merge main (0.2.0-beta,e88ee39d) into pr/pf-peer-cpu📊 Changes
2 files changed (+53 additions, -18 deletions)
View changed files
📝
docs/DETAILS.md(+8 -0)📝
src/prefill/prefill.cpp(+45 -18)📄 Description
Problem and result: with
--peer-devicethe prompt path never gives the CPU pool a share (cpu_mayberequires!m.pp), so a short read at long context - an agent's tool result - streams every expert neither card holds over the primary's link while the CPU sits idle. WithSTRATA_PF_PEER_CPU=1(opt-in) the share runs beside the peer. On 0.2.0-beta (maine88ee39d), a chain of 12 tool results of 40-3000 tokens read one after another on a 161-173K-token agent conversation, two runs each, alternating:mainmain+ this, switch onApproach: the share takes only experts that neither card computes (not held by the peer, not in its streamed share), and its rows go between the primary's and the peer's (layout: primary GPU, CPU, peer), so the peer's block stays the tail its combine reads from
back_at. With the switch the staged chunks go up tocpu_share_max()'s 3072 tokens instead of the default share's 1024 (an explicitSTRATA_PREFILL_CPU_SHARE_MAXstill wins). Without the switch nothing changes.docs/DETAILS.md: a paragraph in the CPU-share section.Validation (RTX 5060 Ti 16 GB, PCIe 3.0 x8, primary + RTX 3060 12 GB, x16,
--peer-device 1; Xeon E5-2683 v4, 64 GB DDR4 in two channels; Ubuntu, CUDA 13.3, driver 595.91; Qwen3.8-Flash-Next IQ3_XXS pack,--kv int8 --kv-resident 32768 --spec 4 --mtp --prompt-cache 14 --pcie-frac 0,STRATA_ADAPT_OVERLAP=1 STRATA_PREFILL_TIMING=1; one engine start per run):cmake --build build --target strata(CUDA, sm_86 + sm_120) on this branch's tree, no errors.mainand this branch without the switch, deterministic decode (--spec-min-p 1.01 --suffix-draft 0 --lookup-chain 0 --adapt-swaps 0,STRATA_PREFILL_CPU_SHARE=0.5), the same chain: 14 of 14 answers identical.main, switch,main, switch).Limits: with the switch the CPU computes its rows in its own activation format, as the existing CPU share does, so answers can differ in wording from the share off (here the last check answered
claim() (Stager::claim)without it ande.g. `Stager::claim`with it). One rig measured.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #2721] [Engine] prefill: STRATA_PF_PEER_CPU=1 (opt-in) runs the CPU share beside a peer GPU (--peer-device)to [PR #2721] [CLOSED] [Engine] prefill: STRATA_PF_PEER_CPU=1 (opt-in) runs the CPU share beside a peer GPU (--peer-device)