mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5520] [Engine] Prefill regression 0.1.5x vs 0.1.42 on 2x3090 layer split - grows with context (x2 at 131K), decode unaffected #5489
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#5489
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 @mmol67 on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5520
Hardware: 2x RTX 3090 (24 GB, sm_86), NVLink, 128 GB RAM. 0.1.58 (clean build from origin/main,
CUDA 13.0) vs 0.1.42 (engine/bin-backup-0142, CUDA 12.8). Same model/config both.
Model: Qwen3.8-Flash-Next IQ3_S (native pack ~50 GB, PLERDAM bf16), expert-profile
qwen3.8-flash-next-unc, --expert-cache auto, --spec 4, default layer split 23/24, DFlash2 decode.
Served bench (1 warmup + 3 measured, fresh prompt slice per run, cache_n=0, 256 gen tokens):
Decode is equal or better on 0.1.58 (118 -> 131 tok/s at 4K). Draft accept ~60-65% both.
Instrumentation (probe in prefill.cpp, STRATA_PREFILL_TIMING):
per 32K chunk in BOTH engines. The real cost is expert staging: "host staging" (ms_experts_host)
2.7-3.3 s per chunk on 0.1.58 vs 68 ms on 0.1.42, plus ~10 s of stall per chunk boundary
(trace: chunk 0 -> 1 = 17.97 s with 7.9 s chunk wall).
so chunk count grows linearly with prompt length -> regression grows with ctx. 1K ctx (single
tiny chunk, routed-only path) is unaffected - matches stream_all_min() = 1024.
Knobs tried, none restore 0.1.42 speed: --prefill 32768/8192, STRATA_PREFILL_LAYER_MAJOR=1,
STRATA_PLE_BATCH=0, STRATA_PREFILL_STREAM_AHEAD=0.
Related: #5414 (same model/split, stalls in "reading the prompt"), #5462/#5480 (expert-cache <->
prefill-chunk coupling), #5440 (split staging).
Question: which 0.1.5x change made the split prefill expert staging serial/stall-prone per chunk
boundary? Happy to run A/Bs or provide timing.txt/runs.json.
@github-actions[bot] commented on GitHub (Nov 7, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
[GH-ISSUE #5520] Prefill regression 0.1.5x vs 0.1.42 on 2x3090 layer split - grows with context (x2 at 131K), decode unaffectedto [GH-ISSUE #5520] [Engine] Prefill regression 0.1.5x vs 0.1.42 on 2x3090 layer split - grows with context (x2 at 131K), decode unaffected@q8atnight commented on GitHub (Nov 7, 2026):
A smaller data point from another 2× RTX 3090 NVLink layer split, at a narrower range (0.1.55 → 0.1.58) and with every expert resident in VRAM, so nothing is staged from the host.
--layer-split 24 --trim-stage-weights --resident-experts --kv int8 --ple-io ram --spec 4 --mtp --pipeline-windows 2, 12,288 + 12,288 slots on both versions, prompt chunk 8192 with a 96-slot ring on both. Local sm_86 builds, CUDA 13.0.read in N msfor the same flashbench prompts (no reuse): 8K 3.19 → 3.36 s (+5.5 %), 32K 7.72 → 8.07 s (+4.5 %), 128K 25.2 → 26.9 s (+7 %). Client-side prefill 2,491 → 2,363 (8K), 4,135 → 3,951 (32K), 5,088 → 4,618 tok/s (128K). Decode is flat.STRATA_PREFILL_LAYER_MAJOR=1changes nothing here either, but for a different reason: Gyro's APR (Hadamard-folded) layers never take the layer-major walk, on 0.1.55 or 0.1.58 (layer-major off for this prompt: an APR (Hadamard-folded) layer).@github-actions[bot] commented on GitHub (Nov 7, 2026):
Thanks, this follows the format now.
@mmol67 commented on GitHub (Nov 7, 2026):
Your datapoint cleanly separates the two shapes. Yours runs
--resident-experts(zero host staging) and still loses a flat ~5 % between 0.1.55→0.1.58; mine streams experts from host (IQ3_S native pack ~50 GB,--expert-cache auto, experts don't fit VRAM), and the probe pins my loss onms_experts_host2.7–3.3 s per 32K chunk plus the ~10 s chunk-boundary stall — the staging path, which matches #5462/#5480 rather than your #5528 shape.Worth flagging for the bisect: mine is already bisected — 0.1.42 clean, regression present at 0.1.44.1, i.e. ~12 releases before the 0.1.56–58 window. So these look like two independent commits: something in 0.1.43–0.1.44.1 that made split-prefill expert staging serial/stall-prone, and a separate ~5 % per-token cost in 0.1.56–58 that survives full VRAM residency.
Checked the APR point against my own engine log: this model never takes the APR exclusion — there are no
APR (Hadamard-folded)lines, and it logslayer-major prefill is on for this layer split. What actually disables it here is VRAM:layer-major off for this prompt: no VRAM for a super-chunk (357 MiB free)— on 2×3090 with the 23/24 split there is no headroom for a super-chunk, so layer-major falls off on its own. That also explains whySTRATA_PREFILL_LAYER_MAJOR=1changed nothing on my box: it was already on; the limiter is VRAM headroom for the super-chunk, not the flag.