mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4285] [Benchmark] 4x V100-SXM2 32 GB (NVLink) + RTX 3090 Ti, Qwen3.8-Flash-Next NVFP4 layer split on 0.2.6: 8 x 262K slots, 2 x 524K, needle 3/3 to 500K #1890
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#1890
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 @andyelka-creator on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4285
What did you measure, or what went wrong
NVFP4 Flash-Next runs on sm_70. Four V100-SXM2 32 GB plus an RTX 3090 Ti as the first stage, layer split, all experts resident. It holds 4–8 slots of 262K (2 of 524K with yarn x2 and KV streaming), finds 3 of 3 needles at 100K, 250K and 500K, and ran a 45-minute 8-client soak with no errors.
STRATA_PIPED_CONCURRENT=1is what makes it usable for several people: a short question next to two 250K prompts ends at 19 s instead of 131–150 s.Hardware
pcie_frac 0.17).Software and model
70;86with-DSTRATA_EXPERIMENTAL_SM60=ON,serve/server.py --engine strata --config ….tools/nvfp4_convert.py+tools/iq_pack.py.nvfp4_verify --experts 8:RESULT: lossless;nvfp4_verify_gguf --samples 24:RESULT: OK. MTP from the same checkpoint (mtp_pack.py --experts q2_0). PLEple-fp8.gguffromMaximilian228/…-NVFP4-Strata@cca8f7f.--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp … --kv int8 --ple-io ram,"parallel"2/4/8,"layer_split"auto or manual.Variants
--kv-resident 32768[6,17,28,38](6 layers on the 3090 Ti)[6,17,28,38]STRATA_PIPED_CONCURRENT=1[8,18,28,38]STRATA_PIPED_CONCURRENT=1[8,18,28,38]STRATA_PIPED_CONCURRENT=1Every V100 stage reports
expert cache N slots …, N of its N profiled pairs(all resident). Peak VRAM per V100 22,642–30,028 MiB.Method
Client: streaming
/v1/chat/completions, temperature 0, unique prefix per request, prompts calibrated with/v1/messages/count_tokens; end-to-end time per request. Needle: three 6-digit codes at 10/50/90 % depth, the answer must name all three. Agent: one session, 14 turns of +8K tokens each, 128 tokens per answer. Soak: 8 workers, 45 min, random mix of 500 / 8K / 100K prompts (60/30/10 %).Results
Many long contexts at once (end of each request, s):
Short next to long:
Throughput, 512 in / 512 out (aggregate tok/s, e2e p50):
8K in / 512 out: F1 41 / 61 / 60 tok/s at 1 / 4 / 8 clients, F5 44 / 64 / 71. Needle: 3/3 at 100K (26–30 s), 250K (61–79 s), 500K (158 s, F3).
Prompt read speed from the engine's own
prompt … read in … mslines (F7, medians): ≤2K 438 tok/s, 2–20K 1,273, 20–60K 2,510, 60–150K 3,866.The 3090 Ti as the first stage: F0 → F1 is 229 → 201 s on 4 × 200K, needle 250K 73 → 61 s, short at 4 clients 142 → 156 tok/s. Fewer layers on it (6 vs 12) speed up decode by 4–10 % and slow long prompts by 8–10 % — the 3090 Ti reads prompts faster than a V100.
F7 extra:
Notes and questions
8192 MiB for up to 4 parked conversations; F7 with 8 agents logged 530 evictions. Could the default follow--paralleland the free RAM?--prompt-cache-every 16384an agent whose turn boundary isn't a prefix of the next prompt re-reads 12–23K tokens per turn (reused 16384, 32768, … of each prompt). We will try 4096 next.--batch 8: the slot sessions take 5.35 GiB of VRAM on CUDA0,the prompt path borrows 1327 CUDA0 cache slots (3.42 GiB), andlayers [0, 8) have experts out of VRAM … the doorbell graph runs the windowsduring prompt reads. 8K × 8 clients is slower than on F5 (4 slots). Is limiting the loan on a helper card worth it?--prefill-pipewas off (default) in all runs; next window sweeps it liketools/calibrate.pydoes.serve/server.pydefaults to--engine mock. Started by hand without the flag, it answers plausibly with no model loaded; we nearly measured the mock. A loud log line or a refusal without--enginewould help people who bypass the launcher.rm_shutdown_adapterwaiting onconsole_lock) while the next variant opened it (rm_init_adapterwaiting on the RM lock).nvidia-smi -pm 1at boot fixed it. Worth a line in the multi-GPU docs.Next on this box: 1 × 1M (yarn x4, KV streaming),
--kv k8v4+--batch-mtp, UD-Q4_K_XL on the F7 split, and F7 +--prefill-pipe+--prompt-cache-every 4096+--conversation-cache-mib 32768+STRATA_ADMIT_SHORT_FIRST=2000.Raw data. We have an archive ready (~260 KB): the configs of all variants, engine startup logs, the engine's per-prompt
read … reused …and conversation-cache lines, per-test JSON andnvidia-smisamples. Happy to attach it here or send it wherever is convenient — just say.Help with the next run would be very welcome. Our window is limited (a shared box, one night), so advice beforehand saves us a lot:
--prefill-pipe: is sweeping0, 1, 768, 1536, 3072, 6144per request (liketools/calibrate.py) the right way on a 5-stage mixed split, or should we run the fullsetup --calibrate?--conversation-cache-mib 32768 --conversation-cache-slots 12 --prompt-cache-every 4096sensible, or is there a better combination?--rope-scaling yarn --rope-scale 4with--kv-resident 32768the right recipe for this model?--slot-save-path) with a layer split: is PR #3286 the way to go on 0.2.6?Reproduction status
Measured locally
@github-actions[bot] commented on GitHub (Oct 27, 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
@andyelka-creator commented on GitHub (Oct 27, 2026):
Update: we now have this box for 48 hours of continuous testing, so we can afford longer runs and a full calibration. Before we plan them, five questions whose answers could change the plan the most:
w4a8prompt path is described for sm_75+. On V100, which pack reads prompts fastest: NVFP4 as we run it, UD-Q4_K_XL, or an IQ quant? Prefill at 2–20K is our main gap (~1.3K tok/s).gpu_roles) for this model with 4–8 slots?setup --calibrateon this 5-stage mixed split (prefill-pipe, pcie_frac, spec_min_p…) and trust its result, rather than sweeping things by hand?--conversation-cache-mib/-slots,--prompt-cache-every,STRATA_ADMIT_SHORT_FIRST, and fewer slots or more? Is finer-grained prefix reuse than the checkpoints possible?We'll post everything here, and the archive is ready whenever you want it.
@github-actions[bot] commented on GitHub (Oct 27, 2026):
Thanks, this follows the format now.
@andyelka-creator commented on GitHub (Oct 27, 2026):
STRATA_SPLIT_MTP_BATCH=1turnsSTRATA_PIPED_CONCURRENToff. The engine says so, the docs don't.Same box and split as above: 3090 Ti + 4× V100,
[8,18,28,38], 8 slots × 262K, NVFP4 pack,--prefill-pipe 3072, conversation cache 32 GiB / 12 slots,--prompt-cache-every 4096. We tried thedocs/MULTI_GPU.mdswitches one at a time, then together. The engine log of the combined run has:The switches one at a time, each on top of
STRATA_PIPED_CONCURRENT=1. Fresh-prompt read speed comes from the engine'sprompt … read in …lines.STRATA_SPLIT_OWN=autoSTRATA_SPLIT_MTP_BATCH=1STRATA_STAGE_TRIM=1STRATA_HANDOFF_PIPE=4STRATA_PREFILL_HELP=1All three winners together (
SPLIT_OWN+MTP_BATCH+STAGE_TRIM) read 8K at 2,209 tok/s. Throughput went up, but the behaviour that piped concurrent gave us was gone:PIPED_CONCURRENTonlySPLIT_OWN+MTP_BATCH+STAGE_TRIMRemoving
MTP_BATCH(SPLIT_OWN+STAGE_TRIM+PIPED_CONCURRENT) brings it back:The full run is still going; I'll post its soak numbers here.
Two requests:
STRATA_SPLIT_MTP_BATCHinMULTI_GPU.mdsaying it turns piped concurrent off. A note in the startup summary would help too, since the line above is easy to miss.MTP_BATCHalone is worth +16% on 8K reads, but we keep piped concurrent for multi-user latency.Also, PR #3286 (session files with a layer split) worked for us on this 5-stage split with one slot:
@andyelka-creator commented on GitHub (Oct 27, 2026):
Follow-up with the full run of
SPLIT_OWN=auto+STAGE_TRIM=1+PIPED_CONCURRENT=1(noMTP_BATCH), same box and settings as above. All tests passed, 0 errors.PIPED_CONCURRENTonlySPLIT_OWN+MTP_BATCH+STAGE_TRIMSPLIT_OWN+STAGE_TRIMSo on this box
MTP_BATCHbuys throughput and much tighter tails, and piped concurrent buys a lower median and short requests that don't wait behind long prompts. We're keeping the third column for interactive use. Being able to have both would be the best of the two.@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.