mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5528] [Benchmark] 2x RTX 3090 NVLink, Gyro-M all experts in VRAM: 0.1.55 -> 0.1.58 prefill -5 % (engine-side), decode flat; DFlash2 / QSA_SPLIT_ATTN / theta / MTP_STAGE0 A/B #5501
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#5501
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 (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5528
What did you measure, or what went wrong
Bumping a 2-card layer split with every expert in VRAM from v0.2.9 (engine 0.1.55) to v0.2.12 (engine 0.1.58), plus an A/B of the 0.2.12 drafting and decode switches on that shape. Raw data (flashbench JSON + logs, per-arm outputs, engine start logs, configs, scripts): https://gist.github.com/q8atnight/8b3c3af320a2d6e8c63c0531e639c466
146df3c4) + #1937 disk parking, #1099's NVLink decode hand-off, a table-only PLE shard fix, #5495 and #5504 (head312d0cf3). Baseline = the same carries on v0.2.9 (7140e957). Not official releases.agentionai/Qwen3.8-Flash-Next-Gyro-GGUFGyro-M-TQ2_0,--layer-split 24 --trim-stage-weights --resident-experts --kv int8 --max-context 262144 --ple-io ram --spec 4 --spec-min-p 0.7 --mtp … --pipeline-windows 2, F16 mmproj on CUDA0 (v0.2.9: Q8_0),STRATA_ROUTE_TAIL_SKIP=0 STRATA_SPLIT_P2P=1 STRATA_HC_Q8=1. 12,288 + 12,288 slots = 100 % of experts on both versions. 0.1.58 start: 1,678 / 1,685 MiB free, verify window 6 tokens, no LOW warning.1. Full run, v0.2.9 vs v0.2.12 (
fast= server-default GDN pair +STRATA_QSA_SPLIT_ATTN=1, the best arm of §2)Decode is flat (greedy +4.1 %, sampled −3.3 % averaged over the five lengths, inside this box's ±5 % run spread), like #5501. Prefill is 5-13 % slower client-side (−13 % at 1K, −4.5 % at 32K, −9 % at 128K greedy), and it is in the engine: the engine's own
read in N mslines for the same flashbench prompts are 8K 3.19 → 3.36 s (+5.5 %), 32K 7.72 → 8.07 s (+4.5 %), 128K 25.2 → 26.9 s (+7 %). Ruled out by separate arms on one 0.1.58 build (1k/8k/32k, ×3): the F16 picture reader (Q8_0: 1,170 / 2,406 / 4,005 vs 1,173 / 2,410 / 4,027), #5495's server.py (1,170 / 2,402 / 4,016), the--pipeline-windowsmode (pw=0reads the same), and 3eb55adf's layer-major flip (Gyro's APR layers never took the layer-major walk: both versions loglayer-major off for this prompt: an APR (Hadamard-folded) layer;STRATA_PREFILL_LAYER_MAJOR=1gives the same numbers). Prompt chunk 8192 and a 96-slot ring on both. Not bisected. The same direction as #5520 (IQ3_S, experts streamed), but here nothing is staged from the host, and the loss is a flat ~5 % that does not grow with the prompt.2. A/B on 0.1.58 (restart per arm; 1k/8k/32k ×3, decode = mean of the six medians; "gate" = flashbench's 3-prompt greedy identity check against the normal arm; quiz = 10 checked questions, greedy, thinking on)
STRATA_GDN_TC=0 STRATA_GDN_CONVL2=0STRATA_QSA_SPLIT_ATTN=1STRATA_HC_UPMIX=1 STRATA_SELECT_TWO_PASS=1 STRATA_EXPDEC=1--spec-min-p 0.65--draft dflash2 --draft-fallback none --spec 6 --draft-conf 0.35, no MTP, no pipeline)STRATA_MTP_STAGE0=1Paired follow-ups (one engine per arm, alternated, 8K greedy, 1,024 tokens):
STRATA_QSA_SPLIT_ATTN=1: +2.1 % (177.0 / 177.9 vs 175.5 / 172.1, 2 of 2 rounds, 8 runs each).--pipeline-windowstheta 0.35 vs the default 0.2 (STRATA_PIPELINE_SWITCH, no restart, 6 runs per block, 3 pairs): 0.2 wins 3 of 3 (176.7 / 175.6 / 175.7 vs 173.0 / 173.8 / 173.8, −1.4 %). Prefill is level. In the arms above, theta 0.35 always ran second and looked +1-2 % on prefill: that was order, not theta.pw=0vspw=2(same engine): decode 147 vs ~175 = the pipeline is worth +19 % here, prefill is the same. That is why DFlash2 loses on this split: it is +7 % on prefill (no MTP pass over the prompt) but cannot run the pipelined windows.3.
STRATA_MTP_STAGE0=1on a CUDA layer split does not start (3 tries: picture reader on CUDA0, on CUDA1, and with--vram-reserve-mib 1000). The draft layer loads on CUDA0 (1,100 MiB), every expert still fits, then:and the engine exits. Without the variable, the same config starts with ~1.68 GiB free on each card. This is opt-in on NVIDIA (MULTI_GPU.md), so it's a report, not a regression. Log in the gist (
arm-ns0v.out,chain0212.out).4. Small notes
gdn_stack_envturns the GDN pair on for every CUDA Qwen config (setdefault). A config"env"with"0"keeps it off (checked in/proc/<pid>/environ). Worth one line in DETAILS.md for people who want the bitwise path.fastruns for its tool-call and drift fixes, but the box still boots 0.1.55 because the prompt loss outweighs the flat decode.Reproduction status
Reproduced on this one machine: every number comes from the runs in the gist, on 2026-11-07/08. The prefill loss shows in both client-side (flashbench) and engine-side (
read in N ms) timing, and in every 0.1.58 arm. Not reproduced on another box, and not bisected.