mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #723] Design question before we build: two lanes on a peer pair that help each other ("mutual help") — welcome upstream, or keep it in a fork? #329
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#329
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?
Originally created by @q8atnight on GitHub (Oct 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/723
Hi Niko — a design question before we write code, not a PR.
Context. Thanks again for merging the peer tier as
--peer-device(#531). On our box (2× RTX 3090 + NVLink, IQ3_S, 262K, Ryzen 3950X, 121 GB DDR4) we now run an experiment along the lines of #127: when a second request arrives, the helper card stops being the lead's peer and becomes its own one-card engine (both processes share theMAP_SHAREDarena); once it has been idle for a while it goes back to being the peer. Each process still serves exactly one sequence, as in your design.What we measured on real agent traffic (two coding-agent chats at 60–98K context with tool calls, not a synthetic bench):
--peer-device)So the two lanes together are only ~15 % faster than one chat on the peer pair, and each chat runs at roughly half speed. That matches what you wrote in #97 ("two at once would roughly halve each"). The loss comes from the cache split: each lane only has its own card's cache, so 11–26 % of the expert work falls back to the CPU. CPU was ~70 % idle at the same time; the misses look bandwidth-bound.
The idea ("mutual help"). Keep two processes with one sequence each, but leave the peer tier on in both directions: each lane is the other's
--peer-device. The two caches hold different experts (deduplicated), so each lane computes an expert on whichever card has it, and both see roughly the peer-pair coverage instead of the CPU fallback. No batching, no shared decode loop; the cost is that each card's GPU time is shared between two sequences, plus the peer sync in both directions. With 3+ cards (72+ GB) all experts would fit on the GPUs, but pairwise peering doesn't scale past an NVLink pair. So the long-term version would probably be one shared expert pool sliced across all cards, which comes close to the multi-slot engine you decided against in #465 / #249.Questions:
We'll measure first on our side (real-workload bench, then a 2-card prototype) and only come back with numbers.
@Niko1221 commented on GitHub (Oct 7, 2026):
The idea is interesting: a helper card that turns into its own engine on the second request. We welcome it as an opt-in, off by default, gated the same way as the peer pair in #531. Please bring numbers first: single request speed unchanged, and the cost to the first card when the second request starts.
@q8atnight commented on GitHub (Oct 7, 2026):
Thanks — numbers first, as asked, and the PR is up: #1461 (opt-in, off by default; without the flags/config block the output is word for word v0.1.40.3 on our gates).
On 2x RTX 3090 + NVLink, IQ3_S, 262K:
--peer-device 1110.8 / 104.2 / 103.2 t/s decode, 2,846 t/s prefill (50K) vs the pair serving one request 119.4 / 102.8 / 103.7, 2,844 (n = 6, alternating restarts);And the honest counter-case: unsloth Q4_K_XL on a layer split gains nothing (the split already uses both cards' bandwidth for one chat). Details in the PR.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.