mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5538] [Engine] 3-stage layer split (3x V100-SXM2-16GB, sm_70, one orphan card): the 8.4 ms/window hand-off is the remaining gap, and STRATA_SPLIT_OVERLAP lowers the wait but costs more acceptance #5509
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#5509
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 @reaganovo on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5538
Environment
sm_70, CUDA 12.8 build), PCIe 3.0 x16 through adapter cards, no NVLink.GPU0/GPU1 are PCIe peers (measured 10.28 GB/s); GPU2 has no peer access to either (SYS, across QPI).
--layer-split 18,35, 512K context,--kv int8 --kv-resident 65536,--prefill 8192,--pool-workers 11,--pcie-frac 0.5, engine 0.1.58 (app 0.2.12).bf16selpack (34ca17fe…),--spec 4 --lookup-chain 5(window 8),--draft-conf 0.25,--draft-cap 0 --draft-fallback mtp.What we measure (all from the engine's own counters)
1. Decode speed. 20K-token probe (5 rounds, first 2 discarded): MED 85.40 tok/s, best 87.40, tok/win 2.59.
Long-context production traffic (701 requests, mean 98K context): median 74.6 tok/s.
2. Window budget (
STRATA_DECODE_TIMING, 20–60K band, averaged over 740 requests):3. The expert path is not the problem. Across 701 requests, decode does not correlate with the PCIe share:
Expert hit rate 98.6%, PCIe cost 0.19–0.33 ms/window.
--pcie-frac0.5/0.55/0.60 andSTRATA_FS_SLOTStherefore move~1 ms of a 30 ms window at most.
4. NUMA is not the problem either.
numactl --membind=0,1leaves 69.5% of the process pages on node1 (arena 52.3 GiBentirely on node1) while GPU0/1 sit on node0. Forcing
--interleave=0,1did not change the distribution(engine pins with
cudaHostRegisterafter its own first touch), so the placement is not externally controllable; theengine also reports
NUMA split on, but this model's experts come from the arena path: memory is not placed per node (known limitation).5. What we tried and what it cost (each A/B/A, 20K probe, ±1.5% noise floor):
selq4→bf16sel(selq4 selector Q4_0 → bf16)--draft-conf 0.20(sweep had stopped at 0.25)--pipeline-windows 2STRATA_DF2_STAGE=first(drafter on first stage)SPLIT_OVERLAP=1(see question 1)The two questions
Q1.
STRATA_SPLIT_OVERLAP=1lowers the hand-off wait but loses more acceptance. Expected, or a defect?On this box (3-stage layer split, DFlash2, no pipeline windows): wait drops (the hand-off is genuinely overlapped), but
conditional acceptance falls enough that net decode is −7% (5 paired runs, 0/5 and 1/5 wins in two independent
batches; it is already in your docs' "not recommended" list for us). Since the mechanism is exactly the one we need
(8.4 ms/window = 28%), we would like to know: is the acceptance loss a known consequence of overlapping the stages
(the drafter reads taps that are no longer final), or an implementation artifact that could be fixed? A one-line
"expected / not expected" is enough for us to stop looking.
Q2. Is there a drafter interface that does not require the finished window's taps?
generate.cpp:5693/5711says DFlash2 drafts from the finished window's taps, "so the next window's drafts cannot existwhile this one still runs". That couples drafter latency to the window and forbids window-level overlap on a layer
split. Is a variant conceivable where the drafter reads only the last committed token's hidden state (or a
target-agnostic drafter such as n-gram/lookup), accepting lower acceptance in exchange for overlap? We are not asking
for work; we are asking whether that direction is considered viable, so we can price it.
Related
--draft-confper conversation) would help us: our per-request acceptance ranges 44–73%, so onestatic value is provably wrong for part of the traffic. Our data (740 requests, accept/offered 57.9%→64.1% as the
window widens) is available if useful.
--pipeline-windows 2hang with the drafter) matches our −10% result: on a 3-stage split the overlap neverpays because each stage holds only 13–18 layers (2–5 ms of work).
What we are not claiming
We are not claiming a kernel problem (dp4a reaches 544 GB/s = 66% of a measured 821 GB/s HBM; a dequant→fp16→mma
rewrite is 0.18× at our window width T≈2.6). We are not claiming a regression. We are asking for two yes/no answers on
the hand-off and the drafter interface.
Reproduction
Config (private paths elided), engine 0.1.58:
Probe: one 20K-token prompt,
temperature 0, 512 output tokens, 5 rounds, first 2 discarded, median.