[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

Closed
opened 2026-11-04 01:52:06 +07:00 by bsakaguchi · 1 comment
Owner

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 manual layer_split sweep. 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.47 built from the v0.2.2 tag (011c9e60), CUDA 13.3, archs 86;120, ggml -march=native. serve/server.py and tools/strata_bench.py from 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_SKIP default (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.

(1) (2) (3) (4) (5) (6)
layers 3060/5060Ti -/48 19/29 13/35 12/36 24/24 30/18
cache slots -/2822 1837/2343 1078/3104 2888/2694 2529/3106 2336/3291
chat decode tok/s 13.0/16.0 13.6/19.4 21.8/17.8 24.9/23.1 24.8/22.4 26.1/23.7
chat TTFT s 2.15/2.12 1.80/1.98 1.42/1.95 1.30/1.36 1.28/1.33 1.24/1.30
4K tok/s 268/268 203/200 214/206 222/220 236/239 281/239
16K tok/s 529/499 421/441 370/369 431/433 454/471 509/494
32K tok/s 588/588 538/541 442/404 556/545 639/653 606/620
agent TTFT s 14.0/14.0 16.0/17.0 17.1/17.5 16.6/17.0 13.8/12.3 13.3/12.8
agent decode tok/s 20.7/20.1 23.8/22.5 24.3/18.4 22.4/22.3 27.3/27.0 26.4/24.3
failed requests 0 0 0 0 0 0

"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

  1. auto on 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.
  2. A manual split with --trim-stage-weights beats 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.
  3. The auto split gives the faster card too many layers here, as in #2644: the 12 / 36 manual split reads prompts about as slowly as auto, while 24 / 24 and 30 / 18 are clearly faster. We did not run auto with --trim-stage-weights, so the effect of trimming and the effect of the layer count are not separated.
  4. The file tier dominates. Each 15-minute cold suite reads about 860-910 GiB from the NVMe (about 1 GB/s on average; a 100-token chat answer reads 1-12 GiB and waits 0.3-12.7 s on 140-2,700 file fetches). A second GPU barely reduces it (860 → 912 GiB with auto). Every run also logs 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.47 from the same v0.2.2 tag, 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).

5060 Ti alone manual 24 + trim
expert cache slots, 3060 / 5060 Ti — / 2,745 2,488 / 3,029
chat decode, tok/s 21.7 / 21.3 28.1 / 30.0
chat first token, s 1.87 / 2.00 1.46 / 1.41
4K prompt, tok/s 345 / 346 348 / 348
16K prompt, tok/s 689 / 689 848 / 845
32K prompt, tok/s 698 / 698 1,017 / 1,017
agent turn first token, s 11.6 / 11.6 11.3 / 11.3
agent decode, tok/s 23.6 / 27.2 35.3 / 35.2
failed requests 0 0

What we see on B

  1. With every expert in RAM, the manual split helps more and costs nothing on prompts. Against the 5060 Ti alone: chat decode +29-41%, chat first token 22-30% shorter, agent decode +29-50%, 16K prompts +23%, 32K prompts +46%; 4K prompts and the agent turn's first token are unchanged (+1%, -2%). On A the same split made 4K/16K prompts up to 14% slower; there the file tier was the limit.
  2. Cold and warm are the same on B (no file-tier reads), and the AVX-only Xeon beats the i7 card for card (5060 Ti alone: chat decode +33-67%, prompts +19-30%). RAM that holds every expert matters more than the newer CPU and AVX2/AVX-512 kernels here.

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.py output folders (README.md, results.json, engine-log-excerpt.txt) are available for every run; I can open a PR with them under bench/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).

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 manual `layer_split` sweep. 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.47` built from the `v0.2.2` tag (`011c9e60`), CUDA 13.3, archs 86;120, ggml `-march=native`. `serve/server.py` and `tools/strata_bench.py` from 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_SKIP` default (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. | | (1) | (2) | (3) | (4) | (5) | (6) | |---|---|---|---|---|---|---| | layers 3060/5060Ti | -/48 | 19/29 | 13/35 | 12/36 | 24/24 | 30/18 | | cache slots | -/2822 | 1837/2343 | 1078/3104 | 2888/2694 | 2529/3106 | 2336/3291 | | chat decode tok/s | 13.0/16.0 | 13.6/19.4 | 21.8/17.8 | 24.9/23.1 | 24.8/22.4 | **26.1/23.7** | | chat TTFT s | 2.15/2.12 | 1.80/1.98 | 1.42/1.95 | 1.30/1.36 | 1.28/1.33 | **1.24/1.30** | | 4K tok/s | 268/268 | 203/200 | 214/206 | 222/220 | 236/239 | **281**/239 | | 16K tok/s | **529**/499 | 421/441 | 370/369 | 431/433 | 454/471 | 509/494 | | 32K tok/s | 588/588 | 538/541 | 442/404 | 556/545 | **639/653** | 606/620 | | agent TTFT s | 14.0/14.0 | 16.0/17.0 | 17.1/17.5 | 16.6/17.0 | 13.8/**12.3** | **13.3**/12.8 | | agent decode tok/s | 20.7/20.1 | 23.8/22.5 | 24.3/18.4 | 22.4/22.3 | **27.3/27.0** | 26.4/24.3 | | failed requests | 0 | 0 | 0 | 0 | 0 | 0 | "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** 1. **`auto` on 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. 2. **A manual split with `--trim-stage-weights` beats 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. 3. **The auto split gives the faster card too many layers here**, as in #2644: the 12 / 36 manual split reads prompts about as slowly as auto, while 24 / 24 and 30 / 18 are clearly faster. We did not run auto with `--trim-stage-weights`, so the effect of trimming and the effect of the layer count are not separated. 4. **The file tier dominates.** Each 15-minute cold suite reads about 860-910 GiB from the NVMe (about 1 GB/s on average; a 100-token chat answer reads 1-12 GiB and waits 0.3-12.7 s on 140-2,700 file fetches). A second GPU barely reduces it (860 → 912 GiB with auto). Every run also logs `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.47` from the same `v0.2.2` tag, 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). | | 5060 Ti alone | manual 24 + trim | |---|---|---| | expert cache slots, 3060 / 5060 Ti | — / 2,745 | 2,488 / 3,029 | | chat decode, tok/s | 21.7 / 21.3 | **28.1 / 30.0** | | chat first token, s | 1.87 / 2.00 | **1.46 / 1.41** | | 4K prompt, tok/s | 345 / 346 | **348 / 348** | | 16K prompt, tok/s | 689 / 689 | **848 / 845** | | 32K prompt, tok/s | 698 / 698 | **1,017 / 1,017** | | agent turn first token, s | 11.6 / 11.6 | **11.3 / 11.3** | | agent decode, tok/s | 23.6 / 27.2 | **35.3 / 35.2** | | failed requests | 0 | 0 | **What we see on B** 5. **With every expert in RAM, the manual split helps more and costs nothing on prompts.** Against the 5060 Ti alone: chat decode +29-41%, chat first token 22-30% shorter, agent decode +29-50%, 16K prompts +23%, 32K prompts +46%; 4K prompts and the agent turn's first token are unchanged (+1%, -2%). On A the same split made 4K/16K prompts up to 14% slower; there the file tier was the limit. 6. **Cold and warm are the same on B** (no file-tier reads), and the AVX-only Xeon beats the i7 card for card (5060 Ti alone: chat decode +33-67%, prompts +19-30%). RAM that holds every expert matters more than the newer CPU and AVX2/AVX-512 kernels here. **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.py` output folders (README.md, results.json, engine-log-excerpt.txt) are available for every run; I can open a PR with them under `bench/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).
Author
Owner

@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.

<!-- gh-comment-id:6495760458 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1542
No description provided.