mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5037] [Engine] v0.2.9 Windows CUDA measurements of the Linux-gated parallel-slot and GDN stacks #2331
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#2331
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 @alphastorm on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5037
What v0.2.9 does. In
serve/server.pyat tagv0.2.9(c62d5e3a),parallel_stack_envenables the nine-switch parallel-slot stack (PARALLEL_STACK_ENV:STRATA_CKPT_POOL=1,STRATA_CKPT_POOL_READY=4,STRATA_SLOT_CKPT_MOVE=1,STRATA_SLOT_COPY_DIRECT=1,STRATA_SLOT_COPY_BATCHSYNC=1,STRATA_BATCH_GDN_GROUPS=1,STRATA_BATCH_ATTN_ROWS=1,STRATA_BATCH_SELF_COMMIT=1,STRATA_QSA_SLOTS=1, whenparallel_slots(cfg) >= 2on CUDA Qwen) andgdn_stack_envenables the GDN tensor-core prompt stack (GDN_STACK_CUDA:STRATA_GDN_TC=1,STRATA_GDN_CONVL2=2on CUDAqwen4exp;src/prefill/gdn_tc.cuhkTcScanSmemSplitcoverssm_86 / sm_89 / sm_120) only whenparallel_stack_platform()returns true (sys.platform.startswith("linux"); its docstring notes"Linux only: the stack was run on Linux CUDA; Windows (own host-arena path) and macOS were not."). Becausechild_envinserve/server.pymergescfg.get("env")into the engine environment before callingparallel_stack_envandgdn_stack_env(which useenv.setdefault), setting those variables in the server config'senvpasses them to the stock Windows CUDA 13 engine (0.1.55, build99866a47a2b8+cuda13.0).Method. On Windows 11 with stock Strata
v0.2.9(engine0.1.55), each arm cold-started the stock server from a temporary config copy (envor engine args) for one run per arm, bracketed by first and last baseline runs (1–2%baseline drift; baseline pairs checked withtools/par_analyze.py). Every arm ran stocktools/par_load.pywith explicit token counts and a fixed--seed/--nonceper host (w1:--prompt-tokens 512 --max-tokens 512 --conc 1 --rounds 3;w2:--prompt-tokens 1000 --max-tokens 128 --conc 1,2,4 --rounds 3;w3:--prompt-tokens 32768 --max-tokens 128 --rounds 1at--conc 4on 4 slots or--conc 1on 1 slot) and a client-side 512-token greedy (temperature=0) depth probe at0 / 8K / 32K / 100Kprompt tokens (TTFT= client dispatch to first streamed token; prefilltok/s, decodetok/s, anddrafts_accepted / drafts_offeredMTP acceptance ratio from server/metrics).1. NVIDIA RTX PRO 6000 Blackwell Workstation Edition (96 GB, sm_120, 192 GB RAM, Windows 11).
Qwen3.8-Flash-NextIQ3_S, 262,144 context, 4 batch slots (--parallel 4in setup; engine args--batch 4 --batch-mtp --prefill auto:32768 --ple-io direct --kv int8 --kv-resident 32768 --pool-workers 15 --spec 4 --spec-min-p 0.5):w21,000/128 agg tok/s (c=1 / 2 / 4)w34 × 32K agg tok/s (TTFT p50 s)c0first,c6last)--kv-streaming off(c1, drop--kv-resident 32768)PARALLEL_STACK_ENVvia configenv(c2)--kv-streaming off+PARALLEL_STACK_ENV(c3)GDN_STACK_CUDAvia configenv(c4)c5:--kv-streaming off+ parallel + GDN)PARALLEL_STACK_ENV(c2) raisesw2total output +30% at four concurrent 1,000-token requests (149.8vs114.4–116.6 tok/s, +20% atc=2, +10% atc=1);GDN_STACK_CUDA(c4) cuts 32K–100K TTFT −9% (−9%to−9.5%) and raises 8K–32K prefill +9–10%;--kv-streaming off(c1, omitting--kv-resident 32768;nvidia-smiused VRAM at ready74,830vs59,660 MiB) cuts ready time 14% and leaves+17 GiBmore host RAM available; all three together (c5) raisew2atc=4+35%,4 × 32K+15%, 32K–100K TTFT −13%, prefill +15–18% and decode +4–6%.2. NVIDIA GeForce RTX 5090 (32 GB, sm_120, Windows 11).
Qwen3.8-Flash-Next CoderIQ1_M, 262,144 context, single slot (--prefill auto --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5):w1512/512 agg tok/s (TTFT p50 s)w332K agg tok/s (TTFT p50 s)q0first,q6last)GDN_STACK_CUDAvia configenv(q3)--prefill auto:32768+GDN_STACK_CUDA(q5)GDN_STACK_CUDA(q3) cuts 8K–100K TTFT −7 to −9% and raises 8K–32K prefill +8% (the single 100K decode sample inq3had0.76MTP acceptance vs0.84on base and0.82/244.6 tok/sinq5; needs repeats).3. NVIDIA GeForce RTX 4090 (24 GB, sm_89) + RTX 3090 (24 GB, sm_86) layer split (128 GB RAM, Windows 11).
Qwen3.8-Flash-NextIQ3_S, 262,144 context, single slot (setup--gpu-roles 0=main,1=helperstaging RTX 3090 first on layers 0–23 and display-attached RTX 4090 last as Main on layers 24–47; engine args--layer-split 24 --pipeline-windows 2 --trim-stage-weights --ple-io direct --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5). On this mixed8.6 + 8.9host,src/program/generate.cppskipsstrata::core::apply_nv_defaults(src/core/nv_defaults.cpp:nv_default_env, #3313):w1512/512 agg tok/s (TTFT p50 s)w332K agg tok/s (TTFT p50 s)p0first,p7last)GDN_STACK_CUDAvia configenv(p4)sm_86defaults via configenv(p1)sm_86defaults +GDN_STACK_CUDA(p6)Against the mean of
p0andp7,GDN_STACK_CUDAalone (p4) trims 32K–100K TTFT by about −2% (10.00 / 26.92 s); setting the engine's ninesm_86switches (STRATA_ADAPT_NOWAIT=1,STRATA_ADAPT_LAG=2,STRATA_CPU_IQ_ALL_EXACT1=1,STRATA_SIDE_MIXER=2,STRATA_ATTN_DAILY=1,STRATA_GR_UP75=1,STRATA_GU_SWIGLU=1,STRATA_QSA_ROWS=1,STRATA_B6_MMVQ_ROWS=1) via configenv(p1,p6) raises single-requestw1throughput +7–10% (104.7and108.0vs98.0 tok/s) and decode +6–14% across0 / 8K / 100K(+8% / +13%at8K / 100Kinp1;+6% / +6% / +14%at0 / 8K / 100Kinp6) with TTFT flat.4. Pinned and re-measured in paired blocks. We then pinned the stock dictionaries via config
envin new profiles and measured each against the same host's unpinnedv0.2.9root (the base arm above) in three paired cold-start blocks (A B B A A B, same--seed/--nonce;tools/par_analyze.pygeomeans with 95% intervals), checked greedy identity with stocktools/serve_load.py --save/--compare(temperature=0, 256 tokens, against the firstAblock), and ran our frozen 18-attempt coding evaluation on the pinned profiles:B/A(three blocks)AblockPARALLEL_STACK_ENV+GDN_STACK_CUDA+--kv-streaming off)w2total output1.113 / 1.293 / 1.348atc=1 / 2 / 4(c=495% CI[1.316, 1.376]);w34 × 32K1.131;w2TTFT p950.804 / 0.764 / 0.683; cold decode1.000at 0 and1.022at 100KGDN_STACK_CUDA+--kv-streaming off+--kv-grow)0.914at 32K and0.911at 100K; 100K decode0.973(pairs1.021 / 0.981 / 0.920);w11.025;w332K1.084sm_86switches +GDN_STACK_CUDA)1.057 / 1.065 / 1.091 / 1.114at0 / 8K / 32K / 100K; cold TTFT0.948–0.996;w1only1.039 [1.033, 1.045](the single-sample arms above showed+7–10%)w1result missed our pre-registered>= 1.05bar)Limits. No KL-divergence run on Windows. Greedy identity is informative only on the four-slot PRO; the single-slot lanes are not greedy-reproducible across cold starts even when unpinned. The coding evaluation is one 18-attempt run per profile. The PRO and RTX 5090 pinned profiles are now the defaults on those hosts; the pair keeps its unpinned profile.
Ask. Please consider enabling
PARALLEL_STACK_ENV(parallel_stack_env) andGDN_STACK_CUDA(gdn_stack_env) on Windows CUDA inserve/server.py(parallel_stack_platform), or noting in the Windows /serve/server.pydocs that the fullPARALLEL_STACK_ENVandGDN_STACK_CUDAdicts can be set via the configenvkey on Windows CUDA. We are happy to run more paired blocks, KL-divergence checks or other arms on these three Windows hosts if useful.@alphastorm commented on GitHub (Nov 3, 2026):
Update (2026-11-03): the RTX 4090 + RTX 3090 pair now runs the pinned profile too. We accepted its decode gain despite the
w1miss and ran our full requalification on the pinned pair profile (enginesm_86switches +GDN_STACK_CUDAvia configenv, engine0.1.55); every gate passed. The coding evaluation scored 15/18, the same as the unpinned profile (all misses on one tool-loop task, no protocol errors); restart readiness went from 55.4–55.6 s to 43.5–43.9 s, and the scored evaluation batch from 974.9 s to 821.8 s. All three hosts now set these dictionaries through configenv. The ask above stands; on the pair it also touches #3313 (the engine skips itssm_86defaults on a mixedsm_86+sm_89pair).