mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3703] [Benchmark] Unequal NVIDIA pair (RTX 3060 12 GB + RTX 5060 Ti 16 GB) on two hosts: auto in both card orders and a manual layer_split sweep with --trim-stage-weights (i7, 64 GB, file tier) and the AVX-only Xeon with every expert in RAM,… #1542
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#1542
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 @Norhiro on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3703
What did you measure, or what went wrong
This answers the TEST_REQUESTS row "Two NVIDIA cards of different sizes, in both card orders, with
--layer-split auto", and adds a manuallayer_splitsweep. The same two cards were measured on two hosts: (A) an i7 where the 4-bit model does not fit in RAM, and (B) an AVX-only Xeon (STRATA_ISA_FLOOR=avx) where every expert sits in RAM. Host B only repeats the single card and the best split from host A.A. i7-7800X, 64 GB RAM (experts partly on the NVMe file tier)
Hardware. RTX 3060 12 GB (sm_86, PCIe Gen3 x16, 12.3 GB/s H2D) + RTX 5060 Ti 16 GB (sm_120, Gen3 x8, 6.9 GB/s H2D); neither card drives a display. i7-7800X (AVX-512 without VNNI, so Strata's AVX2 expert kernels), 62 GiB RAM (DDR4-2666, 4 channels), model on a KIOXIA BG4 NVMe (Gen3 x4). Fedora 44, driver 615.71.09.
Software. Engine
strata 0.1.47built from thev0.2.2tag (011c9e60), CUDA 13.3, archs 86;120, ggml-march=native.serve/server.pyandtools/strata_bench.pyfrom the same tag (the Python environment is an older setup venv).Model and settings (all runs). Qwen3.8-Flash-Next UD-Q4_K_XL,
--resident-budget-gib 38(about 26 GiB of experts read from the NVMe file tier),--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <rt> --max-context 40960 --kv int8,STRATA_ROUTE_TAIL_SKIPdefault (on). Every two-GPU run adds--vram-reserve-later-mib 1400; without it the last card had 68 MiB free and the engine exited on a verify window capture (#3702).Command.
python tools/strata_bench.py --config <cfg> --long, once with the model files dropped from the page cache before the server starts (cold) and once more on a fresh server start (warm). Each test is 3 runs (chat: 3 questions x 3 runs, 100 new tokens). Medians below, cold / warm.Columns: (1) 5060 Ti alone; (2) auto, 3060 → 5060 Ti; (3) auto, 5060 Ti → 3060 (
gpu_order: as_given); (4)-(6) manual 12 / 24 / 30 + trim."manual N + trim" is
"layer_split": "N"with the 3060 first (layers 0 to N-1) and--trim-stage-weights. VRAM free after loading in the two-GPU runs: 3060 about 360 MiB, 5060 Ti about 770 MiB (in the reversed order: 5060 Ti 260 MiB, 3060 870 MiB).What we see on A
autoon this pair barely beats one card. With the faster card last (the auto order), prompts are 8-24% slower than the 5060 Ti alone and decode is within run-to-run spread. The reversed order is worse on long prompts (32K 442 / 404 against 538 / 541). For the reversed order, auto first wanted K=47 and the #2644 share rule moved it to K=35.--trim-stage-weightsbeats one card. With 24 / 24 or 30 / 18 layers: chat decode about 1.4-2x one card (steady at 22-26 tok/s cold and warm), agent decode +20-34%, agent first token 0.2-1.7 s shorter, 32K prompts +3-11%, 4K/16K prompts from 14% slower to 5% faster. The trimmed runs hold about 5,600 expert slots on the two cards together against 4,180 under auto without trim.--trim-stage-weights, so the effect of trimming and the effect of the layer count are not separated.a prompt chunk of 8192 tokens lends ~1,190 cache slots to the prompt path, but only 0 of their experts fit in RAM(single card and split alike); we did not try a larger budget or a smaller--prefill.B. Xeon E5-2630 v2 (AVX only), 252 GB installed, engine bound to one node of about 128 GB (every expert in RAM)
Hardware. The same RTX 3060 and RTX 5060 Ti, both on CPU 0's root ports at Gen3 x8 (H2D 6.0 / 6.7 GB/s); neither drives a display. 2x Xeon E5-2630 v2 (Ivy Bridge-EP, AVX without AVX2), DDR3, 251.8 GiB in two NUMA nodes; the server runs bound to node 0 (CPUs and memory, the cards' node, 124 GiB free). Fedora 44, driver 610.57.04.
Software. Engine
strata 0.1.47from the samev0.2.2tag, built with-DSTRATA_ISA_FLOOR=avx, CUDA 13.3, archs 86;120; server and bench from the same tag. No illegal-instruction or other engine errors.Settings. As in A, but without
--resident-budget-gib(all 71.7 GiB of experts in RAM, nothing read from the file tier). Cold / warm as in A (the cold start drops the model files from the page cache).What we see on B
Not tested: correctness checks (needle, HumanEval) on the split runs; auto with
--trim-stage-weights; the reversed order with a manual split; auto and other manual splits on host B; more than one start per configuration (no A/A restart pair, so differences under ~10% are not established); long soak; batching; Windows.Raw
strata_bench.pyoutput folders (README.md, results.json, engine-log-excerpt.txt) are available for every run; I can open a PR with them underbench/results/if that is wanted.Reproduction status
Measured locally: 2026-10-22, one cold and one warm server start per configuration, 0 failed requests in all eight configurations shown (six on host A, two on host B).
@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.