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#2374
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 @sencerio on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5089
TL;DR — On the same machine, same engine build and same flags, switching from layer split to peer tier made
decode 0.905× and prefill 0.768× (slower on both). The prefill gap grows with context: roughly even at 8K,
~0.7× at 32K, ~0.65× at 100K. NVLink was in use in peer mode (~4 GB/s Rx) but did not make up for the extra
work on GPU0. This contradicts the numbers in #204, which were taken on a much older engine (0.1.24 branch).
Setup
nvidia-smi topo -mshows NV4, 4 links × 14 GB/s), both PCIe 4.0 x16--kv-resident 32768lives in pinned host memory. A dual-channel desktop with the same two 3090s will see lower absolute numbers in both arms, and the peer-vs-split ratio may differ because the two modes pull different amounts of expert traffic over host memory and PCIe/NVLink.7695859a), self-built, CUDA sm_86--kv int8at the time of this test,--kv-resident 32768,--expert-cache auto,--spec 4, MTP speculative decoding on,STRATA_ROUTE_TAIL_SKIP=0(no expert skipping), thinking on/off as a cell--pipeline-windows 2 --adapt-async 1 --resident-experts)--peer-device 1 --peer-reserve-mib 1600instead of layer split(peer mode disables pipeline-windows/adapt-async by design; an earlier ablation showed those two are within noise)
parallel 1), nothing else on the GPUs, service restarted between armsMethod
bench_depth.py(below): prompts are random slices of Strata's own docs padded to the target depth, each run prefixed witha random token so the prefix cache never hits; task = write a Python function + tests,
max_tokens 800.Results (medians of 3)
(8K/off on the split arm was the first request after a restart and includes cold start; excluded from the prefill average.)
Why peer loses here (our reading)
Peer tier keeps all 48 attention/dense layers on GPU0 and only farms experts out to GPU1, so GPU0 does the whole
sequence-length-dependent part of prefill. Layer split gives each GPU half the layers and interleaves chunks, so prefill
parallelises across both cards. That matches the shape of the gap (none at 8K, large at 100K). Decode is memory-bound and
the extra hand-off costs 5–9%. NVLink traffic during layer-split inference measured 0 KiB/s (the hand-off goes through
pinned RAM, a few hundred KB per window), so the bridge is irrelevant for split and only partially helpful for peer.
What we did not test
--kv fp16(we switched to it later; it slows prefill 14–19% on both modes and should not change the comparison).parallel 2): peer mode did run fine with--batch-mtpin an earlier IQ3_XXS setup (twoconcurrent requests summed to ~106–117 tok/s vs 105–109 single), but that was a different quant and engine (0.1.42).
Reproduce
python3 bench_depth.py <label> --depths 8000,32000,64000,100000 --reps 3against each arm's server; compare the tworesults_<label>.json. Raw logs for both arms are below.bench_depth.py
bench_layersplit.log (baseline arm)
bench_peer.log (peer arm)
Measured 2026-10-22; written up 2026-11-03. Related: #204 (earlier peer-vs-split numbers on 0.1.24), #110 (peer tier), #4495 (standard benchmark report fields).
@Niko1221 commented on GitHub (Nov 5, 2026):
Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.
The Strata project