[GH-ISSUE #4610] [Benchmark] record the host side in the standard report: measured PCIe per card, NUMA, memlock, GPU temperature and power #2089

Open
opened 2026-11-04 01:56:35 +07:00 by bsakaguchi · 25 comments
Owner

Originally created by @fioruccione on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4610

Summary so far (Nov 5), for anyone arriving now. The thread got long, so here is the short version.

What this issue asks: that a benchmark result explains itself. Two machines with the same cards can differ by a lot, and the reason is usually the rest of the box. The engine already prints most of it at start; the report just doesn't keep it. The list as it stands: the measured link per card, RLIMIT_MEMLOCK and any mlock failure, NUMA nodes, the CPU's ISA line, the values the engine picked on its own (layer-split K, pool workers), the cache hit rate, which prefill path ran, and the expert formats actually in the file (the file name doesn't say). Read-only, no new benchmark.

Why, in a few numbers from the thread:

  • Fewer CPU workers alone cost up to 21% decode on two cards and 31% on one (here, here), and no report would show it.
  • A second card gave +4% decode on my box and +27/+32% in #4603.
  • layer_split: auto moved between starts on the same config, and the link probe can read half after a sleep (@udqe, here and here).

The longer comments below are mostly my own A/B runs; where I got things wrong, the correction is here. No PR yet: if the maintainers think extensions is the right place, I'm happy to write one.

Area

Benchmark

What do you want to do?

Record in the standard report the host facts that change how the engine runs, next to the cards. Today hardware has the GPU names, VRAM and power limit, the CPU name, total RAM and the drive (hardware() in strata_cli/bench_facts.py). Three things I hit on my machine in the last days are not in it:

  • The PCIe link. My two RTX 4060 Ti are PCIe 4.0 x8, and the engine measures them at 13.3 GB/s (layer split auto: CUDA0 link 13.3 GB/s, probe best of four 11.6-13.3), about what a Gen3 x16 slot gives. The generation alone is misleading twice: by spec they are "Gen4", and nvidia-smi read at idle says pcie.link.gen.gpucurrent 1, because the link drops to Gen1 when idle. Only the measured figure says what the experts get (#3976 is about this).
  • ulimit -l. On v0.2.7.1 the PLE table goes to RAM and mlock fails here with a 15.7 GiB limit (#3659). The line is in the engine.log of my standard run, but nothing in results.json says it, and the same machine with a higher limit would be a different run.
  • NUMA. Mine is one node, so it doesn't matter here, but #4495's machine has one card per socket.

Suggested, in an extensions.host block or next to hardware.gpus:

  • per card: PCIe generation and width at max (nvidia-smi), and the link the engine measured, in GB/s;
  • the NUMA node count, and the node each card hangs from when there is more than one;
  • RLIMIT_MEMLOCK, and whether an mlock failed in the engine log;
  • optional: GPU temperature and power, min/median/max over the run (the server already exports both, see #4496). This one needs sampling during the run, so it is more work than the others, and it can wait. It matters most on laptops and mini PCs, where the card slows down when it gets hot and the same machine gives different numbers cold and warm.

All of these are read, nothing on the machine is changed. The split topology and the expert residency per stage are #4495, so I left them out. RAM channels and speed would help too, but on Linux they need root (dmidecode), so I'd put them in missing rather than ask for sudo.

I'm not asking for a full hardware benchmark (STREAM, nvbandwidth and fio already exist), only for the facts that explain why two machines with the same cards give different numbers. A result without these variables can mislead whoever compares it, me included: on my machine the same cards would look like "Gen4" in one report and "Gen1" in another, and run at the speed of neither.

What do you do today instead?

I write these by hand in the README and attach the engine log.

Hardware: 2x RTX 4060 Ti 16 GB (PCIe 4.0 x8 each, layer split), Threadripper PRO 3975WX (1 NUMA node), 128 GB DDR4-2667, Pop!_OS 24.04. Version: v0.2.7.1 (46c152a1, engine 0.1.53), built here with CUDA 12.6 for sm_89. Model: Flash-Next UD-IQ4_XS.

I did this with an AI coding assistant: it read the bench code and my logs and drafted this text. The idea and the numbers I checked are mine.

Originally created by @fioruccione on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4610 > **Summary so far (Nov 5), for anyone arriving now.** The thread got long, so here is the short version. > > **What this issue asks:** that a benchmark result explains itself. Two machines with the same cards can differ by a lot, and the reason is usually the rest of the box. The engine already prints most of it at start; the report just doesn't keep it. The list as it stands: the measured link per card, `RLIMIT_MEMLOCK` and any mlock failure, NUMA nodes, the CPU's ISA line, the values the engine picked on its own (layer-split K, pool workers), the cache hit rate, which prefill path ran, and the expert formats actually in the file (the file name doesn't say). Read-only, no new benchmark. > > **Why, in a few numbers from the thread:** > - Fewer CPU workers alone cost up to 21% decode on two cards and 31% on one ([here](https://github.com/Niko1221/Strata/issues/4610#issuecomment-6510484796), [here](https://github.com/Niko1221/Strata/issues/4610#issuecomment-6642881834)), and no report would show it. > - A second card gave +4% decode on my box and +27/+32% in #4603. > - `layer_split: auto` moved between starts on the same config, and the link probe can read half after a sleep (@udqe, [here](https://github.com/Niko1221/Strata/issues/4610#issuecomment-6501415137) and [here](https://github.com/Niko1221/Strata/issues/4610#issuecomment-6532493954)). > > The longer comments below are mostly my own A/B runs; where I got things wrong, the correction is [here](https://github.com/Niko1221/Strata/issues/4610#issuecomment-6643267746). No PR yet: if the maintainers think `extensions` is the right place, I'm happy to write one. ### Area Benchmark ### What do you want to do? Record in the standard report the host facts that change how the engine runs, next to the cards. Today `hardware` has the GPU names, VRAM and power limit, the CPU name, total RAM and the drive (`hardware()` in `strata_cli/bench_facts.py`). Three things I hit on my machine in the last days are not in it: - **The PCIe link.** My two RTX 4060 Ti are PCIe 4.0 x8, and the engine measures them at 13.3 GB/s (`layer split auto: CUDA0 link 13.3 GB/s`, probe best of four 11.6-13.3), about what a Gen3 x16 slot gives. The generation alone is misleading twice: by spec they are "Gen4", and `nvidia-smi` read at idle says `pcie.link.gen.gpucurrent` 1, because the link drops to Gen1 when idle. Only the measured figure says what the experts get (#3976 is about this). - **`ulimit -l`.** On v0.2.7.1 the PLE table goes to RAM and `mlock` fails here with a 15.7 GiB limit (#3659). The line is in the engine.log of my standard run, but nothing in results.json says it, and the same machine with a higher limit would be a different run. - **NUMA.** Mine is one node, so it doesn't matter here, but #4495's machine has one card per socket. Suggested, in an `extensions.host` block or next to `hardware.gpus`: - per card: PCIe generation and width at max (nvidia-smi), and the link the engine measured, in GB/s; - the NUMA node count, and the node each card hangs from when there is more than one; - `RLIMIT_MEMLOCK`, and whether an mlock failed in the engine log; - optional: GPU temperature and power, min/median/max over the run (the server already exports both, see #4496). This one needs sampling during the run, so it is more work than the others, and it can wait. It matters most on laptops and mini PCs, where the card slows down when it gets hot and the same machine gives different numbers cold and warm. All of these are read, nothing on the machine is changed. The split topology and the expert residency per stage are #4495, so I left them out. RAM channels and speed would help too, but on Linux they need root (dmidecode), so I'd put them in `missing` rather than ask for sudo. I'm not asking for a full hardware benchmark (STREAM, nvbandwidth and fio already exist), only for the facts that explain why two machines with the same cards give different numbers. A result without these variables can mislead whoever compares it, me included: on my machine the same cards would look like "Gen4" in one report and "Gen1" in another, and run at the speed of neither. ### What do you do today instead? I write these by hand in the README and attach the engine log. Hardware: 2x RTX 4060 Ti 16 GB (PCIe 4.0 x8 each, layer split), Threadripper PRO 3975WX (1 NUMA node), 128 GB DDR4-2667, Pop!_OS 24.04. Version: v0.2.7.1 (`46c152a1`, engine 0.1.53), built here with CUDA 12.6 for sm_89. Model: Flash-Next UD-IQ4_XS. I did this with an AI coding assistant: it read the bench code and my logs and drafted this text. The idea and the numbers I checked are mine.
Author
Owner

@udqe commented on GitHub (Oct 29, 2026):

Support, from the other side of exactly this problem: we are the 2x RTX 4090 / TR3970X report the maintainers collected today (#4573, and #4345 from the laptop). Three concrete contributions to the list.

1. Our matrix is the worked example for "the generation alone is misleading twice". Same machine, same cards, only a BIOS setting changed: measured pinned copy 26.4 GB/s at Gen4 x16 vs 13-15 at Gen3 x16, and over that axis chunk-major prefill lost 16-22% while decode never moved (124.7-129.5 tok/s). Your 4060 Ti pair lands at 13.3 measured - the same rate class a Gen3 x16 slot gives our cards - from a completely different machine shape. Only the measured field can line those two stories up; "Gen4" would put yours next to our 26.4 and the reader would conclude the reports contradict each other.

2. One field your list is missing, from something we caught today: the effective layer_split K the engine picked at start. layer_split: auto moved our split 22 -> 23 -> 22 across three same-config starts in one day - silently, and it invalidated a single-variable A/B we had already analyzed before we noticed (layer split auto: CUDA1 runs layers 23-47 vs 22-47 is one line in engine.log, invisible in results.json). Two lines in the same spirit as yours, both read-only, both start-up lines we would have paid to have recorded: the auto-picked K, and the arena pinning line (N slices pinned (X GiB)) - our whole +3.4% prefill reading from STRATA_ARENA_PIN_GIB only makes sense because that line existed in the log.

3. From the collected side: if results like ours land on a public benchmarks page, "same cards, different numbers" becomes the first issue readers hit, and your host block is what turns a confusing number into a legible one. We write by hand into READMEs today too (your "What do you do instead" is exactly this), and it is the first thing a reader skips.

One honest wrinkle for the "measured figure" side, and after counting today it is no longer a wrinkle: our startup probe reads 6.7 GB/s on CUDA0 in 10 of the 57 starts in our current engine log (~18%), while CUDA1 never once read low - CUDA0 is our monitor card (Display Active: Enabled; CUDA1 is headless). The pattern is always exactly one step down (6.7 against 26.4 at Gen4, the same 6.7 against 13.2 when we ran the pair at Gen3 - two different expected values, the same misread). Your box is the clean control on a sibling platform - headless, Linux, and your 28 starts all read straight (your numbers from #3976). We tried to pin the trigger and could not: three controlled starts after 15-minute monitor-off idles all read 26.4/26.3/26.3, so whatever parks the link, ordinary 15-minute idle is not enough - the real 10 hits came from deeper cold states. Recording the measured number is what makes even this visible: a misread is a diagnosis when it is recorded, and an invisible one under a generation label.

(AI-assisted as before: the model served by this repo's engine drafted this; the numbers and the drift anecdote are our logs.)

<!-- gh-comment-id:6501415137 --> @udqe commented on GitHub (Oct 29, 2026): Support, from the other side of exactly this problem: we are the 2x RTX 4090 / TR3970X report the maintainers collected today (#4573, and #4345 from the laptop). Three concrete contributions to the list. **1. Our matrix is the worked example for "the generation alone is misleading twice".** Same machine, same cards, only a BIOS setting changed: measured pinned copy 26.4 GB/s at Gen4 x16 vs 13-15 at Gen3 x16, and over that axis chunk-major prefill lost 16-22% while decode never moved (124.7-129.5 tok/s). Your 4060 Ti pair lands at 13.3 measured - the same rate class a Gen3 x16 slot gives our cards - from a completely different machine shape. Only the measured field can line those two stories up; "Gen4" would put yours next to our 26.4 and the reader would conclude the reports contradict each other. **2. One field your list is missing, from something we caught today: the effective layer_split K the engine picked at start.** `layer_split: auto` moved our split 22 -> 23 -> 22 across three same-config starts in one day - silently, and it invalidated a single-variable A/B we had already analyzed before we noticed (`layer split auto: CUDA1 runs layers 23-47` vs `22-47` is one line in engine.log, invisible in results.json). Two lines in the same spirit as yours, both read-only, both start-up lines we would have paid to have recorded: the auto-picked K, and the arena pinning line (`N slices pinned (X GiB)`) - our whole +3.4% prefill reading from `STRATA_ARENA_PIN_GIB` only makes sense because that line existed in the log. **3. From the collected side:** if results like ours land on a public benchmarks page, "same cards, different numbers" becomes the first issue readers hit, and your host block is what turns a confusing number into a legible one. We write by hand into READMEs today too (your "What do you do instead" is exactly this), and it is the first thing a reader skips. One honest wrinkle for the "measured figure" side, and after counting today it is no longer a wrinkle: our startup probe reads 6.7 GB/s on CUDA0 in 10 of the 57 starts in our current engine log (~18%), while CUDA1 never once read low - CUDA0 is our monitor card (`Display Active: Enabled`; CUDA1 is headless). The pattern is always exactly one step down (6.7 against 26.4 at Gen4, the same 6.7 against 13.2 when we ran the pair at Gen3 - two different expected values, the same misread). Your box is the clean control on a sibling platform - headless, Linux, and your 28 starts all read straight (your numbers from #3976). We tried to pin the trigger and could not: three controlled starts after 15-minute monitor-off idles all read 26.4/26.3/26.3, so whatever parks the link, ordinary 15-minute idle is not enough - the real 10 hits came from deeper cold states. Recording the measured number is what makes even this visible: a misread is a diagnosis when it is recorded, and an invisible one under a generation label. (AI-assisted as before: the model served by this repo's engine drafted this; the numbers and the drift anecdote are our logs.)
Author
Owner

@fioruccione commented on GitHub (Oct 29, 2026):

Thanks @udqe, both fields go on the list. To say better why I opened this: I'm not after a more detailed leaderboard. I'd like a result to explain itself. Strata's speed comes from the whole box (CPU, RAM, link, NUMA, how much of the routed mass fits in VRAM, the split, which prefill path ran), not only from the cards. So two boxes with the same cards can give different numbers, and two boxes with very different cards can land closer than their specs suggest. Without these facts the second case can't be read either, and I'd like to use reports to decide which upgrade actually helps.

There is a practical side too. The installer already adapts the setup to the box, and that part works. But people read these threads and copy knobs. The same knob has opposite signs on different boxes: --pipeline-windows 2 is +7% for udqe and -14% in #4603, and the layer-major walk is +16% on their Gen4 pair and -26% on the V100s. A number taken alone, without the box it came from, pushes someone to change a setting that was already right for them.

One measurement for the CPU side, from tonight on my box (2x RTX 4060 Ti 16 GB, Threadripper PRO 3975WX 32 cores, DDR4-2667, v0.2.7.1, UD-IQ4_XS, my production config). I run --pcie-frac 0.00, so every expert missing from VRAM goes to the CPU pool, and in decode the cache hit rate is about 82-84%. I changed only --pool-workers, order 30 15 8 8 15 30, a fresh server per start:

decode tok/s, median of 4 (T=0.7: of 2) 30 workers (default) 15 8
story, T=0 71.7 71.8 (+0.2%) 68.4 (-4.5%)
code, T=0 81.6 75.4 (-7.5%) 64.1 (-21.4%)
summary of a ~20K document, T=0 54.7 52.3 (-4.4%) 48.0 (-12.2%)
story / code, T=0.7 69.1 / 76.6 70.6 / 72.3 66.1 / 61.2
  • Prefill didn't move (69K: 2338 / 2340 / 2351 tok/s), and neither did the cache hit rate or the MTP acceptance. GPU energy per token rose from 2.27 to 2.41 J, because the cards wait longer.
  • Same cards, same model, same config, and decode is up to a fifth slower with fewer cores. So for decode on this kind of box the CPU is part of the result, and two reports with the same cards and different CPUs aren't directly comparable.
  • From 30 to 15 the loss is small and from 15 to 8 it's large, which suggests that above some core count something else limits, maybe RAM bandwidth. I haven't measured that part yet.
  • Side note for #3659: the greedy text changes with the worker count too (all three T=0 answers differ from the 30-worker ones).

Putting #3976 and this thread together, this is what I'd call needed and what I'd call nice to have.

Needed (all start-up or log lines, read only):

  • per card: the measured link in GB/s, and when the probe did not run (explicit --layer-split, see @agurrrrr in #3976) an explicit "not measured" instead of an empty field;
  • the effective split: auto or fixed, the K used and the layers per card;
  • expert residency: slots per card, the caches hold ... % of the routed mass line, and the decode hit rate;
  • the CPU pool: worker count and --pcie-frac, since they decide how much of the miss work the CPU does;
  • which prefill path ran: layer-major walks and declines with their reason. On mine it is "on" at start and never ran (no VRAM for a super-chunk);
  • memlock: the limit, mlock failures, and the arena pinning line;
  • NUMA nodes, and the node of each card when there is more than one.

Nice to have: PCIe gen/width at max, temperature and power over the run, RAM channels and speed.

About the probe misreads: my two cards both report Display Active: Enabled, and all 27 auto starts here read 13.3 GB/s on both. So on my box a display on the card is not enough to trigger it. That's one more reason to record the number at every start rather than trust a single reading.

I have no comparable 4060 Ti vs 4090 measurement (same model, quant, context and phase), so I'm not putting a ratio on it. The point is that a report should carry what a fair comparison needs.

I did this with an AI coding assistant: it read both threads and my engine log, wrote the scripts and drafted this text. The idea is mine, and I ran the measurement and checked the numbers.

<!-- gh-comment-id:6510484796 --> @fioruccione commented on GitHub (Oct 29, 2026): Thanks @udqe, both fields go on the list. To say better why I opened this: I'm not after a more detailed leaderboard. I'd like a result to explain itself. Strata's speed comes from the whole box (CPU, RAM, link, NUMA, how much of the routed mass fits in VRAM, the split, which prefill path ran), not only from the cards. So two boxes with the same cards can give different numbers, and two boxes with very different cards can land closer than their specs suggest. Without these facts the second case can't be read either, and I'd like to use reports to decide which upgrade actually helps. There is a practical side too. The installer already adapts the setup to the box, and that part works. But people read these threads and copy knobs. The same knob has opposite signs on different boxes: `--pipeline-windows 2` is +7% for udqe and -14% in #4603, and the layer-major walk is +16% on their Gen4 pair and -26% on the V100s. A number taken alone, without the box it came from, pushes someone to change a setting that was already right for them. **One measurement for the CPU side,** from tonight on my box (2x RTX 4060 Ti 16 GB, Threadripper PRO 3975WX 32 cores, DDR4-2667, v0.2.7.1, UD-IQ4_XS, my production config). I run `--pcie-frac 0.00`, so every expert missing from VRAM goes to the CPU pool, and in decode the cache hit rate is about 82-84%. I changed only `--pool-workers`, order 30 15 8 8 15 30, a fresh server per start: | decode tok/s, median of 4 (T=0.7: of 2) | 30 workers (default) | 15 | 8 | |---|---|---|---| | story, T=0 | 71.7 | 71.8 (+0.2%) | 68.4 (-4.5%) | | code, T=0 | 81.6 | 75.4 (-7.5%) | 64.1 (-21.4%) | | summary of a ~20K document, T=0 | 54.7 | 52.3 (-4.4%) | 48.0 (-12.2%) | | story / code, T=0.7 | 69.1 / 76.6 | 70.6 / 72.3 | 66.1 / 61.2 | - Prefill didn't move (69K: 2338 / 2340 / 2351 tok/s), and neither did the cache hit rate or the MTP acceptance. GPU energy per token rose from 2.27 to 2.41 J, because the cards wait longer. - Same cards, same model, same config, and decode is up to a fifth slower with fewer cores. So for decode on this kind of box the CPU is part of the result, and two reports with the same cards and different CPUs aren't directly comparable. - From 30 to 15 the loss is small and from 15 to 8 it's large, which suggests that above some core count something else limits, maybe RAM bandwidth. I haven't measured that part yet. - Side note for #3659: the greedy text changes with the worker count too (all three T=0 answers differ from the 30-worker ones). Putting #3976 and this thread together, this is what I'd call needed and what I'd call nice to have. Needed (all start-up or log lines, read only): - per card: the measured link in GB/s, and when the probe did not run (explicit `--layer-split`, see @agurrrrr in #3976) an explicit "not measured" instead of an empty field; - the effective split: auto or fixed, the K used and the layers per card; - expert residency: slots per card, the `caches hold ... % of the routed mass` line, and the decode hit rate; - the CPU pool: worker count and `--pcie-frac`, since they decide how much of the miss work the CPU does; - which prefill path ran: layer-major walks and declines with their reason. On mine it is "on" at start and never ran (no VRAM for a super-chunk); - memlock: the limit, mlock failures, and the arena pinning line; - NUMA nodes, and the node of each card when there is more than one. Nice to have: PCIe gen/width at max, temperature and power over the run, RAM channels and speed. About the probe misreads: my two cards both report `Display Active: Enabled`, and all 27 auto starts here read 13.3 GB/s on both. So on my box a display on the card is not enough to trigger it. That's one more reason to record the number at every start rather than trust a single reading. I have no comparable 4060 Ti vs 4090 measurement (same model, quant, context and phase), so I'm not putting a ratio on it. The point is that a report should carry what a fair comparison needs. I did this with an AI coding assistant: it read both threads and my engine log, wrote the scripts and drafted this text. The idea is mine, and I ran the measurement and checked the numbers.
Author
Owner

@fioruccione commented on GitHub (Oct 30, 2026):

Following up on the CPU table above with the rest of what I measured today on the same box (2x RTX 4060 Ti 16 GB, Threadripper PRO 3975WX, 8ch DDR4-2667, v0.2.7.1, UD-IQ4_XS, production config, --pcie-frac 0.00). Every row is a fresh server per start, alternated order, decode at T=0.

what changed effect on decode
GPU power limit 165 W -> 100 W none measurable (decode draws 70-93 W anyway)
PowerMizer "max performance" (clocks pinned) none, +35 W at idle
VRAM +14% bandwidth (memory offset +2500, 18 -> ~20.5 Gbps) about +12%
CPU pool 30 -> 15 -> 8 workers 0 to -7%, then -12 to -21%
~75 of ~115 GB/s of system RAM bandwidth taken by a copy loop on other cores -2 to -8% (prefill -2%)
  • The RAM row: the pool was pinned to cores 1-15 and the server to the same CCDs, while a small memcpy program on cores 16-31 took a median 75 GB/s during the run. Hit rate didn't move (82.9 / 83.0%). This measures contention for the memory controllers, not a lower RAM clock, so it's an approximation of slower RAM, not the same thing.
  • With two thirds of the RAM bandwidth gone the pool still lost at most 8%. So the -21% with 8 workers is mostly missing CPU compute, not missing bandwidth. On this box the order is VRAM bandwidth, then CPU cores, then far behind RAM bandwidth. GPU compute and power barely matter for decode.
  • The VRAM overclock is a home experiment: I didn't verify greedy exactness under it (the test was on one running server, where the adaptive cache already changes the bits) and I can't read the memory temperature, so I'm not running it in production. It's here only to show which resource decode is waiting on.

All of this depends on --pcie-frac 0.00: every miss is computed by the CPU pool, so the CPU is in the decode path. With a higher share the misses go over PCIe and the link counts more than the cores. On this box the CPU path wins clearly: when I calibrated an older version the auto-probe picked 0.37 (40.8 tok/s) and 0.00 gave 50.3, with 32 cores, 8 channels and an x8 link per card. I'd expect it to pay off even more on a newer CPU with faster cores and DDR5, at least where the cards sit on a narrow link like the 4060 Ti's x8. With a wide Gen5 x16 link the balance could move the other way. I haven't measured either case, so it's worth checking on each box rather than copying my 0.00.

This is one machine, and I'm not claiming the percentages travel. A modern 8-core with higher clocks, more IPC and DDR5 would not behave like 8 workers on one Zen 2 CCD. But one box is enough to show that the same cards, model and config can move by a fifth because of the CPU alone. That's why I think a report needs the CPU pool, the cores, --pcie-frac and the hit rate next to the GPU name, otherwise two numbers can't be compared and people copy settings that only fit the box they came from.

I did this with an AI coding assistant: it wrote the scripts, the small bandwidth program and drafted this text. The idea and the questions are mine, I ran the tests and checked the numbers.

<!-- gh-comment-id:6522206154 --> @fioruccione commented on GitHub (Oct 30, 2026): Following up on the CPU table above with the rest of what I measured today on the same box (2x RTX 4060 Ti 16 GB, Threadripper PRO 3975WX, 8ch DDR4-2667, v0.2.7.1, UD-IQ4_XS, production config, `--pcie-frac 0.00`). Every row is a fresh server per start, alternated order, decode at T=0. | what changed | effect on decode | |---|---| | GPU power limit 165 W -> 100 W | none measurable (decode draws 70-93 W anyway) | | PowerMizer "max performance" (clocks pinned) | none, +35 W at idle | | VRAM +14% bandwidth (memory offset +2500, 18 -> ~20.5 Gbps) | about +12% | | CPU pool 30 -> 15 -> 8 workers | 0 to -7%, then -12 to -21% | | ~75 of ~115 GB/s of system RAM bandwidth taken by a copy loop on other cores | -2 to -8% (prefill -2%) | - The RAM row: the pool was pinned to cores 1-15 and the server to the same CCDs, while a small memcpy program on cores 16-31 took a median 75 GB/s during the run. Hit rate didn't move (82.9 / 83.0%). This measures contention for the memory controllers, not a lower RAM clock, so it's an approximation of slower RAM, not the same thing. - With two thirds of the RAM bandwidth gone the pool still lost at most 8%. So the -21% with 8 workers is mostly missing CPU compute, not missing bandwidth. On this box the order is VRAM bandwidth, then CPU cores, then far behind RAM bandwidth. GPU compute and power barely matter for decode. - The VRAM overclock is a home experiment: I didn't verify greedy exactness under it (the test was on one running server, where the adaptive cache already changes the bits) and I can't read the memory temperature, so I'm not running it in production. It's here only to show which resource decode is waiting on. All of this depends on `--pcie-frac 0.00`: every miss is computed by the CPU pool, so the CPU is in the decode path. With a higher share the misses go over PCIe and the link counts more than the cores. On this box the CPU path wins clearly: when I calibrated an older version the auto-probe picked 0.37 (40.8 tok/s) and 0.00 gave 50.3, with 32 cores, 8 channels and an x8 link per card. I'd expect it to pay off even more on a newer CPU with faster cores and DDR5, at least where the cards sit on a narrow link like the 4060 Ti's x8. With a wide Gen5 x16 link the balance could move the other way. I haven't measured either case, so it's worth checking on each box rather than copying my 0.00. This is one machine, and I'm not claiming the percentages travel. A modern 8-core with higher clocks, more IPC and DDR5 would not behave like 8 workers on one Zen 2 CCD. But one box is enough to show that the same cards, model and config can move by a fifth because of the CPU alone. That's why I think a report needs the CPU pool, the cores, `--pcie-frac` and the hit rate next to the GPU name, otherwise two numbers can't be compared and people copy settings that only fit the box they came from. I did this with an AI coding assistant: it wrote the scripts, the small bandwidth program and drafted this text. The idea and the questions are mine, I ran the tests and checked the numbers.
Author
Owner

@fioruccione commented on GitHub (Oct 30, 2026):

One more thing, after the measurements above: I checked what the standard runner (strata bench) records today, at 46c152a1, so it's clear which part of this is already covered.

Already there:

  • the CPU as a name string from /proc/cpuinfo (cpu_name, bench_facts.py#L130);
  • total RAM in bytes (ram_bytes, #L111);
  • the engine options from the config, grouped: --pcie-frac, --pool-*, --layer-split, --vram-* land in offloading (GROUPS, #L507).

Not there, as far as I can see:

  • effective values when an option isn't written in the config. The groups come from the argv, so with the default pool the report doesn't say how many workers ran, and with --layer-split auto it doesn't say which K was picked;
  • the measured link per card (the probe's GB/s), and the PCIe gen/width it ran at;
  • the decode hit rate and the caches hold ... % of the routed mass line;
  • which prefill path ran (layer-major walks/declines);
  • RAM channels and speed. On Linux these need dmidecode, so root, so probably an optional field the user fills in.

With today's numbers that matters: on my box the pool worker count alone moved decode by up to 21%, and none of it would show in a report where the config uses the default workers. Two such reports would look like noise.

Most of the missing facts are start-up or log lines the engine already prints, and the format already has extensions for data outside the contract, so I think they could go there without touching schema v1. I'm not opening a PR unless you think it's the right place; just pointing out the gap.

I did this with an AI coding assistant: it read the runner code and drafted this text. I checked the references.

<!-- gh-comment-id:6522479538 --> @fioruccione commented on GitHub (Oct 30, 2026): One more thing, after the measurements above: I checked what the standard runner (`strata bench`) records today, at `46c152a1`, so it's clear which part of this is already covered. Already there: - the CPU as a name string from `/proc/cpuinfo` (`cpu_name`, [bench_facts.py#L130](https://github.com/Niko1221/Strata/blob/46c152a1310f77cd2f0ce2c7cd213962df14fe83/strata_cli/bench_facts.py#L130)); - total RAM in bytes (`ram_bytes`, [#L111](https://github.com/Niko1221/Strata/blob/46c152a1310f77cd2f0ce2c7cd213962df14fe83/strata_cli/bench_facts.py#L111)); - the engine options from the config, grouped: `--pcie-frac`, `--pool-*`, `--layer-split`, `--vram-*` land in `offloading` ([GROUPS, #L507](https://github.com/Niko1221/Strata/blob/46c152a1310f77cd2f0ce2c7cd213962df14fe83/strata_cli/bench_facts.py#L507)). Not there, as far as I can see: - effective values when an option isn't written in the config. The groups come from the argv, so with the default pool the report doesn't say how many workers ran, and with `--layer-split auto` it doesn't say which K was picked; - the measured link per card (the probe's GB/s), and the PCIe gen/width it ran at; - the decode hit rate and the `caches hold ... % of the routed mass` line; - which prefill path ran (layer-major walks/declines); - RAM channels and speed. On Linux these need `dmidecode`, so root, so probably an optional field the user fills in. With today's numbers that matters: on my box the pool worker count alone moved decode by up to 21%, and none of it would show in a report where the config uses the default workers. Two such reports would look like noise. Most of the missing facts are start-up or log lines the engine already prints, and the format already has `extensions` for data outside the contract, so I think they could go there without touching schema v1. I'm not opening a PR unless you think it's the right place; just pointing out the gap. I did this with an AI coding assistant: it read the runner code and drafted this text. I checked the references.
Author
Owner

@udqe commented on GitHub (Oct 30, 2026):

fioruccione's CPU-pool table above is the sharpest argument in this thread, and our pair happens to sit at the opposite extreme of every axis he moved - so we ran the mirror experiment to see whether the same knob is even measurable on a rig at 97% cache hits. It is not, and we think that answers his own "should the percentages travel" question better than a yes.

Where the two boxes sit

his (2x 4060 Ti 16 GB) ours (2x 4090 24 GB)
decode cache hit rate 82.9% 97.4% (aggregate of 2,328 serve lines: 1,440,720,351 hits / 1,479,197,376 lookups)
experts a token routes (10) that miss ~1.71 ~0.26
--pcie-frac 0.00 (every miss computed by the CPU pool) 0.20 explicit (most misses stay on the CPU path, but few exist)
link per card x8 x16 Gen4 (engine probe 26.4 GB/s pinned)
pool default 30 workers 30 workers (start line: 30 pool workers on logical processors 2,4,...60, the host thread on 0)

CPU compute per token is ~1/7 of his. His 8-worker cliff (-12 to -21%) should be invisible here; the question was whether we could measure how invisible.

Protocol (alternating, pre-declared rule)

Fresh server per arm, A(w30)/B(--pool-workers 8) alternating across sessions to cancel day-drift; decode = salted cold 150K prompt + 512 generated tokens per run, median of the engine's own generated ... (tok/s) lines; windows silent. Rule declared before looking: claim an effect only if B>A in >= 4 of 5 paired groups AND the pooled median gap exceeds +2%; else report "undetectable". (The engine's own docs for the flag say "Moves threads only, never a result" - this tests speed, not bits.)

Actual (7 sessions, 44 decode runs, engine 0.1.54)

paired group A w30 B w8 B-A
1 (n=4/4) 97.2 101.0 +3.8
2 (n=8/8) 105.1 102.3 -2.8
3 (n=8/8) 103.7 104.1 +0.4
4 (reversed order, n=8/4) 101.4 104.1 -3.7

Pooled: A n=24 median 101.6 / B n=20 median 102.0 (+0.34%; means +0.37%). Sign split 2/4 - rule not met: workers 30 -> 8 is undetectable here (|effect| < ~1%).

The part worth keeping

Within-run spread was 87-115 tok/s (28%) against a between-arm gap of 0.3% - 44 runs could not separate the two arms, and our own same-config decode medians drifted 97 -> 111 across a day (documented in our #4573 addendum). Also related: at T=0 the answers themselves are not reproducible on this server (#4673), so a single decode median, let alone a single output diff, does not compare between boxes.

So the table this issue is asking for should carry what both boxes already print - pool workers + the logical list + host core, the hit-rate line, --pcie-frac and how it was set, the effective layer_split K and the arena-pin line (both still missing from the standard runner, our earlier row) - plus each number's n and spread. Our 8-worker round produced a number (+0.34%); we would not have been entitled to report it as a finding, and the pre-declared rule is what stopped us. One box can move a fifth by the CPU alone (fioruccione), ours cannot feel the CPU at 97% hits: same knob, both answers real, only the recorded fields tell you which box you are reading.

(AI-assisted as usual: the model served by this repo's engine ran all 44 runs and drafted this; every number is an engine-log line from the machine described.)

<!-- gh-comment-id:6528906850 --> @udqe commented on GitHub (Oct 30, 2026): fioruccione's CPU-pool table above is the sharpest argument in this thread, and our pair happens to sit at the opposite extreme of every axis he moved - so we ran the mirror experiment to see whether the same knob is even measurable on a rig at 97% cache hits. It is not, and we think that answers his own "should the percentages travel" question better than a yes. ### Where the two boxes sit | | his (2x 4060 Ti 16 GB) | ours (2x 4090 24 GB) | |---|---|---| | decode cache hit rate | 82.9% | **97.4%** (aggregate of 2,328 serve lines: 1,440,720,351 hits / 1,479,197,376 lookups) | | experts a token routes (10) that miss | ~1.71 | **~0.26** | | `--pcie-frac` | 0.00 (every miss computed by the CPU pool) | 0.20 explicit (most misses stay on the CPU path, but few exist) | | link per card | x8 | x16 Gen4 (engine probe 26.4 GB/s pinned) | | pool default | 30 workers | 30 workers (start line: `30 pool workers on logical processors 2,4,...60, the host thread on 0`) | CPU compute per token is ~1/7 of his. His 8-worker cliff (-12 to -21%) should be invisible here; the question was whether we could measure how invisible. ### Protocol (alternating, pre-declared rule) Fresh server per arm, A(w30)/B(`--pool-workers 8`) alternating across sessions to cancel day-drift; decode = salted cold 150K prompt + 512 generated tokens per run, median of the engine's own `generated ... (tok/s)` lines; windows silent. Rule declared before looking: **claim an effect only if B>A in >= 4 of 5 paired groups AND the pooled median gap exceeds +2%; else report "undetectable".** (The engine's own docs for the flag say "Moves threads only, never a result" - this tests speed, not bits.) ### Actual (7 sessions, 44 decode runs, engine 0.1.54) | paired group | A w30 | B w8 | B-A | |---|---:|---:|---:| | 1 (n=4/4) | 97.2 | 101.0 | +3.8 | | 2 (n=8/8) | 105.1 | 102.3 | -2.8 | | 3 (n=8/8) | 103.7 | 104.1 | +0.4 | | 4 (reversed order, n=8/4) | 101.4 | 104.1 | -3.7 | Pooled: **A n=24 median 101.6 / B n=20 median 102.0 (+0.34%; means +0.37%). Sign split 2/4 - rule not met: workers 30 -> 8 is undetectable here (|effect| < ~1%).** ### The part worth keeping Within-run spread was 87-115 tok/s (28%) against a between-arm gap of 0.3% - 44 runs could not separate the two arms, and our own same-config decode medians drifted 97 -> 111 across a day (documented in our #4573 addendum). Also related: at T=0 the answers themselves are not reproducible on this server (#4673), so a single decode median, let alone a single output diff, does not compare between boxes. So the table this issue is asking for should carry what both boxes already print - `pool workers` + the logical list + host core, the hit-rate line, `--pcie-frac` and how it was set, the effective `layer_split` K and the arena-pin line (both still missing from the standard runner, our earlier row) - plus each number's **n and spread**. Our 8-worker round produced a number (+0.34%); we would not have been entitled to report it as a finding, and the pre-declared rule is what stopped us. One box can move a fifth by the CPU alone (fioruccione), ours cannot feel the CPU at 97% hits: same knob, both answers real, only the recorded fields tell you which box you are reading. (AI-assisted as usual: the model served by this repo's engine ran all 44 runs and drafted this; every number is an engine-log line from the machine described.)
Author
Owner

@fioruccione commented on GitHub (Oct 30, 2026):

Thanks @udqe, and thanks for taking the time to run 44 tests to check this from the other side.

Your results are exactly what I hoped this issue would bring out: the same setting can have a major impact on one machine and almost none on another, and both results are perfectly consistent once we look at cache residency and how much work actually reaches the CPU. About 1.7 missed experts per token on my box against 0.26 on yours is roughly 6-7 times less work for the CPU pool.

And it goes beyond decode. On my box layer-major prefill often can't start: in the production log it was turned down for "no VRAM for a super-chunk" (238-434 MiB free) on 104 of the 200 prompts longer than one 8192-token chunk. So on my box the prefill path itself changes from prompt to prompt. With 24 GB cards that is probably a different story. Every configuration has its own peculiarities, and a number without them doesn't tell you much.

The 82.9% vs 97.4% hit rate explains more than the GPU names alone ever could.

I think we've made a good case for recording the effective runtime configuration alongside benchmark numbers, rather than leaving readers to reconstruct it from logs.

And I particularly appreciate that you reported a 0.34% difference as undetectable instead of turning it into a performance claim. That's the kind of discipline that makes community benchmarks useful.

Thanks again for the work!

<!-- gh-comment-id:6529393148 --> @fioruccione commented on GitHub (Oct 30, 2026): Thanks @udqe, and thanks for taking the time to run 44 tests to check this from the other side. Your results are exactly what I hoped this issue would bring out: the same setting can have a major impact on one machine and almost none on another, and both results are perfectly consistent once we look at cache residency and how much work actually reaches the CPU. About 1.7 missed experts per token on my box against 0.26 on yours is roughly 6-7 times less work for the CPU pool. And it goes beyond decode. On my box layer-major prefill often can't start: in the production log it was turned down for "no VRAM for a super-chunk" (238-434 MiB free) on 104 of the 200 prompts longer than one 8192-token chunk. So on my box the prefill path itself changes from prompt to prompt. With 24 GB cards that is probably a different story. Every configuration has its own peculiarities, and a number without them doesn't tell you much. The 82.9% vs 97.4% hit rate explains more than the GPU names alone ever could. I think we've made a good case for recording the effective runtime configuration alongside benchmark numbers, rather than leaving readers to reconstruct it from logs. And I particularly appreciate that you reported a 0.34% difference as undetectable instead of turning it into a performance claim. That's the kind of discipline that makes community benchmarks useful. Thanks again for the work!
Author
Owner

@udqe commented on GitHub (Oct 30, 2026):

Thank you - and your 104-of-200 line is the best argument this issue has heard: on your box the prefill path itself changes prompt to prompt depending on free VRAM, so even a prefill number carries your box in it before any of mine does.

One honest note about our own 44 runs so nobody over-reads the "undetectable" verdict: it rules out effects at the scale you measured - a -12 to -21% cliff would have been obvious on this rig even in single digits of runs - but it does not prove the effect is zero. This environment carries a +-10% day-drift at identical settings (the same addendum's own numbers: 123.6 -> 111.4 decode median, prefill flat), and within a window single runs ranged 87 to 115 tok/s (28% spread). Against a noise floor that wide, anything under roughly ten percent is unresolvable even at n=44: 44 trials were simply not enough trials to trust a small difference, which is a property of this box, not a doubt about yours. The same drift would have let us "discover" a fake +4% if we had stopped at two runs per arm and compared means - which is the whole reason the decision rule was written down before the data was looked at.

So the honest summary sentence for our row of your table is: "at 97% hit rate a pool this size is inside our +-10% floor at n=44; smaller effects cannot be seen here at all." If someone with a low-hit-rate box wants to run the same alternating protocol, the bar to clear on a drifting rig is about that: many more runs, or a rig quieter than ours.

(AI-assisted: the model served by this repo's engine ran all 44 runs, drafted this reply, and served as the subject of every number quoted.)

<!-- gh-comment-id:6529895818 --> @udqe commented on GitHub (Oct 30, 2026): Thank you - and your 104-of-200 line is the best argument this issue has heard: on your box the prefill path itself changes prompt to prompt depending on free VRAM, so even a prefill number carries your box in it before any of mine does. One honest note about our own 44 runs so nobody over-reads the "undetectable" verdict: it rules out effects at the scale you measured - a -12 to -21% cliff would have been obvious on this rig even in single digits of runs - but it does not prove the effect is zero. This environment carries a +-10% day-drift at identical settings (the same addendum's own numbers: 123.6 -> 111.4 decode median, prefill flat), and within a window single runs ranged 87 to 115 tok/s (28% spread). Against a noise floor that wide, anything under roughly ten percent is unresolvable even at n=44: 44 trials were simply not enough trials to trust a small difference, which is a property of this box, not a doubt about yours. The same drift would have let us "discover" a fake +4% if we had stopped at two runs per arm and compared means - which is the whole reason the decision rule was written down before the data was looked at. So the honest summary sentence for our row of your table is: "at 97% hit rate a pool this size is inside our +-10% floor at n=44; smaller effects cannot be seen here at all." If someone with a low-hit-rate box wants to run the same alternating protocol, the bar to clear on a drifting rig is about that: many more runs, or a rig quieter than ours. (AI-assisted: the model served by this repo's engine ran all 44 runs, drafted this reply, and served as the subject of every number quoted.)
Author
Owner

@udqe commented on GitHub (Oct 30, 2026):

Self-correction on our first comment in this thread (Oct 29, the one proposing the host-facts fields: https://github.com/Niko1221/Strata/issues/4610#issuecomment-6501415137): there we wrote "We tried to pin the trigger and could not... the real 10 hits came from deeper cold states." We can now pin it - and we also owe an apology about how we got there.

The apology first, specifically: the three controlled starts behind that sentence were a flawed experiment, and the sentence drawn from them was wrong in both directions. What we recorded as "starts after 15-minute monitor-off idle" was not that condition - the machine was entering sleep during the idle (one-minute screen timeout on the Ryzen power plan), and the failed first-start attempts after wake warmed the GPU before the three "clean" reads. So the 26.4/26.3/26.3 results tested nothing we designed, and the conclusion we published - "the real 10 hits came from deeper cold states" - is the opposite of what the next experiment showed: the misread concentrates in the FIRST start shortly after a SHORT sleep, while the deepest cold state we could produce read clean (0/1). We posted an artifact as a finding; sorry to fioruccione especially, whose clean 28-start control we cited in the same breath.

The corrected experiment, stated as protocol this time: engine stop -> 60 s -> 15 min sleep -> start within seconds of wake (W), alternating with engine stop -> immediate restart (N), with layer_split=auto set temporarily so the probe line prints at all - it never appears in a fixed-split session, its own blindspot for anyone trying to reproduce us. The history it was designed against: 10 of 57 starts read CUDA0's link at 6.7 GB/s against a pinned 26.4, CUDA1 never, always the same fingerprint - CUDA0 is the display-attached card, and the number is always exactly half of the true generation's value (6.7 vs 26.4 on Gen4, 6.7 vs 13.2 during a Gen3 BIOS period).

Actual: W 4/8 fired (50%), N 0/2, one longer-sleep session 0/1 (weak n, disclosed). Against our mixed historical rate of 18% the 4/8 is p~0.05 (binomial). Start #99 reads layer split auto: CUDA0 link 6.7 GB/s -> miss cost x1.00 beside CUDA1 link 26.4 in the same boot at the same instant, identical config; the negative W starts read 26.4 on both cards. So the trigger on this box is: first start shortly after resume-from-sleep catches the display-attached card's link still ramping; the probe prints half the ramped width, misses cost nothing because the miss cost line is x1.00 in every firing, and a fixed-split config hides the whole symptom.

Two consequences for the issue's ask:

  1. A recorded link number needs its start context (cold boot vs restart vs first-start-after-sleep) the same way it needs the pin row: ours is only wrong in one of those three contexts, and every number in our logs from a post-sleep start is suspect - including the flawed "15-minute idle" numbers above, which were post-sleep starts themselves wearing an idle label.
  2. The fingerprint discriminates mechanisms: what we see is discrete (always exactly half, always the display card, miss cost unharmed), where the Windows priority-inheritance reports elsewhere (#4733: same args -14% decode; PR#126: Task Scheduler 24x expert-load) are continuous slowdowns of whole paths. Half-value asymmetry looks like a link training state, not a scheduling state. A standard report field that records probe value + start context + card display-attached would let readers tell these apart without our nine sessions of forensics.

Caveats we keep attached: n=8 is small, the effect is display-card-only, the N arm is thin (0/2), and the pin that fixed the number in the first place (--pcie-frac explicit) remains our mitigation - we do not trust auto-probed link values on this box at all anymore.

(AI-assisted: the model served by this repo's engine ran the reads, the protocol bookkeeping and this draft; every start number is from the machine's own engine log.)

<!-- gh-comment-id:6532493954 --> @udqe commented on GitHub (Oct 30, 2026): Self-correction on our first comment in this thread (Oct 29, the one proposing the host-facts fields: https://github.com/Niko1221/Strata/issues/4610#issuecomment-6501415137): there we wrote "We tried to pin the trigger and could not... the real 10 hits came from deeper cold states." We can now pin it - and we also owe an apology about how we got there. The apology first, specifically: the three controlled starts behind that sentence were a flawed experiment, and the sentence drawn from them was wrong in both directions. What we recorded as "starts after 15-minute monitor-off idle" was not that condition - the machine was entering sleep during the idle (one-minute screen timeout on the Ryzen power plan), and the failed first-start attempts after wake warmed the GPU before the three "clean" reads. So the 26.4/26.3/26.3 results tested nothing we designed, and the conclusion we published - "the real 10 hits came from deeper cold states" - is the opposite of what the next experiment showed: the misread concentrates in the FIRST start shortly after a SHORT sleep, while the deepest cold state we could produce read clean (0/1). We posted an artifact as a finding; sorry to fioruccione especially, whose clean 28-start control we cited in the same breath. The corrected experiment, stated as protocol this time: engine stop -> 60 s -> 15 min sleep -> start within seconds of wake (W), alternating with engine stop -> immediate restart (N), with `layer_split=auto` set temporarily so the probe line prints at all - it never appears in a fixed-split session, its own blindspot for anyone trying to reproduce us. The history it was designed against: 10 of 57 starts read CUDA0's link at 6.7 GB/s against a pinned 26.4, CUDA1 never, always the same fingerprint - CUDA0 is the display-attached card, and the number is always exactly half of the true generation's value (6.7 vs 26.4 on Gen4, 6.7 vs 13.2 during a Gen3 BIOS period). Actual: **W 4/8 fired (50%), N 0/2, one longer-sleep session 0/1** (weak n, disclosed). Against our mixed historical rate of 18% the 4/8 is p~0.05 (binomial). Start #99 reads `layer split auto: CUDA0 link 6.7 GB/s -> miss cost x1.00` beside `CUDA1 link 26.4` in the same boot at the same instant, identical config; the negative W starts read 26.4 on both cards. So the trigger on this box is: **first start shortly after resume-from-sleep catches the display-attached card's link still ramping**; the probe prints half the ramped width, misses cost nothing because the miss cost line is x1.00 in every firing, and a fixed-split config hides the whole symptom. Two consequences for the issue's ask: 1. A recorded link number needs its **start context** (cold boot vs restart vs first-start-after-sleep) the same way it needs the pin row: ours is only wrong in one of those three contexts, and every number in our logs from a post-sleep start is suspect - including the flawed "15-minute idle" numbers above, which were post-sleep starts themselves wearing an idle label. 2. The fingerprint discriminates mechanisms: what we see is discrete (always exactly half, always the display card, miss cost unharmed), where the Windows priority-inheritance reports elsewhere (#4733: same args -14% decode; PR#126: Task Scheduler 24x expert-load) are continuous slowdowns of whole paths. Half-value asymmetry looks like a link training state, not a scheduling state. A standard report field that records `probe value + start context + card display-attached` would let readers tell these apart without our nine sessions of forensics. Caveats we keep attached: n=8 is small, the effect is display-card-only, the N arm is thin (0/2), and the pin that fixed the number in the first place (`--pcie-frac` explicit) remains our mitigation - we do not trust auto-probed link values on this box at all anymore. (AI-assisted: the model served by this repo's engine ran the reads, the protocol bookkeeping and this draft; every start number is from the machine's own engine log.)
Author
Owner

@fioruccione commented on GitHub (Oct 31, 2026):

Hi @udqe,

No apology needed. Correcting a published conclusion in public, with a protocol and the small n stated, is exactly what makes this thread useful.

One data point from my side on the link probe: my box uses layer_split auto too, so the probe line prints at every start. In 89 starts (39 on 0.1.45, 50 on 0.2.7.1) both cards read 13.3 GB/s, with a single 12.3 and a single 12.4, and never half. But this is Linux (Pop!_OS 24.04, kernel 7.1, driver 610) and I disabled suspend, so the machine hasn't slept since September and never ran your W condition. It neither confirms nor contradicts your finding, it just isn't the same case. Your "Ryzen power plan" makes me think you're on Windows: if so, the OS and its power plan are one more variable between our two boxes.

I think we've collected enough interesting evidence to justify looking into this further, but two machines are certainly not enough to draw general conclusions.

Rather than going deeper on our two boxes, I wonder if you know someone, or anyone reading this, with a different hardware configuration who might be willing to run a few comparable tests. A short list would be enough:

  • decode with the default pool and with --pool-workers 8, alternated, with the decode expert cache hit rate line;
  • whether layer-major prefill starts on a long prompt, or the layer-major off ... no VRAM line and the free MiB it reports;
  • with layer_split auto, the CUDAn link values on a cold boot, a plain restart and the first start after a short sleep, and which card drives the display;
  • next to it: OS and driver version, power plan and whether the box sleeps, CPU, RAM channels and speed, cards, and the PCIe gen and width they run at.

A third independent system could help us understand which observations are specific to our machines and which might be relevant to Strata more broadly.

I'm not trying to push any particular solution. I'd just like to see whether the evidence holds up across different hardware before drawing conclusions.

Thanks again for your work!

<!-- gh-comment-id:6539931639 --> @fioruccione commented on GitHub (Oct 31, 2026): Hi @udqe, No apology needed. Correcting a published conclusion in public, with a protocol and the small n stated, is exactly what makes this thread useful. One data point from my side on the link probe: my box uses `layer_split` auto too, so the probe line prints at every start. In 89 starts (39 on 0.1.45, 50 on 0.2.7.1) both cards read 13.3 GB/s, with a single 12.3 and a single 12.4, and never half. But this is Linux (Pop!_OS 24.04, kernel 7.1, driver 610) and I disabled suspend, so the machine hasn't slept since September and never ran your W condition. It neither confirms nor contradicts your finding, it just isn't the same case. Your "Ryzen power plan" makes me think you're on Windows: if so, the OS and its power plan are one more variable between our two boxes. I think we've collected enough interesting evidence to justify looking into this further, but two machines are certainly not enough to draw general conclusions. Rather than going deeper on our two boxes, I wonder if you know someone, or anyone reading this, with a different hardware configuration who might be willing to run a few comparable tests. A short list would be enough: - decode with the default pool and with `--pool-workers 8`, alternated, with the `decode expert cache hit rate` line; - whether layer-major prefill starts on a long prompt, or the `layer-major off ... no VRAM` line and the free MiB it reports; - with `layer_split` auto, the `CUDAn link` values on a cold boot, a plain restart and the first start after a short sleep, and which card drives the display; - next to it: OS and driver version, power plan and whether the box sleeps, CPU, RAM channels and speed, cards, and the PCIe gen and width they run at. A third independent system could help us understand which observations are specific to our machines and which might be relevant to Strata more broadly. I'm not trying to push any particular solution. I'd just like to see whether the evidence holds up across different hardware before drawing conclusions. Thanks again for your work!
Author
Owner

@liaiwu commented on GitHub (Oct 31, 2026):

+1 on the memlock line, with one thing your wording can be read as missing: the limit alone is not enough, you
also need whether an mlock actually succeeded. On a start from a hand-written systemd unit the limit is
8 MiB, the residency policy checks RAM only (ple_resident_admit,
include/strata/core/ple_residency.hpp:23) and admits the table anyway, and the kernel refuses. Two starts of
the same unit and the same config are then two different runs, and both print a normal-looking start-up.

Measured on that pair: same machine (RTX 4090, 125.6 GiB), same config, arms alternating, medians of six runs
per side — decode 134.7 tok/s refused against 142.8 tok/s locked, +6.0%, Welch t=5.1, reproduced in two
independent arm pairs; on a second workload +2.6%, which six runs cannot separate. MTP acceptance unchanged.
Details in #4671.

The two start-up lines that say which state a run was in already exist, so nothing new has to be read off the
machine: the refusal at src/kernels/ngram.cpp:461, and the paired PLE table locked in RAM /
PLE table loaded (not locked) at src/program/generate.cpp:4766. Mlocked in /proc/meminfo and VmLck in
/proc/<pid>/status give the byte figure: 11 MiB against 26.83 GiB, which is the table.

(AI-assisted as before: the assistant read the source and my logs and drafted this; the runs and the numbers
are mine.)

<!-- gh-comment-id:6541794128 --> @liaiwu commented on GitHub (Oct 31, 2026): +1 on the memlock line, with one thing your wording can be read as missing: the limit alone is not enough, you also need whether an `mlock` actually succeeded. On a start from a hand-written systemd unit the limit is 8 MiB, the residency policy checks RAM only (`ple_resident_admit`, `include/strata/core/ple_residency.hpp:23`) and admits the table anyway, and the kernel refuses. Two starts of the same unit and the same config are then two different runs, and both print a normal-looking start-up. Measured on that pair: same machine (RTX 4090, 125.6 GiB), same config, arms alternating, medians of six runs per side — decode 134.7 tok/s refused against 142.8 tok/s locked, **+6.0%, Welch t=5.1**, reproduced in two independent arm pairs; on a second workload +2.6%, which six runs cannot separate. MTP acceptance unchanged. Details in [#4671](https://github.com/Niko1221/Strata/issues/4671). The two start-up lines that say which state a run was in already exist, so nothing new has to be read off the machine: the refusal at `src/kernels/ngram.cpp:461`, and the paired `PLE table locked in RAM` / `PLE table loaded (not locked)` at `src/program/generate.cpp:4766`. `Mlocked` in `/proc/meminfo` and `VmLck` in `/proc/<pid>/status` give the byte figure: 11 MiB against 26.83 GiB, which is the table. (AI-assisted as before: the assistant read the source and my logs and drafted this; the runs and the numbers are mine.)
Author
Owner

@longstone78 commented on GitHub (Oct 31, 2026):

Thanks for opening this issue. I ran a small exploratory --pool-workers sweep on a third, fairly different machine: dual Haswell-EP, 2x RTX 5060 Ti 16 GB, a measured Gen3 x8 link per card, and a much lower decode cache-hit rate than the 4090 system discussed above.

The short result is that moving from 11 to 18 workers improved mean decode throughput across two different prompts by about 8.4%, while moving from 18 to 22 added only about 1.1%. This is only n=1 per arm and the arms were not fully alternated, so I am reporting it as a machine-specific exploratory result, not a general performance claim.

Host

  • OS: Ubuntu 24.04.5 LTS, kernel 6.8.0-138-generic, x86-64.
  • CPU: 2x Intel Xeon E5-2680 v3 (Haswell-EP), 12 physical cores / 24 threads per socket, 24 physical cores / 48 logical CPUs total, 2.50 GHz base / 3.30 GHz max turbo, AVX2 and no AVX-512.
  • Logical CPU numbering: CPUs 0-11 are the first hardware threads of socket 0, 12-23 are the first hardware threads of socket 1, and 24-47 are their SMT siblings.
  • NUMA as exposed by Linux: one node containing CPUs 0-47. Both GPU sysfs devices report numa_node=-1. This may be firmware/node interleaving, but I did not change the BIOS to investigate it.
  • RAM: 96 GiB installed, 94.16 GiB visible to Linux. I could not obtain DIMM channel/rank/speed data without privileged DMI access, so those fields are missing.
  • Motherboard DMI: vendor INTEL, product/board X99, C610/X99 chipset. This is a generic identification rather than a useful model number.
  • BIOS: American Megatrends 5.11, 2020-09-02.
  • GPU 0: NVIDIA GeForce RTX 5060 Ti, 16,311 MiB, PCI 0000:02:00.0.
  • GPU 1: NVIDIA GeForce RTX 5060 Ti, 16,311 MiB, PCI 0000:03:00.0.
  • Driver: NVIDIA 610.43.02.
  • Both cards: PCIe maximum Gen3 x8 on this platform. I observed Gen1 x8 while idle and Gen3 x8 with the model active. Both displays are disabled.
  • Engine link probe at every tested start: 6.9 GB/s host-to-device on CUDA0 and 6.9 GB/s on CUDA1, best-of-four 6.9 6.9 6.9 6.9 for both cards.
  • GPU power limit: 180 W per card. Temperatures immediately after the final run were 39 C and 40 C. I did not sample temperature or power throughout the runs.
  • RLIMIT_MEMLOCK: 12,637,913,088 bytes (11.77 GiB; shell ulimit -l reports 12,341,712 KiB).
  • Current engine VmLck: 0 KiB. This old build does not print the newer PLE table locked in RAM / loaded (not locked) line. It does print expert arena: cudaHostRegister PORTABLE ok.
  • No other GPU compute processes were active during these measurements. The local llama.cpp, DINO and Grounding DINO services were inactive.

Strata, model and effective runtime configuration

  • Repository: Niko1221/Strata.
  • Git HEAD: 477ac13cbe8e582c20484871ce459d20d82df09d, described as v0.1.45-dirty.
  • Engine BUILD.json: version 0.1.45, source b95137167bd9b751, CUDA architecture [120], vision backend cpu, vision source 13d9deaf827f14ef.
  • The only tracked local source change adds the Italian draft-vocabulary option to setup.py; data/draft_vocab_it.bin is also present as an untracked local data file. The engine itself was not patched for this worker test.
  • Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S, native + PLE GGUF split.
  • MTP: RT draft layer, Italian draft vocabulary.
  • Vision: enabled, CPU vision encoder with 24 threads.
  • Maximum context: 262,144 tokens.
  • KV: int8, 32,768 resident cells; startup reports 1.29 GiB of pinned RAM for streamed K/V.
  • Speculation: --spec 4 --spec-min-p 0.5.
  • Expert cache: automatic.
  • Prefill: automatic.
  • Fixed layer split: 20; CUDA0 runs layers 0-19 and CUDA1 runs layers 20-47.
  • VRAM reservations: --vram-reserve-mib 9216 --vram-reserve-later-mib 6656. These were chosen so occasional vision workloads can coexist on the cards.
  • Startup residency was identical for the tested arms: 1,198 expert slots / 2.17 GiB on the first stage and 1,574 slots / 3.12 GiB on CUDA1, 2,772 resident experts in total.
  • R4 GPU hit path: on.
  • Route-tail skip: default 7, on.
  • Adaptive overlap: off because this is a layer split.
  • Link auto-tuning: the 6.9 GB/s probe selected pcie_frac 0.19 versus the engine default 0.55. I did not pin --pcie-frac explicitly.
  • Worker placements were the host thread on logical CPU 0 and workers on consecutive physical CPUs: 1-11, 1-18, or 1-22. At 22 workers the remaining auxiliary set was CPUs 24, 23 and 47, with auxiliary CPUs off at request start.

The only variable intentionally changed between arms was --pool-workers.

Protocol and limitations

  • Two fixed Italian prompts: one long-form systems-design explanation and one Python async queue implementation.
  • OpenAI /v1/chat/completions, temperature: 0, max_tokens: 512, non-streaming.
  • Every measured response reached exactly 512 completion tokens and ended with finish_reason: length.
  • Each reported arm was the first request after a complete server restart and model reload.
  • Worker order was 11 -> 18 -> 22 for the systems prompt and 18 -> 11 -> 22 for the code prompt. The order was not fully randomized or alternated.
  • Only one measured run per arm per prompt. There was no reboot between arms.
  • Decode throughput, draft counts, cache-hit counts and PCIe-routed share below come from the engine log. Wall time was measured around the HTTP request.
  • This version can produce a different greedy path when worker count changes. For both prompts, however, the 18-worker and 22-worker arms had identical draft counts, cache-hit counts and PCIe routing counts, which makes that smaller comparison cleaner. The 11-worker path differed slightly.
Exact prompts

Systems prompt:

Scrivi un'analisi tecnica continua e dettagliata, di almeno 1200 parole, su come progettare un sistema locale affidabile per inferenza multimodale. Tratta gestione della memoria, parallelismo CPU/GPU, code delle richieste, osservabilita, test di regressione e gestione dei guasti. Non usare tabelle, non concludere prima di avere sviluppato tutti i punti e non menzionare queste istruzioni.

Code prompt:

Progetta e implementa in Python un servizio asincrono di coda per richieste di inferenza. Fornisci codice completo con dataclass per i job, priorita, timeout, cancellazione, backpressure, metriche e shutdown ordinato. Includi spiegazioni tecniche e test essenziali. Continua fino a coprire dettagliatamente tutti i componenti e non menzionare queste istruzioni.

Results

Systems-design prompt, 142 prompt tokens + 512 generated tokens

pool workers prefill decode HTTP wall drafts accepted decode cache hit GPU/PCIe additional routed share
11 42.7 tok/s 49.5 tok/s 13.704 s 274 / 345 69.4% (163,870 / 236,215) 3.2% (7,732 / 243,947)
18 44.1 tok/s 54.7 tok/s 12.617 s 282 / 355 68.5% (161,693 / 236,066) 3.3% (8,089 / 244,155)
22 40.8 tok/s 55.5 tok/s 12.787 s 282 / 355 68.5% (161,693 / 236,066) 3.3% (8,089 / 244,155)

The 18-worker and 22-worker arms followed the same generated path according to the engine counters. On that matched path, 18 -> 22 moved decode from 54.7 to 55.5 tok/s, about +1.5%. Prefill did not improve with worker count.

Python-code prompt, 131 prompt tokens + 512 generated tokens

pool workers prefill decode HTTP wall drafts accepted decode cache hit GPU/PCIe additional routed share
11 41.6 tok/s 47.7 tok/s 13.895 s 238 / 331 73.9% (186,028 / 251,564) 2.4% (6,074 / 257,638)
18 41.9 tok/s 50.7 tok/s 13.251 s 215 / 306 74.3% (186,299 / 250,872) 2.2% (5,613 / 256,485)
22 41.9 tok/s 51.1 tok/s 13.173 s 215 / 306 74.3% (186,299 / 250,872) 2.2% (5,613 / 256,485)

Again, the 18-worker and 22-worker arms had identical draft/cache/routing counters. On that matched path, 18 -> 22 moved decode from 50.7 to 51.1 tok/s, about +0.8%.

Compact summary

These are means across two different prompts, not repeated trials of one workload:

pool workers mean decode change from 11 change from previous arm
11 48.6 tok/s baseline -
18 52.7 tok/s +8.4% +8.4%
22 53.3 tok/s +9.7% +1.1%

The average HTTP wall time was 13.800 s at 11 workers, 12.934 s at 18, and 12.980 s at 22. The decode improvement above 18 workers was mostly offset by ordinary prefill/start-of-request variation in this very small sample.

One discarded warm-state observation

Before correcting the protocol, I ran the code prompt at 22 workers as the second request on an already-used 22-worker server. That request reported 55.6 tok/s, 76.3% cache hit and 243/329 accepted drafts. I excluded it from the table because it was not comparable with the fresh-server 11- and 18-worker arms. After a complete restart, the proper first-request 22-worker result was 51.1 tok/s with the exact same draft/cache/routing counters as the fresh 18-worker result.

That discarded point is still a useful reminder that adaptive/warm state can be larger than the 18 -> 22 worker effect on this machine.

My interpretation

This box is CPU-sensitive because its decode cache-hit rate is only about 68.5-74.3%, and the link probe selects a low pcie_frac of 0.19, so a meaningful share of miss work remains on the CPU pool. Reducing the pool to 11 workers costs about 6-10% decode on these two prompts. However, this old dual-socket Haswell system is already close to a plateau by 18 workers: using 22 of its 24 physical cores adds only about 1% mean decode in this sample.

I left the production configuration at 22 workers because the other workloads on this machine are sporadic, but 18 workers appears to be the better efficiency/coexistence point.

The result supports the main point of this issue: GPU names alone would not explain this run. The measured link, cache residency/hit rate, auto-selected pcie_frac, CPU model, effective worker placement, fixed split and warm/adaptive state are all needed to interpret the number.

If this machine is useful as the requested third configuration, I can run a stricter pre-declared alternating protocol with more fresh starts per arm. I would probably compare 11, 18 and 22 workers again, record every startup fact, and report medians/spread rather than means.

<!-- gh-comment-id:6543992147 --> @longstone78 commented on GitHub (Oct 31, 2026): Thanks for opening this issue. I ran a small exploratory `--pool-workers` sweep on a third, fairly different machine: dual Haswell-EP, 2x RTX 5060 Ti 16 GB, a measured Gen3 x8 link per card, and a much lower decode cache-hit rate than the 4090 system discussed above. The short result is that moving from 11 to 18 workers improved mean decode throughput across two different prompts by about 8.4%, while moving from 18 to 22 added only about 1.1%. This is only `n=1` per arm and the arms were not fully alternated, so I am reporting it as a machine-specific exploratory result, not a general performance claim. ## Host - OS: Ubuntu 24.04.5 LTS, kernel `6.8.0-138-generic`, x86-64. - CPU: 2x Intel Xeon E5-2680 v3 (Haswell-EP), 12 physical cores / 24 threads per socket, 24 physical cores / 48 logical CPUs total, 2.50 GHz base / 3.30 GHz max turbo, AVX2 and no AVX-512. - Logical CPU numbering: CPUs 0-11 are the first hardware threads of socket 0, 12-23 are the first hardware threads of socket 1, and 24-47 are their SMT siblings. - NUMA as exposed by Linux: one node containing CPUs 0-47. Both GPU sysfs devices report `numa_node=-1`. This may be firmware/node interleaving, but I did not change the BIOS to investigate it. - RAM: 96 GiB installed, 94.16 GiB visible to Linux. I could not obtain DIMM channel/rank/speed data without privileged DMI access, so those fields are missing. - Motherboard DMI: vendor `INTEL`, product/board `X99`, C610/X99 chipset. This is a generic identification rather than a useful model number. - BIOS: American Megatrends 5.11, 2020-09-02. - GPU 0: NVIDIA GeForce RTX 5060 Ti, 16,311 MiB, PCI `0000:02:00.0`. - GPU 1: NVIDIA GeForce RTX 5060 Ti, 16,311 MiB, PCI `0000:03:00.0`. - Driver: NVIDIA 610.43.02. - Both cards: PCIe maximum Gen3 x8 on this platform. I observed Gen1 x8 while idle and Gen3 x8 with the model active. Both displays are disabled. - Engine link probe at every tested start: 6.9 GB/s host-to-device on CUDA0 and 6.9 GB/s on CUDA1, best-of-four `6.9 6.9 6.9 6.9` for both cards. - GPU power limit: 180 W per card. Temperatures immediately after the final run were 39 C and 40 C. I did not sample temperature or power throughout the runs. - `RLIMIT_MEMLOCK`: 12,637,913,088 bytes (11.77 GiB; shell `ulimit -l` reports 12,341,712 KiB). - Current engine `VmLck`: 0 KiB. This old build does not print the newer `PLE table locked in RAM` / `loaded (not locked)` line. It does print `expert arena: cudaHostRegister PORTABLE ok`. - No other GPU compute processes were active during these measurements. The local llama.cpp, DINO and Grounding DINO services were inactive. ## Strata, model and effective runtime configuration - Repository: `Niko1221/Strata`. - Git HEAD: `477ac13cbe8e582c20484871ce459d20d82df09d`, described as `v0.1.45-dirty`. - Engine `BUILD.json`: version `0.1.45`, source `b95137167bd9b751`, CUDA architecture `[120]`, vision backend `cpu`, vision source `13d9deaf827f14ef`. - The only tracked local source change adds the Italian draft-vocabulary option to `setup.py`; `data/draft_vocab_it.bin` is also present as an untracked local data file. The engine itself was not patched for this worker test. - Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S, native + PLE GGUF split. - MTP: RT draft layer, Italian draft vocabulary. - Vision: enabled, CPU vision encoder with 24 threads. - Maximum context: 262,144 tokens. - KV: int8, 32,768 resident cells; startup reports 1.29 GiB of pinned RAM for streamed K/V. - Speculation: `--spec 4 --spec-min-p 0.5`. - Expert cache: automatic. - Prefill: automatic. - Fixed layer split: `20`; CUDA0 runs layers 0-19 and CUDA1 runs layers 20-47. - VRAM reservations: `--vram-reserve-mib 9216 --vram-reserve-later-mib 6656`. These were chosen so occasional vision workloads can coexist on the cards. - Startup residency was identical for the tested arms: 1,198 expert slots / 2.17 GiB on the first stage and 1,574 slots / 3.12 GiB on CUDA1, 2,772 resident experts in total. - R4 GPU hit path: on. - Route-tail skip: default 7, on. - Adaptive overlap: off because this is a layer split. - Link auto-tuning: the 6.9 GB/s probe selected `pcie_frac 0.19` versus the engine default 0.55. I did not pin `--pcie-frac` explicitly. - Worker placements were the host thread on logical CPU 0 and workers on consecutive physical CPUs: 1-11, 1-18, or 1-22. At 22 workers the remaining auxiliary set was CPUs 24, 23 and 47, with auxiliary CPUs off at request start. The only variable intentionally changed between arms was `--pool-workers`. ## Protocol and limitations - Two fixed Italian prompts: one long-form systems-design explanation and one Python async queue implementation. - OpenAI `/v1/chat/completions`, `temperature: 0`, `max_tokens: 512`, non-streaming. - Every measured response reached exactly 512 completion tokens and ended with `finish_reason: length`. - Each reported arm was the first request after a complete server restart and model reload. - Worker order was 11 -> 18 -> 22 for the systems prompt and 18 -> 11 -> 22 for the code prompt. The order was not fully randomized or alternated. - Only one measured run per arm per prompt. There was no reboot between arms. - Decode throughput, draft counts, cache-hit counts and PCIe-routed share below come from the engine log. Wall time was measured around the HTTP request. - This version can produce a different greedy path when worker count changes. For both prompts, however, the 18-worker and 22-worker arms had identical draft counts, cache-hit counts and PCIe routing counts, which makes that smaller comparison cleaner. The 11-worker path differed slightly. <details> <summary>Exact prompts</summary> Systems prompt: > Scrivi un'analisi tecnica continua e dettagliata, di almeno 1200 parole, su come progettare un sistema locale affidabile per inferenza multimodale. Tratta gestione della memoria, parallelismo CPU/GPU, code delle richieste, osservabilita, test di regressione e gestione dei guasti. Non usare tabelle, non concludere prima di avere sviluppato tutti i punti e non menzionare queste istruzioni. Code prompt: > Progetta e implementa in Python un servizio asincrono di coda per richieste di inferenza. Fornisci codice completo con dataclass per i job, priorita, timeout, cancellazione, backpressure, metriche e shutdown ordinato. Includi spiegazioni tecniche e test essenziali. Continua fino a coprire dettagliatamente tutti i componenti e non menzionare queste istruzioni. </details> ## Results ### Systems-design prompt, 142 prompt tokens + 512 generated tokens | pool workers | prefill | decode | HTTP wall | drafts accepted | decode cache hit | GPU/PCIe additional routed share | |---:|---:|---:|---:|---:|---:|---:| | 11 | 42.7 tok/s | 49.5 tok/s | 13.704 s | 274 / 345 | 69.4% (163,870 / 236,215) | 3.2% (7,732 / 243,947) | | 18 | 44.1 tok/s | 54.7 tok/s | 12.617 s | 282 / 355 | 68.5% (161,693 / 236,066) | 3.3% (8,089 / 244,155) | | 22 | 40.8 tok/s | 55.5 tok/s | 12.787 s | 282 / 355 | 68.5% (161,693 / 236,066) | 3.3% (8,089 / 244,155) | The 18-worker and 22-worker arms followed the same generated path according to the engine counters. On that matched path, 18 -> 22 moved decode from 54.7 to 55.5 tok/s, about +1.5%. Prefill did not improve with worker count. ### Python-code prompt, 131 prompt tokens + 512 generated tokens | pool workers | prefill | decode | HTTP wall | drafts accepted | decode cache hit | GPU/PCIe additional routed share | |---:|---:|---:|---:|---:|---:|---:| | 11 | 41.6 tok/s | 47.7 tok/s | 13.895 s | 238 / 331 | 73.9% (186,028 / 251,564) | 2.4% (6,074 / 257,638) | | 18 | 41.9 tok/s | 50.7 tok/s | 13.251 s | 215 / 306 | 74.3% (186,299 / 250,872) | 2.2% (5,613 / 256,485) | | 22 | 41.9 tok/s | 51.1 tok/s | 13.173 s | 215 / 306 | 74.3% (186,299 / 250,872) | 2.2% (5,613 / 256,485) | Again, the 18-worker and 22-worker arms had identical draft/cache/routing counters. On that matched path, 18 -> 22 moved decode from 50.7 to 51.1 tok/s, about +0.8%. ### Compact summary These are means across two different prompts, not repeated trials of one workload: | pool workers | mean decode | change from 11 | change from previous arm | |---:|---:|---:|---:| | 11 | 48.6 tok/s | baseline | - | | 18 | 52.7 tok/s | +8.4% | +8.4% | | 22 | 53.3 tok/s | +9.7% | +1.1% | The average HTTP wall time was 13.800 s at 11 workers, 12.934 s at 18, and 12.980 s at 22. The decode improvement above 18 workers was mostly offset by ordinary prefill/start-of-request variation in this very small sample. ## One discarded warm-state observation Before correcting the protocol, I ran the code prompt at 22 workers as the second request on an already-used 22-worker server. That request reported 55.6 tok/s, 76.3% cache hit and 243/329 accepted drafts. I excluded it from the table because it was not comparable with the fresh-server 11- and 18-worker arms. After a complete restart, the proper first-request 22-worker result was 51.1 tok/s with the exact same draft/cache/routing counters as the fresh 18-worker result. That discarded point is still a useful reminder that adaptive/warm state can be larger than the 18 -> 22 worker effect on this machine. ## My interpretation This box is CPU-sensitive because its decode cache-hit rate is only about 68.5-74.3%, and the link probe selects a low `pcie_frac` of 0.19, so a meaningful share of miss work remains on the CPU pool. Reducing the pool to 11 workers costs about 6-10% decode on these two prompts. However, this old dual-socket Haswell system is already close to a plateau by 18 workers: using 22 of its 24 physical cores adds only about 1% mean decode in this sample. I left the production configuration at 22 workers because the other workloads on this machine are sporadic, but 18 workers appears to be the better efficiency/coexistence point. The result supports the main point of this issue: GPU names alone would not explain this run. The measured link, cache residency/hit rate, auto-selected `pcie_frac`, CPU model, effective worker placement, fixed split and warm/adaptive state are all needed to interpret the number. If this machine is useful as the requested third configuration, I can run a stricter pre-declared alternating protocol with more fresh starts per arm. I would probably compare 11, 18 and 22 workers again, record every startup fact, and report medians/spread rather than means.
Author
Owner

@fioruccione commented on GitHub (Oct 31, 2026):

Thanks @longstone78, this is exactly the third machine the thread needed, and the host facts are all there.

In return, here is everything I run on my box (2x RTX 4060 Ti 16 GB, Ada sm_89, Gen4 x8 probing 13.3 GB/s, TR PRO 3975WX, 0.2.7.1 built for sm_89), with what each piece measured here. Your cards are Blackwell and your link is half of mine, so treat every number as mine, not as a prediction for yours.

Two things I'd look at first on your box

  • VRAM reservations. With --vram-reserve-mib 9216 --vram-reserve-later-mib 6656 you keep about 15.6 GB of 32 free for vision, and you end up with 2,772 resident experts. With --vram-reserve-mib 700 and the defaults for the rest, my two cards hold 7,615 resident experts (the token graph hit path line) and the decode hit rate sits around 83%, against your 68-74%. Your IQ3_S experts are smaller than my UD-IQ4_XS ones, so the same VRAM should hold even more of them on your box. I run --vision too, with the encoder on the CPU ("gpu": false for vision in the config). If vision is occasional, this is probably your biggest lever, bigger than the cores.
  • --pcie-frac. When I calibrated, the auto-probe picked 0.37 (40.8 tok/s) and 0.00 gave 50.3, +23%. With a 6.9 GB/s link the CPU path should look even better on paper, but your pool is already close to a plateau at 18 workers, so here it really has to be measured.

Engine options in production (besides pack, model, profile and vision):

--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.50
--mtp <draft dir with the Italian vocabulary>
--max-context 262144 --kv int8 --kv-resident 32768 --remote-expert-opt
--pcie-frac 0.00 --vram-reserve-mib 700
--conversation-cache-mib 8192 --conversation-cache-slots 4
layer_split auto (it picks K=23 here)

Environment, all A/B-tested here one change at a time:

# prefill: +4-6% at 20-69K, decode unchanged, UPMIX bit-exact
STRATA_PROMPT_ATTN_IMMA=1
STRATA_HC_UPMIX=1
# the sm_86 set, used here on sm_89: decode +8% prose, +8% code, +12% on a 20K summary, energy -4%, prefill unchanged
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

The sm_86 set was tuned for Ampere. On Ada it paid, and on Blackwell nobody has measured it as far as I know, so I'd test it as one arm, not copy it.

Things that did not pay here, to save you the time:

  • power limit 165 -> 100 W: no measurable change in decode;
  • PowerMizer "max performance": nothing, +35 W at idle;
  • --trim-stage-weights: +25% experts and +6 points of hit rate, but decode flat and prefill +1-4%;
  • --pipeline-windows: +8-11% at T=0 with a lot of variance, -7% on a 20K summary, +18% energy;
  • version 0.1.45 -> 0.2.7.1 alone: neutral here. The gain came from the sm_86 set.

One home experiment, not in production numbers: VRAM memory offset +2000 (nvidia-settings) gave about +12% decode on a bench and +13% on real work at 120K+ context, with 0 Xid in 5.5 hours. My cards are GDDR6, yours are GDDR7, and I can't read memory temperature on either, so that one is at your own risk.

Not tried here, but measured by others: STRATA_ROUTE_PRIOR (0.2.7+). In #4345 and #4573 it moved the hit rate from about 87% to 97-98% and decode by 30-50%, at a measured quality cost (#4345 has the KL table). With your hit rate it might be the strongest of all, but it trades quality for speed, so I'd measure both.

On method, the only thing that worked for me: one change per arm, a fresh server per start, the first run discarded, arms alternated, and three or four runs per arm at least.

I did this with an AI coding assistant: it read my config and notes and drafted this text. The settings and the numbers are from my machine, and I checked them.

<!-- gh-comment-id:6544548925 --> @fioruccione commented on GitHub (Oct 31, 2026): Thanks @longstone78, this is exactly the third machine the thread needed, and the host facts are all there. In return, here is everything I run on my box (2x RTX 4060 Ti 16 GB, Ada sm_89, Gen4 x8 probing 13.3 GB/s, TR PRO 3975WX, 0.2.7.1 built for sm_89), with what each piece measured here. Your cards are Blackwell and your link is half of mine, so treat every number as mine, not as a prediction for yours. **Two things I'd look at first on your box** - **VRAM reservations.** With `--vram-reserve-mib 9216 --vram-reserve-later-mib 6656` you keep about 15.6 GB of 32 free for vision, and you end up with 2,772 resident experts. With `--vram-reserve-mib 700` and the defaults for the rest, my two cards hold 7,615 resident experts (the `token graph hit path` line) and the decode hit rate sits around 83%, against your 68-74%. Your IQ3_S experts are smaller than my UD-IQ4_XS ones, so the same VRAM should hold even more of them on your box. I run `--vision` too, with the encoder on the CPU (`"gpu": false` for vision in the config). If vision is occasional, this is probably your biggest lever, bigger than the cores. - **`--pcie-frac`.** When I calibrated, the auto-probe picked 0.37 (40.8 tok/s) and `0.00` gave 50.3, +23%. With a 6.9 GB/s link the CPU path should look even better on paper, but your pool is already close to a plateau at 18 workers, so here it really has to be measured. **Engine options in production** (besides pack, model, profile and vision): ``` --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.50 --mtp <draft dir with the Italian vocabulary> --max-context 262144 --kv int8 --kv-resident 32768 --remote-expert-opt --pcie-frac 0.00 --vram-reserve-mib 700 --conversation-cache-mib 8192 --conversation-cache-slots 4 layer_split auto (it picks K=23 here) ``` **Environment, all A/B-tested here one change at a time:** ``` # prefill: +4-6% at 20-69K, decode unchanged, UPMIX bit-exact STRATA_PROMPT_ATTN_IMMA=1 STRATA_HC_UPMIX=1 # the sm_86 set, used here on sm_89: decode +8% prose, +8% code, +12% on a 20K summary, energy -4%, prefill unchanged 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 ``` The sm_86 set was tuned for Ampere. On Ada it paid, and on Blackwell nobody has measured it as far as I know, so I'd test it as one arm, not copy it. **Things that did not pay here,** to save you the time: - power limit 165 -> 100 W: no measurable change in decode; - PowerMizer "max performance": nothing, +35 W at idle; - `--trim-stage-weights`: +25% experts and +6 points of hit rate, but decode flat and prefill +1-4%; - `--pipeline-windows`: +8-11% at T=0 with a lot of variance, -7% on a 20K summary, +18% energy; - version 0.1.45 -> 0.2.7.1 alone: neutral here. The gain came from the sm_86 set. **One home experiment, not in production numbers:** VRAM memory offset +2000 (nvidia-settings) gave about +12% decode on a bench and +13% on real work at 120K+ context, with 0 Xid in 5.5 hours. My cards are GDDR6, yours are GDDR7, and I can't read memory temperature on either, so that one is at your own risk. **Not tried here, but measured by others:** `STRATA_ROUTE_PRIOR` (0.2.7+). In #4345 and #4573 it moved the hit rate from about 87% to 97-98% and decode by 30-50%, at a measured quality cost (#4345 has the KL table). With your hit rate it might be the strongest of all, but it trades quality for speed, so I'd measure both. On method, the only thing that worked for me: one change per arm, a fresh server per start, the first run discarded, arms alternated, and three or four runs per arm at least. I did this with an AI coding assistant: it read my config and notes and drafted this text. The settings and the numbers are from my machine, and I checked them.
Author
Owner

@udqe commented on GitHub (Oct 31, 2026):

Answering the four-item list from our side - the 4090 box already quoted in this thread (the n=44 pool row) is ours, and everything below was already in our logs before the list existed, so no new runs were needed. Windows, so the power-plan variable fioruccione suspected applies to us.

1. pool workers: default 30 vs --pool-workers 8, alternating sessions, pre-declared rule. 44 decode runs, 5 paired fresh-server sessions, salted cold 150K prompts: pooled median w30 101.6 vs w8 102.0 (+0.34%), sign split 2 of 4, rule not met - undetectable at our hit rate (aggregate 97.4%). Within-run spread on this box is 87-115 tok/s (28%), so sub-1% is unresolvable here at any n we ran. Per-window hit rates in those sessions: 96.6-99.3%. This is the deliberate opposite pole from fioruccione's rig (82.9% hits, 1.7 missed experts per token vs our 0.26, -12..-21% at 8 workers): same knob, opposite sensitivity, and the only reason we can say "no effect" honestly is that his box says "big effect" with the protocol written down first.

2. layer-major on our config: it declines, with the exact line, 199 times. Every long-prompt start in the last two days prints layer-major off for this prompt: no VRAM for a super-chunk (1171 MiB free)-style (free MiB varies, 1100-1800), 199 occurrences, never a walk start. Config: 2x 4090 24 GB, fixed split K22, --kv-resident 32768, expert cache ~5,070 slots, margin96/972. So on this box "does the walk start on a long prompt" = "no, and the refusal line plus its free-MiB figure is the whole answer"; we can't contribute a walk measurement at 24 GB/cards without gutting the expert cache.

3. link probe across start contexts: 119 link lines, 15 misfires, trigger pinned. All from the layer_split=auto era (our production split is fixed 22, where the line never prints - its blindspot, noted in our self-correction). The misread is discrete and reproducible: first start within ~a minute of resume-from-sleep catches the display-attached CUDA0 at exactly half its true generation value (6.7 vs 26.4 on Gen4), 4 of 8 such starts, 0 of 2 plain restarts, 0 of 1 deepest-cold boot; CUDA1 never; miss cost always x1.00.

4. host facts, filled from the list: Windows 11 (26200), driver 610.88, both cards RTX 4090 24 GB (24,564 MiB), Gen4 x16 both, probe 26.4 GB/s steady, display on CUDA0; TR 3970X 32c/64t, 8x16 GB DDR4-3200 tightened timings (204.8 GB/s theoretical, memcpy never run); pool workers 30 (default on this CPU), --pcie-frac 0.20 set explicitly; engine 0.1.54 (release 0.2.8), will note separately what changes if we move to 0.1.55 - we are holding production at 0.1.54 exactly because of the arm-delivery lesson this thread keeps teaching; power plan AMD Ryzen Balanced, sleep enabled (our 26.4-era "idle" mislabels came from exactly this - the apology comment), RLIMIT_MEMLOCK-equivalent: Windows page-lock, ours succeeds (PLE table locked in RAM at every boot; liaiwu's refused-state is Linux-unit specific as far as we can see).

One asymmetry worth stating since the list asks for comparability: our box contributes the HIGH-hit-rate corner (97%+) and the quiet-link corner (x16 Gen4), fioruccione's the low-hit corner, longstone78's the low-link low-hit corner. If a fifth machine shows up it should ideally be low-hit AND multi-NUMA - the one axis nobody covers is >1 NUMA node with experts, since both our box (1 node) and his (single socket) hide it.

(AI-assisted as usual: the model served by this repo's engine read its own logs and drafted this; all numbers are from runs this box made, several of them in the thread above.)

<!-- gh-comment-id:6547727537 --> @udqe commented on GitHub (Oct 31, 2026): Answering the four-item list from our side - the 4090 box already quoted in this thread (the n=44 pool row) is ours, and everything below was already in our logs before the list existed, so no new runs were needed. Windows, so the power-plan variable fioruccione suspected applies to us. **1. pool workers: default 30 vs `--pool-workers 8`, alternating sessions, pre-declared rule.** 44 decode runs, 5 paired fresh-server sessions, salted cold 150K prompts: pooled median w30 101.6 vs w8 102.0 (+0.34%), sign split 2 of 4, rule not met - **undetectable at our hit rate (aggregate 97.4%)**. Within-run spread on this box is 87-115 tok/s (28%), so sub-1% is unresolvable here at any n we ran. Per-window hit rates in those sessions: 96.6-99.3%. This is the deliberate opposite pole from fioruccione's rig (82.9% hits, 1.7 missed experts per token vs our 0.26, -12..-21% at 8 workers): same knob, opposite sensitivity, and the only reason we can say "no effect" honestly is that his box says "big effect" with the protocol written down first. **2. layer-major on our config: it declines, with the exact line, 199 times.** Every long-prompt start in the last two days prints `layer-major off for this prompt: no VRAM for a super-chunk (1171 MiB free)`-style (free MiB varies, 1100-1800), 199 occurrences, never a walk start. Config: 2x 4090 24 GB, fixed split K22, `--kv-resident 32768`, expert cache ~5,070 slots, margin96/972. So on this box "does the walk start on a long prompt" = "no, and the refusal line plus its free-MiB figure is the whole answer"; we can't contribute a walk measurement at 24 GB/cards without gutting the expert cache. **3. link probe across start contexts: 119 link lines, 15 misfires, trigger pinned.** All from the `layer_split=auto` era (our production split is fixed 22, where the line never prints - its blindspot, noted in our self-correction). The misread is discrete and reproducible: first start within ~a minute of resume-from-sleep catches the display-attached CUDA0 at exactly half its true generation value (6.7 vs 26.4 on Gen4), 4 of 8 such starts, 0 of 2 plain restarts, 0 of 1 deepest-cold boot; CUDA1 never; miss cost always x1.00. **4. host facts, filled from the list:** Windows 11 (26200), driver 610.88, both cards RTX 4090 24 GB (24,564 MiB), Gen4 x16 both, probe 26.4 GB/s steady, display on CUDA0; TR 3970X 32c/64t, 8x16 GB DDR4-3200 tightened timings (204.8 GB/s theoretical, memcpy never run); pool workers 30 (default on this CPU), `--pcie-frac 0.20` set explicitly; engine 0.1.54 (release 0.2.8), will note separately what changes if we move to 0.1.55 - we are holding production at 0.1.54 exactly because of the arm-delivery lesson this thread keeps teaching; power plan AMD Ryzen Balanced, **sleep enabled** (our 26.4-era "idle" mislabels came from exactly this - the apology comment), `RLIMIT_MEMLOCK`-equivalent: Windows page-lock, ours succeeds (`PLE table locked in RAM` at every boot; liaiwu's refused-state is Linux-unit specific as far as we can see). One asymmetry worth stating since the list asks for comparability: our box contributes the HIGH-hit-rate corner (97%+) and the quiet-link corner (x16 Gen4), fioruccione's the low-hit corner, longstone78's the low-link low-hit corner. If a fifth machine shows up it should ideally be low-hit AND multi-NUMA - the one axis nobody covers is >1 NUMA node with experts, since both our box (1 node) and his (single socket) hide it. (AI-assisted as usual: the model served by this repo's engine read its own logs and drafted this; all numbers are from runs this box made, several of them in the thread above.)
Author
Owner

@Burntgogi commented on GitHub (Nov 1, 2026):

A timing-field example from a two-RTX-3090 Qwen comparison

One additional case for this reporting proposal: a reanalysis of our saved 0.2.4.2 versus 0.2.9 comparison gives different changes for native-time and client-SSE decode rates. The client figures were already included in #4147; the native-time means below are newly calculated from the same captured requests, not new model runs. This is a custom deployment comparison, not a standard benchmark submission or a confirmed regression report.

Setup: Linux x86_64, Ryzen 7 5700X, 64 GB-class RAM, two RTX 3090 cards with 24 GiB each; Qwen3.8-Flash-Next IQ3_S in a layer split. Configured context 147,456. Baseline: source 0.2.4.2 / Qwen engine 0.1.48. Candidate: source 0.2.9 / Qwen engine 0.1.55, both official CUDA13 packages. The engine reported 7 pool workers and pcie_frac=0.19 in all four starts.

The same weights, initial expert-profile seed, device order and base options were used. Process order was old → new → new → old, two fresh starts per version. Each version had six short-input and six long-input speed samples: 188/512 input/output tokens and 131,134/1,024 respectively. All speed outputs reached the requested length cap. Each group includes initial and prefix-reused requests; it is not a cold-only workload. The two metrics below use the same samples, not independent sets.

Important non-default condition: both arms used the same unchanged experimental-speed control vector, strength 1.0, layers 4–44, project / per-layer, with the related sampling toggle enabled. No vector-off arm was measured. These are not stock-profile results.

Input / metric 0.2.4.2 / 0.1.48, tok/s 0.2.9 / 0.1.55, tok/s Change n per version
Short / native-time mean 136.57 131.19 -3.9% 6
Short / client-SSE mean 130.46 122.01 -6.5% 6
Long / native-time mean 121.47 120.82 -0.5% 6
Long / client-SSE mean 111.47 108.71 -2.5% 6

Both are arithmetic means of per-request rates. Native-time rate is predicted_n / (predicted_ms / 1000) from the captured native timings. Client rate is (completion_tokens - 1) / (SSE completion wall time - time to first nonempty reasoning or answer delta). They cover different boundaries. The percentage gaps must not be subtracted and called server overhead; these records do not isolate the cause.

Actual path selection also matters. Both candidate starts announced layer-major prefill but declined it for the initial long prompts, for example:

strata prefill: layer-major off for this prompt: no VRAM for a super-chunk (589 MiB free)

That is configuration context, not a new fallback bug or an explanation of the decode difference. Related fallback behavior is already discussed in #3976.

Would it help for the report to retain both named timing definitions and their token counts, the first/last delta and SSE-end timestamps, and the requested versus effective prefill path with its fallback reason? This would keep native and client rates from looking interchangeable and help select the next profiling step before attributing a version effect.

Limits: small sample, no statistical significance claim; source server and native engine changed together. Clocks, temperature and OS page-cache state were not fully controlled. No additional profiling or vector-off test was run for this reanalysis. Length-capped coding outputs are not a coding-correctness test. No DeepSeek sizing result or historical cache-admission failure is being resubmitted here.

Only generic hardware/model facts, necessary technical settings, aggregate measurements and one numeric log excerpt are included. No credentials, local paths, device identifiers, raw request/response content, projection files or full logs are attached.

<!-- gh-comment-id:6558960748 --> @Burntgogi commented on GitHub (Nov 1, 2026): ## A timing-field example from a two-RTX-3090 Qwen comparison One additional case for this reporting proposal: a reanalysis of our saved 0.2.4.2 versus 0.2.9 comparison gives different changes for native-time and client-SSE decode rates. The client figures were already included in #4147; the native-time means below are newly calculated from the same captured requests, not new model runs. This is a custom deployment comparison, not a standard benchmark submission or a confirmed regression report. Setup: Linux x86_64, Ryzen 7 5700X, 64 GB-class RAM, two RTX 3090 cards with 24 GiB each; Qwen3.8-Flash-Next IQ3_S in a layer split. Configured context 147,456. Baseline: source 0.2.4.2 / Qwen engine 0.1.48. Candidate: source 0.2.9 / Qwen engine 0.1.55, both official CUDA13 packages. The engine reported 7 pool workers and `pcie_frac=0.19` in all four starts. The same weights, initial expert-profile seed, device order and base options were used. Process order was old → new → new → old, two fresh starts per version. Each version had six short-input and six long-input speed samples: 188/512 input/output tokens and 131,134/1,024 respectively. All speed outputs reached the requested length cap. Each group includes initial and prefix-reused requests; it is not a cold-only workload. The two metrics below use the same samples, not independent sets. Important non-default condition: both arms used the same unchanged experimental-speed control vector, strength 1.0, layers 4–44, `project` / `per-layer`, with the related sampling toggle enabled. No vector-off arm was measured. These are not stock-profile results. | Input / metric | 0.2.4.2 / 0.1.48, tok/s | 0.2.9 / 0.1.55, tok/s | Change | n per version | |---|---:|---:|---:|---:| | Short / native-time mean | 136.57 | 131.19 | -3.9% | 6 | | Short / client-SSE mean | 130.46 | 122.01 | -6.5% | 6 | | Long / native-time mean | 121.47 | 120.82 | -0.5% | 6 | | Long / client-SSE mean | 111.47 | 108.71 | -2.5% | 6 | Both are arithmetic means of per-request rates. Native-time rate is `predicted_n / (predicted_ms / 1000)` from the captured native timings. Client rate is `(completion_tokens - 1) / (SSE completion wall time - time to first nonempty reasoning or answer delta)`. They cover different boundaries. The percentage gaps must not be subtracted and called server overhead; these records do not isolate the cause. Actual path selection also matters. Both candidate starts announced layer-major prefill but declined it for the initial long prompts, for example: ```text strata prefill: layer-major off for this prompt: no VRAM for a super-chunk (589 MiB free) ``` That is configuration context, not a new fallback bug or an explanation of the decode difference. Related fallback behavior is already discussed in #3976. Would it help for the report to retain both named timing definitions and their token counts, the first/last delta and SSE-end timestamps, and the requested versus effective prefill path with its fallback reason? This would keep native and client rates from looking interchangeable and help select the next profiling step before attributing a version effect. Limits: small sample, no statistical significance claim; source server and native engine changed together. Clocks, temperature and OS page-cache state were not fully controlled. No additional profiling or vector-off test was run for this reanalysis. Length-capped coding outputs are not a coding-correctness test. No DeepSeek sizing result or historical cache-admission failure is being resubmitted here. Only generic hardware/model facts, necessary technical settings, aggregate measurements and one numeric log excerpt are included. No credentials, local paths, device identifiers, raw request/response content, projection files or full logs are attached.
Author
Owner

@fioruccione commented on GitHub (Nov 1, 2026):

Three more A/B runs from my box, same method as before: fresh server per start, arms alternated, one warm-up request discarded, then prose x2 and code x2 (400 tokens, T=0) and a 20K-token summary (300 tokens). Following @Burntgogi's point, the rate is the engine's own timing (predicted_per_second in the response timings), not a client SSE rate. Box: 2x RTX 4060 Ti 16 GB, TR PRO 3975WX, 128 GB, 0.2.7.1 built for sm_89, production config, VRAM memory offset +2000 in every arm.

1. The memlock line (@liaiwu)

Thanks for it, my box was in the refused state at every start. The default memlock limit here is 15.7 GiB (16,860,569,600 bytes, nothing set in limits.conf or systemd) and the PLE table is 26.8 GiB, so all 54 starts in my log printed PLE table mlock failed and loaded (not locked), with VmLck 0.

Six starts, U L L U U L, the only change being the soft memlock limit of the server set with prlimit. Every L start printed PLE table locked in RAM with VmLck 28.1 GB, every U start the refusal.

prose+code, tok/s 20K summary, tok/s
U, not locked (3 starts) 79.50 (79.40 / 79.58 / 79.52) 56.87
L, locked (3 starts) 79.64 (79.50 / 79.47 / 79.95) 57.10

+0.2%, most of it from the last start: no measurable difference here. My guess, not measured, is that with 128 GB and no memory pressure the table stays resident anyway. So I agree the line is what tells you the state, but the effect is per machine: +6% on your 4090, +0.2% here.

I also ran the --ple-io direct arm @alexanderi96 suggested in #4671: six more starts, D R R D D R, R being production as it starts (ram chosen by the residency policy, not locked), D the same config plus --ple-io direct (probe 58-98K rows/s, "fine"). NVMe SSD.

prose+code, tok/s 20K summary decode, tok/s 20K prefill, tok/s engine RSS MemAvailable
R, ram (3 starts) 80.28 (80.20 / 80.38 / 80.25) 59.27 (58.6 / 59.1 / 60.1) 1737 89.9 GiB 47.0 GiB
D, direct (3 starts) 79.66 (79.28 / 79.25 / 80.45) 57.37 (56.6 / 57.2 / 58.3) 1660 63.1 GiB 47.0 GiB

Short prompts are flat (-0.8%), but at 20K direct is slower in all three starts: -3.2% decode, -4.4% prefill, and the ranges don't overlap. And on this box it gives no RAM back: RSS drops by the table, but MemAvailable is the same, because the unlocked table is file-backed pages the kernel counts as reclaimable anyway. So here ram unlocked is the best of the three: same speed as locked, faster than direct at long context, and no memory pinned.

2. Same box, same config, a different model file

@longstone78 runs ISTA-DASLab's GSQ-RCO IQ3_S, so I downloaded the same file (sha256 checked against setup.py) and ran it against my production UD-IQ4_XS. Same config, only pack, --native and tokenizer changed. Six starts, Q P P Q Q P.

UD-IQ4_XS (mine) IQ3_S (ISTA)
resident experts 7,677 (K=23) 10,012 (K=24) +30%
prose, tok/s 79.1 87.9 +11%
code, tok/s 79.4 98.4 +24%
prose+code, tok/s 79.2 (79.0 / 80.2 / 78.6) 93.2 (93.9 / 92.4) +17.6%
20K summary, tok/s 58.1 63.8 +9.8%

The first Q start is discarded: the IQ3_S was on a USB disk, the engine reported ready while its pages were still being read from it (57 GB resident, threads in D state), went 13-36 tok/s, hit the 60 s stall watchdog and was restarted. The other two Q starts were normal, so that's 2 Q against 3 P.

Smaller experts, more of them in VRAM, less work on the CPU, and the code prompt gains the most. Draft acceptance was the same for both files. On the 20K summary layer-major declined in both arms (no VRAM for a super-chunk, 367 MiB free with IQ3_S, 355 with UD-IQ4_XS), the same refusal @udqe and @Burntgogi report. What this does not measure is quality: IQ3_S has fewer bits per weight, and I'd expect more mistakes from it, so +17.6% is only worth something if the answers stay good. I haven't tested that yet.

For the thread, the same file shows the point again (@Burntgogi runs it too, on two 3090s): with @longstone78's reservations it holds 2,772 resident experts on two 5060 Ti, here 10,012 on two 4060 Ti with the same 16 GB each. The engine version, link and protocol differ too, so I wouldn't compare the tok/s, only the residency. Model and hardware have to be chosen together, and the same model file can give very different numbers depending on the box and the config.

I did this with an AI coding assistant: it found the refusal in my logs, wrote the A/B scripts and drafted this text. The runs are from my machine, and I checked the numbers.

<!-- gh-comment-id:6560515264 --> @fioruccione commented on GitHub (Nov 1, 2026): Three more A/B runs from my box, same method as before: fresh server per start, arms alternated, one warm-up request discarded, then prose x2 and code x2 (400 tokens, T=0) and a 20K-token summary (300 tokens). Following @Burntgogi's point, the rate is the engine's own timing (`predicted_per_second` in the response timings), not a client SSE rate. Box: 2x RTX 4060 Ti 16 GB, TR PRO 3975WX, 128 GB, 0.2.7.1 built for sm_89, production config, VRAM memory offset +2000 in every arm. **1. The memlock line (@liaiwu)** Thanks for it, my box was in the refused state at every start. The default memlock limit here is 15.7 GiB (16,860,569,600 bytes, nothing set in limits.conf or systemd) and the PLE table is 26.8 GiB, so all 54 starts in my log printed `PLE table mlock failed` and `loaded (not locked)`, with `VmLck` 0. Six starts, U L L U U L, the only change being the soft memlock limit of the server set with `prlimit`. Every L start printed `PLE table locked in RAM` with `VmLck` 28.1 GB, every U start the refusal. | | prose+code, tok/s | 20K summary, tok/s | |---|---:|---:| | U, not locked (3 starts) | 79.50 (79.40 / 79.58 / 79.52) | 56.87 | | L, locked (3 starts) | 79.64 (79.50 / 79.47 / 79.95) | 57.10 | +0.2%, most of it from the last start: no measurable difference here. My guess, not measured, is that with 128 GB and no memory pressure the table stays resident anyway. So I agree the line is what tells you the state, but the effect is per machine: +6% on your 4090, +0.2% here. I also ran the `--ple-io direct` arm @alexanderi96 suggested in #4671: six more starts, D R R D D R, R being production as it starts (ram chosen by the residency policy, not locked), D the same config plus `--ple-io direct` (probe 58-98K rows/s, "fine"). NVMe SSD. | | prose+code, tok/s | 20K summary decode, tok/s | 20K prefill, tok/s | engine RSS | MemAvailable | |---|---:|---:|---:|---:|---:| | R, ram (3 starts) | 80.28 (80.20 / 80.38 / 80.25) | 59.27 (58.6 / 59.1 / 60.1) | 1737 | 89.9 GiB | 47.0 GiB | | D, direct (3 starts) | 79.66 (79.28 / 79.25 / 80.45) | 57.37 (56.6 / 57.2 / 58.3) | 1660 | 63.1 GiB | 47.0 GiB | Short prompts are flat (-0.8%), but at 20K direct is slower in all three starts: -3.2% decode, -4.4% prefill, and the ranges don't overlap. And on this box it gives no RAM back: RSS drops by the table, but MemAvailable is the same, because the unlocked table is file-backed pages the kernel counts as reclaimable anyway. So here ram unlocked is the best of the three: same speed as locked, faster than direct at long context, and no memory pinned. **2. Same box, same config, a different model file** @longstone78 runs ISTA-DASLab's GSQ-RCO IQ3_S, so I downloaded the same file (sha256 checked against setup.py) and ran it against my production UD-IQ4_XS. Same config, only pack, `--native` and tokenizer changed. Six starts, Q P P Q Q P. | | UD-IQ4_XS (mine) | IQ3_S (ISTA) | | |---|---:|---:|---:| | resident experts | 7,677 (K=23) | 10,012 (K=24) | +30% | | prose, tok/s | 79.1 | 87.9 | +11% | | code, tok/s | 79.4 | 98.4 | +24% | | prose+code, tok/s | 79.2 (79.0 / 80.2 / 78.6) | 93.2 (93.9 / 92.4) | **+17.6%** | | 20K summary, tok/s | 58.1 | 63.8 | +9.8% | The first Q start is discarded: the IQ3_S was on a USB disk, the engine reported ready while its pages were still being read from it (57 GB resident, threads in D state), went 13-36 tok/s, hit the 60 s stall watchdog and was restarted. The other two Q starts were normal, so that's 2 Q against 3 P. Smaller experts, more of them in VRAM, less work on the CPU, and the code prompt gains the most. Draft acceptance was the same for both files. On the 20K summary layer-major declined in both arms (`no VRAM for a super-chunk`, 367 MiB free with IQ3_S, 355 with UD-IQ4_XS), the same refusal @udqe and @Burntgogi report. What this does not measure is quality: IQ3_S has fewer bits per weight, and I'd expect more mistakes from it, so +17.6% is only worth something if the answers stay good. I haven't tested that yet. For the thread, the same file shows the point again (@Burntgogi runs it too, on two 3090s): with @longstone78's reservations it holds 2,772 resident experts on two 5060 Ti, here 10,012 on two 4060 Ti with the same 16 GB each. The engine version, link and protocol differ too, so I wouldn't compare the tok/s, only the residency. Model and hardware have to be chosen together, and the same model file can give very different numbers depending on the box and the config. I did this with an AI coding assistant: it found the refusal in my logs, wrote the A/B scripts and drafted this text. The runs are from my machine, and I checked the numbers.
Author
Owner

@fioruccione commented on GitHub (Nov 4, 2026):

A question from bob-u in #5206 (how much does the second 4060 Ti give?) turned into an afternoon of tests, and the answer surprised me enough that I think it belongs here. It is the same point this issue started from, only stronger: on a box like mine the second card is worth less than the choice of quant, and with one card the CPU decides a lot. Two people with the same GPU can see twice or half the speed, and most of the reason is not the GPU.

Same box as before (2x 4060 Ti 16 GB Gen4 x8, TR PRO 3975WX 32c, 8ch DDR4-2667, 128 GB, Linux), 0.2.7.1, MTP, VRAM offset +2000, experts RAM-resident, --pcie-frac 0.00 unless noted. Fresh server per start, alternating order, medians at T=0. Single card = "gpu": [0], no layer split; card 0 also drives the monitor.

1. One card vs two (UD-IQ4_XS). RAM does not change: with 128 GB the 55.4 GiB expert arena holds every expert either way, VRAM only holds a copy of the hot ones.

2 cards 1 card
decode prose / code / summary 20K 77.2 / 84.9 / 57.9 74.0 / 81.0 / 55.8 −4.1 / −4.6 / −3.5%
prefill 20K / 32K / 69K 1807 / 2097 / 2368 1354 / 1410 / 1406 −25 / −33 / −41%
experts in VRAM, decode hit 7621, 82% 3194, 65%

2. With one card the CPU matters much more. Same --pool-workers curve I posted at the top of this issue for two cards:

pool workers 30 15 8
1 card: prose / code / summary 74.7 / 81.4 / 54.2 66.9 / 67.8 / 48.6 57.3 / 55.9 / 41.2
1 card vs 30 workers −10 / −17 / −10% −23 / −31 / −24%
2 cards (29/10) vs 30 workers 0 / −7.5% −4.5 / −21%

Prefill does not move with the workers.

3. The PCIe share fixes itself on 0.2.7.1. Without --pcie-frac 0.00 the probe picks 0.37 from the 13.3 GB/s link, then the engine measures the pool and moves down on its own: the CPU pool takes 32 us per missed expert (75.1 GB/s of expert bytes) ... pcie_frac 0.10. Result: 74.0 / 82.2 / 56.1, the same as 0.00. So the advice in my earlier comment to pin 0.00 is no longer needed on this version.

4. The quant counts more than the second card. ISTA IQ3_S against UD-IQ4_XS (quality not measured, see below). The first start of each new layout read the model from a slow USB disk and is discarded; these are the clean starts:

UD 1 card UD 2 cards IQ3_S 1 card IQ3_S 2 cards
decode prose / code / summary 73.8 / 79.1 / 54.7 77.2 / 84.9 / 57.9 88.6 / 96.3 / 67.8 91.9 / 104.5 / 67.4
prefill 20K / 32K / 69K 1333 / 1392 / 1417 1807 / 2097 / 2368 1451 / 1502 / 1512 1972 / 2300 / 2624
experts in VRAM 3177 7621 4176 9935
GPU energy per token 1.90 J 2.28 J 1.76 J 2.08 J

IQ3_S on one card is +13-17% decode over UD-IQ4_XS on two. ~~On one card the hit rate only goes from 64 to 70%, yet decode goes up 20%: most of the gain is the CPU computing smaller experts faster. Edit: that was too quick. Weighted by lookups, misses drop by ~15% on one card (30.5/31.9% → 26.5/25.7%) and by ~25% on two (13.6/14.6% → 10.5/10.7%), yet the decode gain is about the same on both (+20/+24% vs +16/+23%), so it is not only the CPU. The average expert is 15.5% smaller (2.31 → 1.95 MiB), and that helps the GPU path as well as the CPU one; decode here follows VRAM bandwidth (+14% bandwidth gave +12%). I can't separate the two with these runs: that would need IQ3_S with the same number of cache slots as UD, and the worker curve on IQ3_S.

5. What the code does on the CPU side (0.2.7.1, src/kernels/cpu/, static reading, please correct me):

  • The native expert kernels are picked at start for AVX-512 / AVX2 / AVX1, else ggml. For the IQ types they are multi-token: an expert's blocks are decoded once for the whole MTP window (2.0-2.4x ggml at 3 tokens, not faster at 1), and they are bound by the codebook lookups, not by RAM bandwidth. That fits the −65% RAM bandwidth costing me only −2/−8% earlier in this thread, and it means MTP helps the CPU part too.
  • IQ4_XS has only an AVX2 kernel. On an AVX-512 CPU it falls back to the ggml single-token dot (kept for rounding, #415). STRATA_FORCE_AVX2=1 avoids that but also takes AVX-512 away from IQ3/IQ2. So in principle a newer CPU can be slower than an older one on IQ4_XS experts.
  • Q4_K and friends use the ggml dot; Strata's multi-token KQ256 kernel exists but is opt-in (STRATA_KQ256=1, "no faster" where it was measured).
  • The file name does not say what the experts are. From the packs' native_experts.txt: the UD-IQ4_XS has gate/up in IQ3_S in 47 of 48 layers (IQ4_XS in one), down IQ4_NL (43) and Q8_0 (5). The ISTA IQ3_S goes to IQ2_S in 20 layers, IQ3_XXS in 17, IQ3_S in 10. So my "IQ4_XS" is mostly a 3-bit model Edit: so in my "IQ4_XS" gate/up (two thirds of the expert weights) are 3-bit IQ3_S, while down is 4.5-bit IQ4_NL: about 3.8 bits on average, not 4.25. That is what decides both the VRAM fit and which CPU kernel runs.

A request to anyone with AVX-512 (Zen 4/5, Skylake-X and later Xeons): an A/B with and without STRATA_FORCE_AVX2=1, one card, short prompts, ideally once with a model whose experts are really IQ4_XS and once with an IQ3/Q4_K one, plus the first lines of native_experts.txt and the ISA line from the start log. @Norhiro your i7-7800X with the UD-Q4_K_XL would already tell a lot, and your Xeon (AVX only) with the same cards and model is the natural other arm. I have no AVX-512 here, so I cannot check it myself.

What I would take from this for the report and for setup:

  • A short "why you run at this speed" block in the standard report: ISA line, real expert formats, VRAM slots and decode hit, the PCIe share line with the pool's GB/s, and whether the resident RAM mode fit. With those five, "I get half of what others get with the same card" almost always explains itself, and it is rarely the card.
  • setup.py already measures the host; it could also suggest the quant: with little VRAM and a desktop CPU, small experts first; with AVX-512, avoid IQ4_XS experts or force AVX2; with lots of RAM, Q4_K becomes a real option. Today people download by name, and the name hides most of this.

Not measured: quality of IQ3_S against UD-IQ4_XS (it is 2-bit in many layers, so I would not recommend it on speed alone), a headless single card, Q4_K on this box (it does not fit: setup wants ~135 GB, I have 126).
Passed: all requests answered, production restored after each run. Failed: none on the clean starts; the first IQ3_S single-card start had one 503 while the model was still coming from the USB disk.

<!-- gh-comment-id:6642881834 --> @fioruccione commented on GitHub (Nov 4, 2026): A question from bob-u in #5206 (how much does the second 4060 Ti give?) turned into an afternoon of tests, and the answer surprised me enough that I think it belongs here. It is the same point this issue started from, only stronger: on a box like mine the second card is worth less than the choice of quant, and with one card the CPU decides a lot. Two people with the same GPU can see twice or half the speed, and most of the reason is not the GPU. Same box as before (2x 4060 Ti 16 GB Gen4 x8, TR PRO 3975WX 32c, 8ch DDR4-2667, 128 GB, Linux), 0.2.7.1, MTP, VRAM offset +2000, experts RAM-resident, `--pcie-frac 0.00` unless noted. Fresh server per start, alternating order, medians at T=0. Single card = `"gpu": [0]`, no layer split; card 0 also drives the monitor. **1. One card vs two (UD-IQ4_XS).** RAM does not change: with 128 GB the 55.4 GiB expert arena holds every expert either way, VRAM only holds a copy of the hot ones. | | 2 cards | 1 card | | |---|---|---|---| | decode prose / code / summary 20K | 77.2 / 84.9 / 57.9 | 74.0 / 81.0 / 55.8 | −4.1 / −4.6 / −3.5% | | prefill 20K / 32K / 69K | 1807 / 2097 / 2368 | 1354 / 1410 / 1406 | −25 / −33 / −41% | | experts in VRAM, decode hit | 7621, 82% | 3194, 65% | | **2. With one card the CPU matters much more.** Same `--pool-workers` curve I posted at the top of this issue for two cards: | pool workers | 30 | 15 | 8 | |---|---|---|---| | 1 card: prose / code / summary | 74.7 / 81.4 / 54.2 | 66.9 / 67.8 / 48.6 | 57.3 / 55.9 / 41.2 | | 1 card vs 30 workers | | −10 / −17 / −10% | −23 / −31 / −24% | | 2 cards (29/10) vs 30 workers | | 0 / −7.5% | −4.5 / −21% | Prefill does not move with the workers. **3. The PCIe share fixes itself on 0.2.7.1.** Without `--pcie-frac 0.00` the probe picks 0.37 from the 13.3 GB/s link, then the engine measures the pool and moves down on its own: `the CPU pool takes 32 us per missed expert (75.1 GB/s of expert bytes) ... pcie_frac 0.10`. Result: 74.0 / 82.2 / 56.1, the same as 0.00. So the advice in my earlier comment to pin 0.00 is no longer needed on this version. **4. The quant counts more than the second card.** ISTA IQ3_S against UD-IQ4_XS (quality not measured, see below). The first start of each new layout read the model from a slow USB disk and is discarded; these are the clean starts: | | UD 1 card | UD 2 cards | IQ3_S 1 card | IQ3_S 2 cards | |---|---|---|---|---| | decode prose / code / summary | 73.8 / 79.1 / 54.7 | 77.2 / 84.9 / 57.9 | 88.6 / 96.3 / 67.8 | 91.9 / 104.5 / 67.4 | | prefill 20K / 32K / 69K | 1333 / 1392 / 1417 | 1807 / 2097 / 2368 | 1451 / 1502 / 1512 | 1972 / 2300 / 2624 | | experts in VRAM | 3177 | 7621 | 4176 | 9935 | | GPU energy per token | 1.90 J | 2.28 J | 1.76 J | 2.08 J | IQ3_S on one card is +13-17% decode over UD-IQ4_XS on two. ~~On one card the hit rate only goes from ~64 to ~70%, yet decode goes up 20%: most of the gain is the CPU computing smaller experts faster.~~ *Edit:* that was too quick. Weighted by lookups, misses drop by ~15% on one card (30.5/31.9% → 26.5/25.7%) and by ~25% on two (13.6/14.6% → 10.5/10.7%), yet the decode gain is about the same on both (+20/+24% vs +16/+23%), so it is not only the CPU. The average expert is 15.5% smaller (2.31 → 1.95 MiB), and that helps the GPU path as well as the CPU one; decode here follows VRAM bandwidth (+14% bandwidth gave +12%). I can't separate the two with these runs: that would need IQ3_S with the same number of cache slots as UD, and the worker curve on IQ3_S. **5. What the code does on the CPU side** (0.2.7.1, `src/kernels/cpu/`, static reading, please correct me): - The native expert kernels are picked at start for AVX-512 / AVX2 / AVX1, else ggml. For the IQ types they are multi-token: an expert's blocks are decoded once for the whole MTP window (2.0-2.4x ggml at 3 tokens, not faster at 1), and they are bound by the codebook lookups, not by RAM bandwidth. That fits the −65% RAM bandwidth costing me only −2/−8% earlier in this thread, and it means MTP helps the CPU part too. - **IQ4_XS has only an AVX2 kernel.** On an AVX-512 CPU it falls back to the ggml single-token dot (kept for rounding, #415). `STRATA_FORCE_AVX2=1` avoids that but also takes AVX-512 away from IQ3/IQ2. So in principle a newer CPU can be slower than an older one on IQ4_XS experts. - Q4_K and friends use the ggml dot; Strata's multi-token KQ256 kernel exists but is opt-in (`STRATA_KQ256=1`, "no faster" where it was measured). - **The file name does not say what the experts are.** From the packs' `native_experts.txt`: the UD-IQ4_XS has gate/up in IQ3_S in 47 of 48 layers (IQ4_XS in one), down IQ4_NL (43) and Q8_0 (5). The ISTA IQ3_S goes to IQ2_S in 20 layers, IQ3_XXS in 17, IQ3_S in 10. ~~So my "IQ4_XS" is mostly a 3-bit model~~ *Edit:* so in my "IQ4_XS" gate/up (two thirds of the expert weights) are 3-bit IQ3_S, while down is 4.5-bit IQ4_NL: about 3.8 bits on average, not 4.25. That is what decides both the VRAM fit and which CPU kernel runs. **A request to anyone with AVX-512** (Zen 4/5, Skylake-X and later Xeons): an A/B with and without `STRATA_FORCE_AVX2=1`, one card, short prompts, ideally once with a model whose experts are really IQ4_XS and once with an IQ3/Q4_K one, plus the first lines of `native_experts.txt` and the ISA line from the start log. @Norhiro your i7-7800X with the UD-Q4_K_XL would already tell a lot, and your Xeon (AVX only) with the same cards and model is the natural other arm. I have no AVX-512 here, so I cannot check it myself. **What I would take from this for the report and for setup:** - A short "why you run at this speed" block in the standard report: ISA line, real expert formats, VRAM slots and decode hit, the `PCIe share` line with the pool's GB/s, and whether the resident RAM mode fit. With those five, "I get half of what others get with the same card" almost always explains itself, and it is rarely the card. - setup.py already measures the host; it could also suggest the quant: with little VRAM and a desktop CPU, small experts first; with AVX-512, avoid IQ4_XS experts or force AVX2; with lots of RAM, Q4_K becomes a real option. Today people download by name, and the name hides most of this. Not measured: quality of IQ3_S against UD-IQ4_XS (it is 2-bit in many layers, so I would not recommend it on speed alone), a headless single card, Q4_K on this box (it does not fit: setup wants ~135 GB, I have 126). Passed: all requests answered, production restored after each run. Failed: none on the clean starts; the first IQ3_S single-card start had one 503 while the model was still coming from the USB disk.
Author
Owner

@fioruccione commented on GitHub (Nov 4, 2026):

A correction to my comment above, after going looking for what would prove it wrong. Two parts of it do not hold as I wrote them, and the percentages travel less than I implied.

1. "AVX-512" in Strata is narrower than I said. cpu_avx512_ok() (src/kernels/cpu/expert_layout.cpp) asks for F + BW + VL + VNNI + VBMI. Skylake-X, Skylake-SP and Cascade Lake have no VBMI, so for Strata they are AVX-2 CPUs, whatever the OS reports. That makes my request to @Norhiro wrong: the i7-7800X runs the AVX-2 kernels, and STRATA_FORCE_AVX2=1 changes nothing there. Sorry for the noise. #2713 already has two measurements on that family: @DylanFromMassey forced the AVX-512 kernels and got 2-8% slower decode (the AVX-512 clock drop), and @williswu took 37% of the CPU away with no decode loss at a 98-99% cache hit rate.

2. The IQ4_XS point is much weaker than "a newer CPU can be slower". I missed that the multi-token kernels only run when an expert serves 2 or more tokens of the window (STRATA_IQ_MT_MIN, default 2), and the code's own comments say a decode expert group holds ~1.4 tokens: most CPU experts go one token at a time. For one token every CPU uses ggml's dot anyway, as built for that CPU. So the IQ4_XS fallback only touches the multi-token groups of IQ4_XS experts, which in the UD-IQ4_XS are gate/up of one layer in 48. A penalty is possible only on a model with many IQ4_XS experts, and probably small. The same goes for "MTP helps the CPU": true only for the groups with 2+ tokens.

3. My percentages are this box's, not general. Two reports on other machines with the same models:

  • #4603 (Ryzen 9 9950X3D2 16c, 5070 + 5060 Ti, IQ3_S): the second card gives +27/+32% decode (hit 72-80% → 97%), not the +4% I see.
  • #4418 (Ryzen 9 9950X, 2x 5070 Ti, same IQ3_S and UD-IQ4_XS): IQ3_S is +58% short decode over UD-IQ4_XS, against my +17/+23%.

So the direction holds (the quant matters, and how much the second card is worth depends on the host), but the size moves a lot from one machine to the next. My guess, not measured: the weaker the CPU is on the misses, the more the second card counts for decode too.

4. Two confounders in my IQ3_S numbers. On the 20K summary IQ3_S accepts more MTP drafts (64-66% vs 55-57%), so part of that +24% comes from the drafts, not the experts. And on code with two cards the decode hit is nearly the same (78-82% vs 81-82%) while decode is +20%; the non-expert tensors may differ too, I have not checked.

What still stands: the one-card vs two-card numbers and the worker curve on this box, and the PCIe share fixing itself on 0.2.7.1. Next I will run UD vs IQ3_S on one card with STRATA_DECODE_TIMING=1 (as @williswu did in #2713), which splits each window between GPU wait and CPU experts, so the VRAM-or-CPU question gets a measured answer instead of my reading.

<!-- gh-comment-id:6643267746 --> @fioruccione commented on GitHub (Nov 4, 2026): A correction to my comment above, after going looking for what would prove it wrong. Two parts of it do not hold as I wrote them, and the percentages travel less than I implied. **1. "AVX-512" in Strata is narrower than I said.** `cpu_avx512_ok()` (`src/kernels/cpu/expert_layout.cpp`) asks for F + BW + VL + **VNNI + VBMI**. Skylake-X, Skylake-SP and Cascade Lake have no VBMI, so for Strata they are AVX-2 CPUs, whatever the OS reports. That makes my request to @Norhiro wrong: the i7-7800X runs the AVX-2 kernels, and `STRATA_FORCE_AVX2=1` changes nothing there. Sorry for the noise. #2713 already has two measurements on that family: @DylanFromMassey forced the AVX-512 kernels and got 2-8% *slower* decode (the AVX-512 clock drop), and @williswu took 37% of the CPU away with no decode loss at a 98-99% cache hit rate. **2. The IQ4_XS point is much weaker than "a newer CPU can be slower".** I missed that the multi-token kernels only run when an expert serves 2 or more tokens of the window (`STRATA_IQ_MT_MIN`, default 2), and the code's own comments say a decode expert group holds ~1.4 tokens: most CPU experts go one token at a time. For one token every CPU uses ggml's dot anyway, as built for that CPU. So the IQ4_XS fallback only touches the multi-token groups of IQ4_XS experts, which in the UD-IQ4_XS are gate/up of one layer in 48. A penalty is possible only on a model with many IQ4_XS experts, and probably small. The same goes for "MTP helps the CPU": true only for the groups with 2+ tokens. **3. My percentages are this box's, not general.** Two reports on other machines with the same models: - #4603 (Ryzen 9 9950X3D2 16c, 5070 + 5060 Ti, IQ3_S): the second card gives **+27/+32% decode** (hit 72-80% → 97%), not the +4% I see. - #4418 (Ryzen 9 9950X, 2x 5070 Ti, same IQ3_S and UD-IQ4_XS): IQ3_S is **+58%** short decode over UD-IQ4_XS, against my +17/+23%. So the direction holds (the quant matters, and how much the second card is worth depends on the host), but the size moves a lot from one machine to the next. My guess, not measured: the weaker the CPU is on the misses, the more the second card counts for decode too. **4. Two confounders in my IQ3_S numbers.** On the 20K summary IQ3_S accepts more MTP drafts (64-66% vs 55-57%), so part of that +24% comes from the drafts, not the experts. And on code with two cards the decode hit is nearly the same (78-82% vs 81-82%) while decode is +20%; the non-expert tensors may differ too, I have not checked. What still stands: the one-card vs two-card numbers and the worker curve on this box, and the PCIe share fixing itself on 0.2.7.1. Next I will run UD vs IQ3_S on one card with `STRATA_DECODE_TIMING=1` (as @williswu did in #2713), which splits each window between GPU wait and CPU experts, so the VRAM-or-CPU question gets a measured answer instead of my reading.
Author
Owner

@fioruccione commented on GitHub (Nov 5, 2026):

The run I promised above, done tonight instead of tomorrow: UD-IQ4_XS against IQ3_S on one card with STRATA_DECODE_TIMING=1, so the engine itself says where each decode window goes. It answers the question I had guessed at twice: the gain comes from both sides, a bit more from the GPU than from the CPU.

Same box and config as above (0.2.7.1, one 4060 Ti, card 0, --pcie-frac 0.00), order UD IQ3 IQ3 UD, a fresh server per start; the table is the mean of the four requests of each kind. Decode medians: prose 74.2 → 92.7 (+25%), code 81.0 → 95.1 (+17%), 20K summary 54.8 → 64.3 (+17%).

per decode window prose UD → IQ3_S code UD → IQ3_S summary UD → IQ3_S
total ms 34.4 → 30.5 37.5 → 32.4 34.9 → 30.2
GPU-reach wait 21.9 → 19.5 (−11%) 21.0 → 18.3 (−13%) 21.3 → 18.8 (−11%)
per-layer host (CPU experts) 7.2 → 5.6 (−22%) 11.1 → 8.7 (−22%) 8.5 → 6.3 (−26%)
draft 3.1 → 3.3 3.4 → 3.4 3.1 → 3.0
tokens per window 2.57 → 2.80 3.04 → 3.07 1.92 → 1.93
CPU experts per layer-window 5.0 → 4.4 7.8 → 7.1 6.0 → 5.0
CPU µs per expert (CPU ms / experts) 27.2 → 23.9 27.1 → 23.4 27.3 → 23.8
ms saved per token, GPU / CPU 1.59 / 0.81 0.97 / 0.83 1.32 / 1.17
  • About 55-65% of the saving is the GPU, 35-45% the CPU. Prose also gets ~9% more tokens per window from the drafts; code and summary do not.
  • On the CPU side, about half comes from fewer experts (−10 to −16%) and half from cheaper ones (−12 to −14% each), which is about the 15.5% fewer bytes per expert.
  • With UD on one card the CPU is 21-30% of a window. My estimate from the worker curve (10-20%) was low; the pool doesn't scale linearly.
  • The draft-acceptance confounder I raised on the summary was mostly noise: 58% vs 60% here, against 55-57% vs 64-66% in the earlier run. The summary gain holds anyway.

The "CPU µs per expert" row is my division of two fields of the timing line, not something the engine prints. Not run: the same split with two cards, and whether the non-expert tensors differ between the two files. Passed: all requests answered, production restored afterwards. Failed: none.

This is one box, though, and the two ends of the scale are already in this tracker. @Norhiro, your i7-7800X now has every expert in RAM: two cards give you 33 tok/s after long prompts and the 3060 alone about 20, with cards that have more VRAM bandwidth than my 4060 Tis. My guess, not measured, is that on 6 cores the CPU share of a window is a lot bigger than my 21-30%. @udqe, your 2x 4090 sit on a CPU very close to mine (TR 3970X, 32 cores, 4 channels instead of 8) with 3.5x my VRAM bandwidth, and you get about 1.5x my decode, not 3.5x, with a bigger quant and on Windows, so only roughly comparable. My guess there is the opposite: the GPU part gets short and what is left is CPU and per-layer host work. If either of you feels like it, one run with STRATA_DECODE_TIMING=1 and a few short requests would show it. The line is printed once per request, and it is still there in 0.2.10.

@Norhiro, one more thing, only if you are curious. Your UD-Q4_K_XL experts are 71.7 GiB; the UD-IQ4_XS are 55.4 and the ISTA IQ3_S 46.8. On a PCIe 3.0 pair that means fewer bytes on every miss and on every prompt chunk, more experts fit in the 12 + 16 GB, and as far as I can tell from the code on the 7800X the IQ formats get Strata's own single-token AVX2 kernels where Q4_K goes through the ggml dot (on the AVX-only Xeon I don't know). The catch is quality. Niko measured both files against Q8_0 in docs/QUANTS.md: IQ3_S agrees a bit less with Q8_0 (87.7% vs 88.9% same top token, KL 0.144 vs 0.101) but its perplexity is no worse (4.097 vs 4.120). I ran the same yardstick here on CUDA and got the same order (4.103 vs 4.149); the only segment where IQ3_S came out worse is the agent transcript, inside the noise of 1,000 tokens. So no sign it is worse on text, though it is not tested on long agent work.

<!-- gh-comment-id:6654749939 --> @fioruccione commented on GitHub (Nov 5, 2026): The run I promised above, done tonight instead of tomorrow: UD-IQ4_XS against IQ3_S on one card with `STRATA_DECODE_TIMING=1`, so the engine itself says where each decode window goes. It answers the question I had guessed at twice: the gain comes from both sides, a bit more from the GPU than from the CPU. Same box and config as above (0.2.7.1, one 4060 Ti, card 0, `--pcie-frac 0.00`), order UD IQ3 IQ3 UD, a fresh server per start; the table is the mean of the four requests of each kind. Decode medians: prose 74.2 → 92.7 (+25%), code 81.0 → 95.1 (+17%), 20K summary 54.8 → 64.3 (+17%). | per decode window | prose UD → IQ3_S | code UD → IQ3_S | summary UD → IQ3_S | |---|---|---|---| | total ms | 34.4 → 30.5 | 37.5 → 32.4 | 34.9 → 30.2 | | GPU-reach wait | 21.9 → 19.5 (−11%) | 21.0 → 18.3 (−13%) | 21.3 → 18.8 (−11%) | | per-layer host (CPU experts) | 7.2 → 5.6 (−22%) | 11.1 → 8.7 (−22%) | 8.5 → 6.3 (−26%) | | draft | 3.1 → 3.3 | 3.4 → 3.4 | 3.1 → 3.0 | | tokens per window | 2.57 → 2.80 | 3.04 → 3.07 | 1.92 → 1.93 | | CPU experts per layer-window | 5.0 → 4.4 | 7.8 → 7.1 | 6.0 → 5.0 | | CPU µs per expert (CPU ms / experts) | 27.2 → 23.9 | 27.1 → 23.4 | 27.3 → 23.8 | | **ms saved per token, GPU / CPU** | 1.59 / 0.81 | 0.97 / 0.83 | 1.32 / 1.17 | - **About 55-65% of the saving is the GPU, 35-45% the CPU.** Prose also gets ~9% more tokens per window from the drafts; code and summary do not. - **On the CPU side, about half comes from fewer experts (−10 to −16%) and half from cheaper ones (−12 to −14% each)**, which is about the 15.5% fewer bytes per expert. - **With UD on one card the CPU is 21-30% of a window.** My estimate from the worker curve (10-20%) was low; the pool doesn't scale linearly. - **The draft-acceptance confounder I raised on the summary was mostly noise:** 58% vs 60% here, against 55-57% vs 64-66% in the earlier run. The summary gain holds anyway. The "CPU µs per expert" row is my division of two fields of the timing line, not something the engine prints. Not run: the same split with two cards, and whether the non-expert tensors differ between the two files. Passed: all requests answered, production restored afterwards. Failed: none. This is one box, though, and the two ends of the scale are already in this tracker. @Norhiro, your i7-7800X now has every expert in RAM: two cards give you 33 tok/s after long prompts and the 3060 alone about 20, with cards that have more VRAM bandwidth than my 4060 Tis. My guess, not measured, is that on 6 cores the CPU share of a window is a lot bigger than my 21-30%. @udqe, your 2x 4090 sit on a CPU very close to mine (TR 3970X, 32 cores, 4 channels instead of 8) with 3.5x my VRAM bandwidth, and you get about 1.5x my decode, not 3.5x, with a bigger quant and on Windows, so only roughly comparable. My guess there is the opposite: the GPU part gets short and what is left is CPU and per-layer host work. If either of you feels like it, one run with `STRATA_DECODE_TIMING=1` and a few short requests would show it. The line is printed once per request, and it is still there in 0.2.10. @Norhiro, one more thing, only if you are curious. Your UD-Q4_K_XL experts are 71.7 GiB; the UD-IQ4_XS are 55.4 and the ISTA IQ3_S 46.8. On a PCIe 3.0 pair that means fewer bytes on every miss and on every prompt chunk, more experts fit in the 12 + 16 GB, and as far as I can tell from the code on the 7800X the IQ formats get Strata's own single-token AVX2 kernels where Q4_K goes through the ggml dot (on the AVX-only Xeon I don't know). The catch is quality. Niko measured both files against Q8_0 in `docs/QUANTS.md`: IQ3_S agrees a bit less with Q8_0 (87.7% vs 88.9% same top token, KL 0.144 vs 0.101) but its perplexity is no worse (4.097 vs 4.120). I ran the same yardstick here on CUDA and got the same order (4.103 vs 4.149); the only segment where IQ3_S came out worse is the agent transcript, inside the noise of 1,000 tokens. So no sign it is worse on text, though it is not tested on long agent work.
Author
Owner

@cobra91 commented on GitHub (Nov 5, 2026):

The Zen 5 data point you asked for, plus two coverage gaps your list does not have yet.

Box: Ryzen 7 9800X3D (Zen 5; AVX-512 F/BW/VL/DQ + VNNI + VBMI, so the gate passes), RTX 5080 + 4060 Ti 16 GB, 32 GB RAM, Windows, engine 0.1.56 source build, two-card layer split, Swift-Qwen3.8-Flash-Next "IQ2_XS" pack.

The pack's native_experts.txt, counted over the 48 layers: gate/up are IQ2_S in 34 layers, IQ2_XXS in 11, IQ1_M in 3; down is Q2_0 in all 48. Another "the file name does not say what the experts are" case: none of the expert tensors in this "IQ2_XS" model is IQ2_XS.

Static reading of src/kernels/cpu on 0.1.56 agrees with your list (iq512_supported = IQ2_XXS/IQ2_XS/IQ3_XXS/IQ3_S/IQ2_S; the 256-bit set adds IQ4_XS). Two gaps beyond it:

  • IQ1_M has no native expert kernel at all (neither the 256-bit nor the 512-bit set), so those 3 layers' gate/up run the ggml dot on every CPU.
  • Q2_0 has no AVX-512 kernel (q2_avx1.cpp / q2_avx2.cpp only), so a pack whose down projections are Q2_0 (ours are, in all 48 layers) runs its downs at AVX2 width even on AVX-512 CPUs.

The A/B, adapted to this rig (both arms are the full two-card setup in the full resident RAM mode, pinned with STRATA_RESIDENT_HEADROOM_GIB=2 so every load prints the same "resident RAM mode: ... (locked) ... (no file reads)" line, 15.0-15.7 GiB locked, 8365 cache slots; same 32K prompt, greedy, 2500 tokens, order A B B A, one run per load):

  • default (the 512-bit IQ kernels): 143.0 / 136.8 tok/s, drafts accepted 73.0 / 70.6 %
  • STRATA_NO_IQ512=1 (the 256-bit ones): 141.1 / 132.7 tok/s, drafts accepted 71.0 / 70.7 %

So on Zen 5 with an IQ2_S/IQ2_XXS expert mix the 512-bit kernels are at parity or slightly ahead (means 139.9 vs 136.9, i.e. -2% for forcing the 256-bit ones, inside our run-to-run spread); no reason to force AVX2 for this mix. This is end-to-end decode, not a kernel microbench, and the CPU pool is one stage of several on this rig.

One caution for anyone running this A/B through full engine loads: our first pair showed "+17%" for STRATA_NO_IQ512=1 and it was entirely a confound. The first load of the day booted into the partial tier with the model file cold in the OS cache (85 tok/s), the second ran warmer (99), and once both arms boot into the full tier with no file reads they sit at 133-143 regardless of the ISA arm. On a 32 GB box the tier and cache-warmth state at load time decides more than the kernel choice (same point as my comment on #3976); pinning the tier and reading the resident-mode line before trusting an arm is what made the numbers above comparable.

(ai-assisted; every quoted line verbatim from our engine logs, the kernel sets from the 0.1.56 source; four loads, one run per load, spread inside each arm 4.5-6%.)

Edit: the engine behind the A/B is a source build of 0.1.56 carrying our own in-review patches (auto-split trim #4522, split pricing #4534, draft-head room #4549, plus local VRAM-fit fixes); none of them touch src/kernels/cpu, so the kernel sets quoted above are upstream's, and both A/B arms ran this same build. A stock 0.1.56 auto split on this rig holds about 1,450 fewer cache slots (6,881 vs the 8,365 in the lines above) and picks a different layer split, so the slot counts are this build's.

Edit 2: both coverage bullets above need correcting after @fioruccione's reply (confirmed in our 0.1.56 tree):

  • Q2_0 does have an AVX-512 kernel: q2g_row_multi in src/kernels/cpu/expert.cpp is written in 512-bit intrinsics (_mm512_dpbusd_epi32), and q2_rows_any() (expert_layout.cpp:402) routes to it whenever cpu_avx512_ok() passes. My "no q2_avx512.cpp file" reading was wrong. A consequence for our A/B: STRATA_NO_IQ512=1 only disables the IQ kernels, so the Q2_0 downs stayed on 512-bit in both arms and the two arms differ in the IQ gate/up only -- the isolation is better than I described.
  • IQ1_M is more nuanced than "no kernel at all": it is excluded from the multi-token sets (the header of iq_avx2.cpp says "IQ1_M stays on ggml-cpu"), but the exact single-token paths include it -- iq512x_supported (iq_avx512.cpp:644) lists type 29 behind vpopcnt, with a dedicated AVX-512 IQ1_M kernel at iq_avx512.cpp:485, and iq256x_supported lists it too. So our 3 IQ1_M layers run ggml's dot on multi-token windows and the exact 512-bit path on single-token ones.

One note for the pack side: the comment above that IQ1_M kernel says "no shipped model has IQ1_M expert rows: the 'Coder IQ1_M' pack's gate/up are IQ2_S / IQ3_XXS / IQ3_S". Our Swift-RCO pack is a counterexample -- 3 of its 48 layers have IQ1_M gate/up per native_experts.txt -- so the assumption does not hold for every shipped pack.

Edit 3: the A/B above is INVALID and the corrected rerun flips the conclusion. The launcher used for the "STRATA_NO_IQ512=1" arms had a malformed line (STRATA_NO_IQ512= without set), so the variable was never set and all four of those runs used the default kernels -- the posted 143.0/136.8 vs 141.1/132.7 "parity" was default-vs-default, i.e. run-to-run noise. Rerun with the variable verified set (same config, same tier pinning, every load printing the full "resident RAM mode ... (no file reads)" line, order A B B A, tiers 14.2-16.8 GiB):

  • default (the 512-bit IQ kernels): 98.1 / 128.2 tok/s
  • STRATA_NO_IQ512=1 (actually set this time): 73.6 / 92.6 tok/s

The desktop was busy, so each arm's spread is wide (about 20%), but the arms do not overlap: every forced-256-bit run is slower than every default run. On this Zen 5 (9800X3D) with the IQ2_S/IQ2_XXS expert mix, the 512-bit IQ kernels are a clear win of roughly 15-25% end-to-end decode -- do NOT force AVX2 for this mix. That also replaces my earlier reply claiming parity stands: it does not. The cautionary tale about tier/cache-warmness confounds stands, and this bug was one more of the same family: the env-var state is now part of what we stamp per arm.

<!-- gh-comment-id:6658288112 --> @cobra91 commented on GitHub (Nov 5, 2026): The Zen 5 data point you asked for, plus two coverage gaps your list does not have yet. Box: Ryzen 7 9800X3D (Zen 5; AVX-512 F/BW/VL/DQ + VNNI + VBMI, so the gate passes), RTX 5080 + 4060 Ti 16 GB, 32 GB RAM, Windows, engine 0.1.56 source build, two-card layer split, Swift-Qwen3.8-Flash-Next "IQ2_XS" pack. The pack's native_experts.txt, counted over the 48 layers: gate/up are IQ2_S in 34 layers, IQ2_XXS in 11, IQ1_M in 3; down is Q2_0 in all 48. Another "the file name does not say what the experts are" case: none of the expert tensors in this "IQ2_XS" model is IQ2_XS. Static reading of src/kernels/cpu on 0.1.56 agrees with your list (iq512_supported = IQ2_XXS/IQ2_XS/IQ3_XXS/IQ3_S/IQ2_S; the 256-bit set adds IQ4_XS). Two gaps beyond it: - IQ1_M has no native expert kernel at all (neither the 256-bit nor the 512-bit set), so those 3 layers' gate/up run the ggml dot on every CPU. - Q2_0 has no AVX-512 kernel (q2_avx1.cpp / q2_avx2.cpp only), so a pack whose down projections are Q2_0 (ours are, in all 48 layers) runs its downs at AVX2 width even on AVX-512 CPUs. The A/B, adapted to this rig (both arms are the full two-card setup in the full resident RAM mode, pinned with STRATA_RESIDENT_HEADROOM_GIB=2 so every load prints the same "resident RAM mode: ... (locked) ... (no file reads)" line, 15.0-15.7 GiB locked, 8365 cache slots; same 32K prompt, greedy, 2500 tokens, order A B B A, one run per load): - default (the 512-bit IQ kernels): 143.0 / 136.8 tok/s, drafts accepted 73.0 / 70.6 % - STRATA_NO_IQ512=1 (the 256-bit ones): 141.1 / 132.7 tok/s, drafts accepted 71.0 / 70.7 % So on Zen 5 with an IQ2_S/IQ2_XXS expert mix the 512-bit kernels are at parity or slightly ahead (means 139.9 vs 136.9, i.e. -2% for forcing the 256-bit ones, inside our run-to-run spread); no reason to force AVX2 for this mix. This is end-to-end decode, not a kernel microbench, and the CPU pool is one stage of several on this rig. One caution for anyone running this A/B through full engine loads: our first pair showed "+17%" for STRATA_NO_IQ512=1 and it was entirely a confound. The first load of the day booted into the partial tier with the model file cold in the OS cache (85 tok/s), the second ran warmer (99), and once both arms boot into the full tier with no file reads they sit at 133-143 regardless of the ISA arm. On a 32 GB box the tier and cache-warmth state at load time decides more than the kernel choice (same point as my comment on #3976); pinning the tier and reading the resident-mode line before trusting an arm is what made the numbers above comparable. (ai-assisted; every quoted line verbatim from our engine logs, the kernel sets from the 0.1.56 source; four loads, one run per load, spread inside each arm 4.5-6%.) Edit: the engine behind the A/B is a source build of 0.1.56 carrying our own in-review patches (auto-split trim #4522, split pricing #4534, draft-head room #4549, plus local VRAM-fit fixes); none of them touch src/kernels/cpu, so the kernel sets quoted above are upstream's, and both A/B arms ran this same build. A stock 0.1.56 auto split on this rig holds about 1,450 fewer cache slots (6,881 vs the 8,365 in the lines above) and picks a different layer split, so the slot counts are this build's. Edit 2: both coverage bullets above need correcting after @fioruccione's reply (confirmed in our 0.1.56 tree): - Q2_0 does have an AVX-512 kernel: `q2g_row_multi` in src/kernels/cpu/expert.cpp is written in 512-bit intrinsics (`_mm512_dpbusd_epi32`), and `q2_rows_any()` (expert_layout.cpp:402) routes to it whenever `cpu_avx512_ok()` passes. My "no q2_avx512.cpp file" reading was wrong. A consequence for our A/B: `STRATA_NO_IQ512=1` only disables the IQ kernels, so the Q2_0 downs stayed on 512-bit in both arms and the two arms differ in the IQ gate/up only -- the isolation is better than I described. - IQ1_M is more nuanced than "no kernel at all": it is excluded from the multi-token sets (the header of iq_avx2.cpp says "IQ1_M stays on ggml-cpu"), but the exact single-token paths include it -- `iq512x_supported` (iq_avx512.cpp:644) lists type 29 behind vpopcnt, with a dedicated AVX-512 IQ1_M kernel at iq_avx512.cpp:485, and `iq256x_supported` lists it too. So our 3 IQ1_M layers run ggml's dot on multi-token windows and the exact 512-bit path on single-token ones. One note for the pack side: the comment above that IQ1_M kernel says "no shipped model has IQ1_M expert rows: the 'Coder IQ1_M' pack's gate/up are IQ2_S / IQ3_XXS / IQ3_S". Our Swift-RCO pack is a counterexample -- 3 of its 48 layers have IQ1_M gate/up per native_experts.txt -- so the assumption does not hold for every shipped pack. Edit 3: the A/B above is INVALID and the corrected rerun flips the conclusion. The launcher used for the "STRATA_NO_IQ512=1" arms had a malformed line (`STRATA_NO_IQ512=` without `set`), so the variable was never set and all four of those runs used the default kernels -- the posted 143.0/136.8 vs 141.1/132.7 "parity" was default-vs-default, i.e. run-to-run noise. Rerun with the variable verified set (same config, same tier pinning, every load printing the full "resident RAM mode ... (no file reads)" line, order A B B A, tiers 14.2-16.8 GiB): - default (the 512-bit IQ kernels): 98.1 / 128.2 tok/s - STRATA_NO_IQ512=1 (actually set this time): 73.6 / 92.6 tok/s The desktop was busy, so each arm's spread is wide (about 20%), but the arms do not overlap: every forced-256-bit run is slower than every default run. On this Zen 5 (9800X3D) with the IQ2_S/IQ2_XXS expert mix, the 512-bit IQ kernels are a clear win of roughly 15-25% end-to-end decode -- do NOT force AVX2 for this mix. That also replaces my earlier reply claiming parity stands: it does not. The cautionary tale about tier/cache-warmness confounds stands, and this bug was one more of the same family: the env-var state is now part of what we stamp per arm.
Author
Owner

@Norhiro commented on GitHub (Nov 5, 2026):

@fioruccione, thanks. Here is the run you asked for. One change since the numbers you quoted: my two cards now run the NVFP4-GPTQ experts (#5279), not UD-Q4_K_XL.

Box: i7-7800X (6 cores, AVX2), RTX 3060 12 GB + RTX 5060 Ti 16 GB on PCIe 3.0, Linux. Layer split 18 / 30 with the 3060 first, MTP drafting, --trim-stage-weights. Engine: the official v0.2.10 source (ffa80d7), built locally for this CPU (STRATA_PORTABLE=ON, CUDA 86;120); no source changes. I made 2 starts with STRATA_DECODE_TIMING=1 and sent 6 requests per start, so 4 of each kind. Every prompt had different text, so no prompt prefix was reused. Temperature 0, 400 tokens out; the summary prompts were 22K to 29K tokens. Each value is the mean of the 4 requests of its kind:

per decode window prose code ~25K summary
decode tok/s (tokens/window ÷ ms/window) 43.0 43.5 42.4
total ms 52.3 73.9 55.6
adapt wait 5.5 5.5 5.5
stage 0 (3060, 18 layers): GPU-reach wait 8.9 8.8 9.3
stage 0: per-layer host 7.4 15.4 8.2
rest of verify (stage 1, 30 layers, and the hand-off) 26.7 40.1 28.5
CPU (expert pool, all 48 layers) 20.0 39.5 22.1
CPU share of the window 38% (34-44) 53% (51-57) 39% (28-47)
draft 3.0 3.3 3.3
tokens per window 2.25 3.20 2.34
CPU experts per layer-window 4.8 9.3 5.4
VRAM hits / PCIe per layer-window 25.0 / 0.54 23.4 / 1.40 23.2 / 0.63
CPU µs per expert (CPU ms ÷ (experts × 48)) 86 89 85
  • Your guess holds: the CPU expert work is 38-53% of a window here, against your 21-30%. Code has about twice as many experts per layer-window on the CPU (9.3 against about 5). Its windows are longer, but it also gets more tokens per window, so its decode speed ends up about the same as prose.
  • About 85-89 µs per expert, against your 23-27. Take this as a loose comparison only. My CPU runs NVFP4 experts, not UD or IQ3_S, and I am not sure my division matches yours.
  • A caveat about reading the line on a layer split: in 0.2.10, GPU-reach wait and per-layer host come from stage 0's verifier only, so stage 1's share is hidden in the rest of verify. The plan/actq/jobs/CPU fields and the per-layer-window expert counts come from the shared drive, so they cover all 48 layers. That is why the CPU field (20.0) can be larger than stage 0's per-layer host (7.4). Since the CPU field covers every layer, the share in the table should still be the right number to compare with yours. I worked this out by reading generate.cpp, not by instrumenting it.

On the IQ4_XS / IQ3_S idea: since moving the experts to NVFP4 (#5279), the comparison point has moved, and I haven't run either IQ file. With the CPU this large a share of the window, smaller and cheaper CPU experts look worth trying. I'd still want to check quality on long agent work first.

Not run: the same lines on one card; stage 1's own wait and host time (that needs an engine change); 0.2.11. Passed: all 12 requests answered, and the normal server was restored afterwards. Failed: none.

(ai-assisted; every number above is taken from the engine's own timing lines.)

<!-- gh-comment-id:6660618223 --> @Norhiro commented on GitHub (Nov 5, 2026): @fioruccione, thanks. Here is the run you asked for. One change since the numbers you quoted: my two cards now run the NVFP4-GPTQ experts (#5279), not UD-Q4_K_XL. Box: i7-7800X (6 cores, AVX2), RTX 3060 12 GB + RTX 5060 Ti 16 GB on PCIe 3.0, Linux. Layer split 18 / 30 with the 3060 first, MTP drafting, `--trim-stage-weights`. Engine: the official v0.2.10 source (ffa80d7), built locally for this CPU (`STRATA_PORTABLE=ON`, CUDA 86;120); no source changes. I made 2 starts with `STRATA_DECODE_TIMING=1` and sent 6 requests per start, so 4 of each kind. Every prompt had different text, so no prompt prefix was reused. Temperature 0, 400 tokens out; the summary prompts were 22K to 29K tokens. Each value is the mean of the 4 requests of its kind: | per decode window | prose | code | ~25K summary | |---|---|---|---| | decode tok/s (tokens/window ÷ ms/window) | 43.0 | 43.5 | 42.4 | | total ms | 52.3 | 73.9 | 55.6 | | adapt wait | 5.5 | 5.5 | 5.5 | | stage 0 (3060, 18 layers): GPU-reach wait | 8.9 | 8.8 | 9.3 | | stage 0: per-layer host | 7.4 | 15.4 | 8.2 | | rest of verify (stage 1, 30 layers, and the hand-off) | 26.7 | 40.1 | 28.5 | | **CPU (expert pool, all 48 layers)** | **20.0** | **39.5** | **22.1** | | **CPU share of the window** | **38% (34-44)** | **53% (51-57)** | **39% (28-47)** | | draft | 3.0 | 3.3 | 3.3 | | tokens per window | 2.25 | 3.20 | 2.34 | | CPU experts per layer-window | 4.8 | 9.3 | 5.4 | | VRAM hits / PCIe per layer-window | 25.0 / 0.54 | 23.4 / 1.40 | 23.2 / 0.63 | | CPU µs per expert (CPU ms ÷ (experts × 48)) | 86 | 89 | 85 | - **Your guess holds:** the CPU expert work is 38-53% of a window here, against your 21-30%. Code has about twice as many experts per layer-window on the CPU (9.3 against about 5). Its windows are longer, but it also gets more tokens per window, so its decode speed ends up about the same as prose. - **About 85-89 µs per expert,** against your 23-27. Take this as a loose comparison only. My CPU runs NVFP4 experts, not UD or IQ3_S, and I am not sure my division matches yours. - **A caveat about reading the line on a layer split:** in 0.2.10, `GPU-reach wait` and `per-layer host` come from stage 0's verifier only, so stage 1's share is hidden in the rest of `verify`. The `plan/actq/jobs/CPU` fields and the per-layer-window expert counts come from the shared drive, so they cover all 48 layers. That is why the CPU field (20.0) can be larger than stage 0's `per-layer host` (7.4). Since the CPU field covers every layer, the share in the table should still be the right number to compare with yours. I worked this out by reading `generate.cpp`, not by instrumenting it. On the IQ4_XS / IQ3_S idea: since moving the experts to NVFP4 (#5279), the comparison point has moved, and I haven't run either IQ file. With the CPU this large a share of the window, smaller and cheaper CPU experts look worth trying. I'd still want to check quality on long agent work first. Not run: the same lines on one card; stage 1's own wait and host time (that needs an engine change); 0.2.11. Passed: all 12 requests answered, and the normal server was restored afterwards. Failed: none. (ai-assisted; every number above is taken from the engine's own timing lines.)
Author
Owner

@fioruccione commented on GitHub (Nov 5, 2026):

@Norhiro thank you, that is exactly the run, and it answers the question better than my guess did: 38-53% of the window on the CPU with 6 cores, against 21-30% here with 32. Your division is the same as mine (CPU ms ÷ (CPU experts per layer-window × 48)), so the 85-89 vs 23-27 µs is like for like in method, though not in format. The layer-split caveat is a good catch; mine was one card, so my GPU-reach wait covered all 48 layers and yours only stage 0. Good luck with the NVFP4 experts, and I agree on checking long agent work first.

@cobra91 thanks for the Zen 5 A/B, that settles the AVX-512 question I asked at the start for an IQ2 mix: parity, no reason to force AVX2. One correction on Q2_0, though: it does have an AVX-512 kernel, just not in a file of its own. In 0.2.10 q2g_row_multi in src/kernels/cpu/expert.cpp is written in 512-bit intrinsics (_mm512_dpbusd_epi32; the built library has vpdpbusd on zmm registers there), and the pool reaches it for a Q2_0 down through q2_native_kernels() → q2_rows_any() (expert_layout.cpp:402) whenever cpu_avx512_ok() passes. That is from reading and disassembling, not from a run: I have no AVX-512 CPU. It also means STRATA_NO_IQ512=1 leaves the Q2_0 downs on 512-bit, so your two arms differ only in the IQ gate/up; STRATA_FORCE_AVX2=1 would move both. I haven't checked IQ1_M.

On long agent work, since that was the open point: this afternoon I ran IQ3_S in production on a real engineering task from my daily work, not a benchmark prompt. Codex read two technical PDFs, rendered them, measured on the sheet and checked the figures against each other. The same request had already run three times on UD-IQ4_XS. IQ3_S got every key figure right and made two small mistakes (one internal contradiction, one wrong half-millimetre). The three UD runs went from clean to three mistakes, so IQ3_S sits inside UD's spread.

same task UD-IQ4_XS (3 runs) IQ3_S (1 run)
decode, median per request 67.0 tok/s (23 requests, today's run) 75.6 tok/s (34 requests), +13%
drafts accepted / longest context 68% / 65K 63% / 93K
tool calls, time 20-53 calls, 12-30 min 42 calls, ~15 min

One task and one IQ3_S run, so a sign, not a measure; the content stays private, it is customer work. One practical catch: the IQ3_S file sits on a slow USB disk here, and the first request after an hour idle stalled with an engine thread waiting on that disk; my guess is the PLE pages, since mlock fails on that table on this box (#3659). The engine's watchdog restarted it and Codex retried on its own, but keep the model on a fast drive.

<!-- gh-comment-id:6661877064 --> @fioruccione commented on GitHub (Nov 5, 2026): @Norhiro thank you, that is exactly the run, and it answers the question better than my guess did: 38-53% of the window on the CPU with 6 cores, against 21-30% here with 32. Your division is the same as mine (CPU ms ÷ (CPU experts per layer-window × 48)), so the 85-89 vs 23-27 µs is like for like in method, though not in format. The layer-split caveat is a good catch; mine was one card, so my GPU-reach wait covered all 48 layers and yours only stage 0. Good luck with the NVFP4 experts, and I agree on checking long agent work first. @cobra91 thanks for the Zen 5 A/B, that settles the AVX-512 question I asked at the start for an IQ2 mix: parity, no reason to force AVX2. One correction on Q2_0, though: it does have an AVX-512 kernel, just not in a file of its own. In 0.2.10 `q2g_row_multi` in `src/kernels/cpu/expert.cpp` is written in 512-bit intrinsics (`_mm512_dpbusd_epi32`; the built library has `vpdpbusd` on zmm registers there), and the pool reaches it for a Q2_0 down through `q2_native_kernels()` → `q2_rows_any()` (`expert_layout.cpp:402`) whenever `cpu_avx512_ok()` passes. That is from reading and disassembling, not from a run: I have no AVX-512 CPU. It also means `STRATA_NO_IQ512=1` leaves the Q2_0 downs on 512-bit, so your two arms differ only in the IQ gate/up; `STRATA_FORCE_AVX2=1` would move both. I haven't checked IQ1_M. On long agent work, since that was the open point: this afternoon I ran IQ3_S in production on a real engineering task from my daily work, not a benchmark prompt. Codex read two technical PDFs, rendered them, measured on the sheet and checked the figures against each other. The same request had already run three times on UD-IQ4_XS. IQ3_S got every key figure right and made two small mistakes (one internal contradiction, one wrong half-millimetre). The three UD runs went from clean to three mistakes, so IQ3_S sits inside UD's spread. | same task | UD-IQ4_XS (3 runs) | IQ3_S (1 run) | |---|---|---| | decode, median per request | 67.0 tok/s (23 requests, today's run) | 75.6 tok/s (34 requests), +13% | | drafts accepted / longest context | 68% / 65K | 63% / 93K | | tool calls, time | 20-53 calls, 12-30 min | 42 calls, ~15 min | One task and one IQ3_S run, so a sign, not a measure; the content stays private, it is customer work. One practical catch: the IQ3_S file sits on a slow USB disk here, and the first request after an hour idle stalled with an engine thread waiting on that disk; my guess is the PLE pages, since `mlock` fails on that table on this box (#3659). The engine's watchdog restarted it and Codex retried on its own, but keep the model on a fast drive.
Author
Owner

@cobra91 commented on GitHub (Nov 5, 2026):

Confirmed on our side, with line references from the same tree: q2g_row_multi (expert.cpp:507, the _mm512_dpbusd_epi32 loops at 183/212/529) and q2_rows_any() routing to the 512-bit rung at expert_layout.cpp:402 -- you are right on Q2_0 and my file-name reading was wrong, thank you. Edited the comment above with the correction, the IQ1_M nuance (multi-token sets exclude it, the exact single-token paths behind vpopcnt include it, iq_avx512.cpp:485/644), and one pack-side note: that kernel's header claims no shipped model has IQ1_M expert rows, but our Swift-RCO pack carries IQ1_M gate/up in 3 of 48 layers, so the assumption does not hold everywhere. The cleaner-isolation point about the A/B arms (Q2_0 downs on 512-bit in both) is a bonus -- and it means the parity result stands with even tighter bounds than posted.

<!-- gh-comment-id:6668590804 --> @cobra91 commented on GitHub (Nov 5, 2026): Confirmed on our side, with line references from the same tree: `q2g_row_multi` (expert.cpp:507, the `_mm512_dpbusd_epi32` loops at 183/212/529) and `q2_rows_any()` routing to the 512-bit rung at expert_layout.cpp:402 -- you are right on Q2_0 and my file-name reading was wrong, thank you. Edited the comment above with the correction, the IQ1_M nuance (multi-token sets exclude it, the exact single-token paths behind vpopcnt include it, iq_avx512.cpp:485/644), and one pack-side note: that kernel's header claims no shipped model has IQ1_M expert rows, but our Swift-RCO pack carries IQ1_M gate/up in 3 of 48 layers, so the assumption does not hold everywhere. The cleaner-isolation point about the A/B arms (Q2_0 downs on 512-bit in both) is a bonus -- and it means the parity result stands with even tighter bounds than posted.
Author
Owner

@cobra91 commented on GitHub (Nov 6, 2026):

Correction to my reply above: the "parity" I confirmed does not stand. The pinned A/B behind it had a broken launcher line, so the STRATA_NO_IQ512 arms never disabled anything -- four default runs dressed as two arms. The verified rerun (tiers pinned and printed, every load full resident mode) gives default 98.1/128.2 vs forced-256-bit 73.6/92.6 tok/s on this Zen 5: wide spreads from a busy desktop, but the arms do not overlap, so the 512-bit IQ kernels are worth roughly 15-25% end-to-end decode with our IQ2_S/IQ2_XXS expert mix. Your original caution inverted for this case: on Zen 5 with IQ2 experts the newer CPU is FASTER on the native kernels, and the remaining trap is only the IQ4_XS fallback you listed. Main comment edited (Edit 3) with the rerun and the bug.

<!-- gh-comment-id:6679923847 --> @cobra91 commented on GitHub (Nov 6, 2026): Correction to my reply above: the "parity" I confirmed does not stand. The pinned A/B behind it had a broken launcher line, so the STRATA_NO_IQ512 arms never disabled anything -- four default runs dressed as two arms. The verified rerun (tiers pinned and printed, every load full resident mode) gives default 98.1/128.2 vs forced-256-bit 73.6/92.6 tok/s on this Zen 5: wide spreads from a busy desktop, but the arms do not overlap, so the 512-bit IQ kernels are worth roughly 15-25% end-to-end decode with our IQ2_S/IQ2_XXS expert mix. Your original caution inverted for this case: on Zen 5 with IQ2 experts the newer CPU is FASTER on the native kernels, and the remaining trap is only the IQ4_XS fallback you listed. Main comment edited (Edit 3) with the rerun and the bug.
Author
Owner

@fioruccione commented on GitHub (Nov 6, 2026):

@cobra91 thanks for rerunning it and for saying so plainly. That also makes my reply of 11-05 wrong where I wrote that your A/B "settles the AVX-512 question: parity, no reason to force AVX2". With the variable really set, the 512-bit IQ kernels are worth about 15-25% of decode on your Zen 5 with the IQ2_S/IQ2_XXS mix, so for anyone reading this thread later: on Zen 5 do not force AVX2 for IQ experts. Your caution about tier and cache warmth still stands.

What is left of my original worry is only the IQ4_XS case: IQ4_XS has no 512-bit multi-token kernel, so its multi-token groups go to ggml on an AVX-512 CPU. As I wrote in the correction above, that touches very little (one layer's gate/up in the UD-IQ4_XS), and nobody has measured it on a file with many IQ4_XS experts.

I have no AVX-512 here (TR PRO 3975WX, Zen 2), so I can't add a run of my own. One thing I'm taking from your Edit 3 for my own A/Bs: from now on each arm writes the engine's real command line and its STRATA_/FNX_ environment, read from /proc/<pid> after load, next to its results, so an unset variable shows up before the numbers do.

<!-- gh-comment-id:6683610769 --> @fioruccione commented on GitHub (Nov 6, 2026): @cobra91 thanks for rerunning it and for saying so plainly. That also makes my reply of 11-05 wrong where I wrote that your A/B "settles the AVX-512 question: parity, no reason to force AVX2". With the variable really set, the 512-bit IQ kernels are worth about 15-25% of decode on your Zen 5 with the IQ2_S/IQ2_XXS mix, so for anyone reading this thread later: on Zen 5 do not force AVX2 for IQ experts. Your caution about tier and cache warmth still stands. What is left of my original worry is only the IQ4_XS case: IQ4_XS has no 512-bit multi-token kernel, so its multi-token groups go to ggml on an AVX-512 CPU. As I wrote in the correction above, that touches very little (one layer's gate/up in the UD-IQ4_XS), and nobody has measured it on a file with many IQ4_XS experts. I have no AVX-512 here (TR PRO 3975WX, Zen 2), so I can't add a run of my own. One thing I'm taking from your Edit 3 for my own A/Bs: from now on each arm writes the engine's real command line and its `STRATA_`/`FNX_` environment, read from `/proc/<pid>` after load, next to its results, so an unset variable shows up before the numbers do.
Author
Owner

@fioruccione commented on GitHub (Nov 6, 2026):

A follow-up to point 3 of my 11-04 comment ("the PCIe share fixes itself on 0.2.7.1"), now that 0.2.11 has a new default for it.

Same box, both cards, UD-IQ4_XS, MTP, stock VRAM clocks. 0.2.11 (engine 0.1.57) with --pcie-frac 0.00 against the same config without it, so the new rule picks the share: PCIe share: start 0.10 from 30 pool workers (assumed 65 GB/s of expert bytes) and the 13.3 GB/s link (was 0.37). Decode medians, 4 requests per kind at T=0, two starts per arm, alternating:

prose code 20K summary prefill 20K / 69K
--pcie-frac 0.00 70.9 79.4 54.5 1856 / 2449
new rule (start 0.10) 70.2 70.9 50.8 1844 / 2449
-1% -11% -7% about the same

At T=0.7 code is -14% (n=2). The ranges don't overlap on code and summary.

So on two cards the starting 0.10 costs real speed here, mostly on code, which has the most CPU experts per window. That is not what I saw on 11-04: there, on one card and 0.2.7.1, letting the engine choose ended at 0.10 too and matched 0.00. Two differences I can't separate with these runs: one card against two, and whether 0.1.57 still adjusts the share after the start (I see only the start line in the log, not the us per missed expert ... pcie_frac line 0.2.7.1 printed). A big CPU (32 cores, 8 channels) is the case where sending any missed expert over a 13.3 GB/s link loses to computing it on the CPU, so for boxes like mine I would still pin --pcie-frac 0.00 on a layer split.

Passed: all requests answered, production restored afterwards. Failed: none.

<!-- gh-comment-id:6684150296 --> @fioruccione commented on GitHub (Nov 6, 2026): A follow-up to point 3 of my 11-04 comment ("the PCIe share fixes itself on 0.2.7.1"), now that 0.2.11 has a new default for it. Same box, both cards, UD-IQ4_XS, MTP, stock VRAM clocks. 0.2.11 (engine 0.1.57) with `--pcie-frac 0.00` against the same config without it, so the new rule picks the share: `PCIe share: start 0.10 from 30 pool workers (assumed 65 GB/s of expert bytes) and the 13.3 GB/s link (was 0.37)`. Decode medians, 4 requests per kind at T=0, two starts per arm, alternating: | | prose | code | 20K summary | prefill 20K / 69K | |---|---|---|---|---| | `--pcie-frac 0.00` | 70.9 | 79.4 | 54.5 | 1856 / 2449 | | new rule (start 0.10) | 70.2 | 70.9 | 50.8 | 1844 / 2449 | | | -1% | **-11%** | -7% | about the same | At T=0.7 code is -14% (n=2). The ranges don't overlap on code and summary. So on two cards the starting 0.10 costs real speed here, mostly on code, which has the most CPU experts per window. That is not what I saw on 11-04: there, on **one** card and 0.2.7.1, letting the engine choose ended at 0.10 too and matched 0.00. Two differences I can't separate with these runs: one card against two, and whether 0.1.57 still adjusts the share after the start (I see only the start line in the log, not the `us per missed expert ... pcie_frac` line 0.2.7.1 printed). A big CPU (32 cores, 8 channels) is the case where sending any missed expert over a 13.3 GB/s link loses to computing it on the CPU, so for boxes like mine I would still pin `--pcie-frac 0.00` on a layer split. Passed: all requests answered, production restored afterwards. Failed: none.
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#2089
No description provided.