mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#2680
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/531
Author: @q8atnight
Created: 10/2/2026
Status: ❌ Closed
Base:
main← Head:pr/peer-tier-036-sub📝 Commits (3)
9593cb5multi-GPU: a second GPU as an opt-in expert-cache tier (--peer-device N)3e2f87cpeer tier: refuse --peer-device with --layer-split or --expert-cache-device1..3 (both would use the same second card); --help lines for the --peer-* flags4c1d020docs: the refused --peer-device combinations📊 Changes
13 files changed (+1155 additions, -18 deletions)
View changed files
📝
CMakeLists.txt(+1 -1)📝
docs/SECOND_GPU.md(+39 -0)📝
include/strata/core/expert_source.hpp(+4 -0)➕
include/strata/core/peer_experts.hpp(+106 -0)📝
include/strata/kernels/elementwise.hpp(+2 -0)📝
include/strata/prefill/prefill.hpp(+7 -0)📝
src/core/expert_source.cpp(+32 -4)📝
src/core/mtp.cpp(+2 -1)➕
src/core/peer_experts.cpp(+325 -0)📝
src/core/verify.cpp(+2 -1)📝
src/kernels/cuda/elementwise.cu(+17 -0)📝
src/prefill/prefill.cpp(+516 -10)📝
src/program/generate.cpp(+102 -1)📄 Description
Resubmit of #229 part 1, rebased on v0.1.36, per your closing comment there.
--peer-device Nputs an adaptiveexpert cache on a second visible GPU beside CUDA0's, holding the ranked pairs the primary cache does not hold.
Activations and result rows cross NVLink or another P2P path; the peer computes its experts' rows for decode
windows and prompt chunks. Without the flag everything is exactly as released.
Checklist from #229
the peer tier is rebased on top and keeps them intact.
cudaHostAllocPortableonly with a peer:core::set_peer_portable(o.peer_device >= 1)runs once after argparsing; verify.cpp, mtp.cpp and the prefill group table add the Portable flag only then. No layer-split or
single-GPU run pays for it.
--layer-split/--expert-cache-device1combinations are refused:--peer-devicenow refuses both--layer-split(a different second-GPU mode, use one or the other) and--expert-cache-device1..3(both would fillthe same card with an expert cache), with a one-line message each; plus the existing refusals (no
--expert-profile/expert cache, device not visible). Documented in docs/SECOND_GPU.md and in
--help(new lines for the--peer-*flags).--peer-reserve-miband--peer-slotsare the manual knobs; the docs say so and name #216 as the follow-up.
Numbers (2x RTX 3090 + NVLink, IQ3_S, v0.1.36)
--peer-device 1 --peer-reserve-mib 1850)Our private build with the follow-ups (GDN head split etc.) reaches 2657 / 3118 / 3010.
Exactness
Gate:
STRATA_IQ_MT_MIN=1+ our local debugSTRATA_MMQ_NO_STREAMK=1,--adapt-swaps 0, same expert set(single
--expert-cache 6000vs dual--expert-cache 3000+--peer-slots 3950).--peer-device== v0.1.36 single (flashbench gate + 19.5K-token long gate PASS): default unchanged.--peer-device 1== v0.1.36 single (both gates PASS): byte-identical.Independent data
--peer-slots 256 --peer-reserve-mib 1536workaround prefill is at parity and decode is -11-14 %, and thex8 link kills the gain — auto sizing needs #216's lending first.
--peer-deviceautomates.Limits / follow-ups
(fused ring sizing switches off when a peer is configured).
--peer-reserve-mib,--peer-slots) until #216's buffer lending lands.announced on #204; the branch is already on this fork (
preview/gdn-split).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.