[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

Open
opened 2026-11-08 07:03:10 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @reaganovo on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5538

Environment

  • 3× Tesla V100-SXM2-16GB (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).
  • 2× Xeon E5-2697 v2, AVX1 only (no AVX2/AVX-512), 8×64 GB DDR3-1066 (measured triad 31 GB/s, copy 38 GB/s).
  • Qwen3.8-Flash-Next, UD-Q3_K_XL (native pack), --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).
  • Drafter: DFlash2 bf16sel pack (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):

window 30.3 ms = GPU compute ~14.7
               + GPU-reach wait 8.4        ← 28% of the window
               + per-layer host 2.0
               + CPU pool 2.5
               + draft 2.0
               + commit/emit 0.45

3. The expert path is not the problem. Across 701 requests, decode does not correlate with the PCIe share:

PCIe expert share n median decode
0–0.3% 36 74.3
0.3–0.6% 260 74.0
0.6–1.0% 296 75.4
1.0–2.0% 99 75.6
>2% 10 57.5

Expert hit rate 98.6%, PCIe cost 0.19–0.33 ms/window. --pcie-frac 0.5/0.55/0.60 and STRATA_FS_SLOTS therefore move
~1 ms of a 30 ms window at most.

4. NUMA is not the problem either. numactl --membind=0,1 leaves 69.5% of the process pages on node1 (arena 52.3 GiB
entirely on node1) while GPU0/1 sit on node0. Forcing --interleave=0,1 did not change the distribution
(engine pins with cudaHostRegister after its own first touch), so the placement is not externally controllable; the
engine 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):

Arm Δ decode
DFlash2 pack selq4 → bf16sel (selq4 selector Q4_0 → bf16) +2.3% (tok/win 2.43→2.59)
--draft-conf 0.20 (sweep had stopped at 0.25) −4.2%
--pipeline-windows 2 −10%
STRATA_DF2_STAGE=first (drafter on first stage) −8%
SPLIT_OVERLAP=1 (see question 1) −7% (wait falls, acceptance falls more)

The two questions

Q1. STRATA_SPLIT_OVERLAP=1 lowers 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/5711 says DFlash2 drafts from the finished window's taps, "so the next window's drafts cannot exist
while 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.

  • #5271 (adaptive --draft-conf per conversation) would help us: our per-request acceptance ranges 44–73%, so one
    static 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.
  • #5147 (--pipeline-windows 2 hang with the drafter) matches our −10% result: on a 3-stage split the overlap never
    pays 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:

--gpu 0,1,2 --layer-split 18,35 --trim-stage-weights --expert-cache auto
--max-context 524288 --ple-io ram --prefill 8192 --pool-workers 11 --pcie-frac 0.5
--vram-reserve-mib 1900 --vram-reserve-later-mib 1024 --lookup-chain 5 --short-read 32
--kv int8 --kv-resident 65536 --spec 4 --spec-min-p 0.5 --draft-cap 0
--draft dflash2 --draft-conf 0.25 --draft-fallback mtp
env: STRATA_DECODE_TIMING=1 (window budget), STRATA_SPLIT_OVERLAP=1 (Q1 arm)

Probe: one 20K-token prompt, temperature 0, 512 output tokens, 5 rounds, first 2 discarded, median.

Originally created by @reaganovo on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5538 ### Environment - 3× Tesla V100-SXM2-16GB (`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). - 2× Xeon E5-2697 v2, **AVX1 only** (no AVX2/AVX-512), 8×64 GB DDR3-1066 (measured triad 31 GB/s, copy 38 GB/s). - Qwen3.8-Flash-Next, UD-Q3_K_XL (native pack), `--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). - Drafter: **DFlash2 `bf16sel` pack** (`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): ``` window 30.3 ms = GPU compute ~14.7 + GPU-reach wait 8.4 ← 28% of the window + per-layer host 2.0 + CPU pool 2.5 + draft 2.0 + commit/emit 0.45 ``` **3. The expert path is not the problem.** Across 701 requests, decode does not correlate with the PCIe share: | PCIe expert share | n | median decode | |---|---:|---:| | 0–0.3% | 36 | 74.3 | | 0.3–0.6% | 260 | 74.0 | | 0.6–1.0% | 296 | 75.4 | | 1.0–2.0% | 99 | 75.6 | | >2% | 10 | 57.5 | Expert hit rate 98.6%, PCIe cost 0.19–0.33 ms/window. `--pcie-frac` 0.5/0.55/0.60 and `STRATA_FS_SLOTS` therefore move ~1 ms of a 30 ms window at most. **4. NUMA is not the problem either.** `numactl --membind=0,1` leaves 69.5% of the process pages on node1 (arena 52.3 GiB entirely on node1) while GPU0/1 sit on node0. Forcing `--interleave=0,1` did not change the distribution (engine pins with `cudaHostRegister` after its own first touch), so the placement is not externally controllable; the engine 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): | Arm | Δ decode | |---|---:| | DFlash2 pack `selq4` → `bf16sel` (selq4 selector Q4_0 → bf16) | **+2.3%** (tok/win 2.43→2.59) | | `--draft-conf 0.20` (sweep had stopped at 0.25) | **−4.2%** | | `--pipeline-windows 2` | **−10%** | | `STRATA_DF2_STAGE=first` (drafter on first stage) | **−8%** | | `SPLIT_OVERLAP=1` (see question 1) | **−7%** (wait falls, acceptance falls more) | ### The two questions **Q1. `STRATA_SPLIT_OVERLAP=1` lowers 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/5711` says DFlash2 drafts from the finished window's taps, "so the next window's drafts cannot exist while 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 - #5271 (adaptive `--draft-conf` per conversation) would help us: our per-request acceptance ranges 44–73%, so one static 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. - #5147 (`--pipeline-windows 2` hang with the drafter) matches our −10% result: on a 3-stage split the overlap never pays 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: ``` --gpu 0,1,2 --layer-split 18,35 --trim-stage-weights --expert-cache auto --max-context 524288 --ple-io ram --prefill 8192 --pool-workers 11 --pcie-frac 0.5 --vram-reserve-mib 1900 --vram-reserve-later-mib 1024 --lookup-chain 5 --short-read 32 --kv int8 --kv-resident 65536 --spec 4 --spec-min-p 0.5 --draft-cap 0 --draft dflash2 --draft-conf 0.25 --draft-fallback mtp env: STRATA_DECODE_TIMING=1 (window budget), STRATA_SPLIT_OVERLAP=1 (Q1 arm) ``` Probe: one 20K-token prompt, `temperature 0`, 512 output tokens, 5 rounds, first 2 discarded, median.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5509
No description provided.