You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Idea]: Does calibration include the PCIe speed to each GPU? #41
Does calibration include the PCIe speed to each GPU?
For example, my TUF x299 Mark 2 motherboard supports x16/x16/x8 on the 16x PCIe slots, and if I had it in a mining rig then I could add some more GPUs using x1.
Proposed improvement
If RustingStrata optimizes where it places the experts to try to maximize tokens/second then the PCIe speed to each GPU might influence the optimization process.
This is also nice Idea, I can do this, but I have a single-GPU box, so I can't measure it. If you can run a two-card setup with one card on x1, numbers from --device 0,1 with both orders would tell whether it is worth building. So tell me if you can help with benchmark and then I will implement it in main, so you can pull and try this out
@cr4zyc4t Sorry for waiting, it is on main now. Two things were added for this test:
--split A,B sets the share of the layers per card, in --device order. The default is still in proportion to free VRAM.
At load, each card prints its layers and its measured host-to-VRAM copy rate.
The link only matters for experts that are uploaded during prefill, so please use a model that does not fit in 40 GB of VRAM. Then run these and paste the device ... lines and the pp ... line of each:
Please also say which index is the x4 card. If the x4 card is faster with fewer layers, I will make the split use the measured rate automatically. Ty for your time and contribute!
One more update, calibrate now measures the split. On main:
calibrate --model M.gguf --device 0,1
It times prefill and decode with the layers split by free VRAM, then moves layers from one card to the other in steps of 15% and follows the faster direction. It prints one line per split (split [a, b]: prefill X tok/s, decode Y tok/s). A split that is more than 3% faster is stored in the calibration file, and later runs with the same --device order load with it. --split 30,70 still sets it by hand.
The link speed is not read from the driver: the timings include it, together with the speed of each card. The load also prints each card's host-to-VRAM copy rate. @cr4zyc4t, could you paste the split lines and the device N lines from your 2x 3080 box? The model must be larger than the VRAM of both cards together, else no expert is uploaded and the link does not matter.
One additional idea now you support the model discovery of hf models it might be easier to provide a calibrate any model switch... so it would go through each model and also hint if a given model is not supported because of whatever...
phil@bazzite:/var/home/phil/Projekte/RustingStrata$ target/release/rustingstrata calibrate --model /home/phil/.cache/huggingface/hub/models--unsloth--Qwen3.8-27B-GGUF/snapshots/4af51b3542f775b0a8e4b310bfb3f17e01c306c9/Qwen3.8-27B-Q4_0.gguf --device 0,1
page cache: reading 15312 MB of Qwen3.8-27B-Q4_0.gguf in the background (it shows as buff/cache, not as used memory)
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 0: AMD Radeon RX 9070 XT (RADV GFX1201)
vulkan: AMD Radeon RX 9070 XT (RADV GFX1201) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 1: AMD Radeon RX 7900 XT (RADV NAVI31)
vulkan: AMD Radeon RX 7900 XT (RADV NAVI31) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
device 0 (vulkan): layers 0..28, host-to-VRAM copy 9358 MB/s
plan: weights+state+scratch 10684 MB (KV 112 MB for 4096 tokens, prefill 88 MB), expert slots 0 MB, resident experts 0/0
device 1 (vulkan): layers 28..64, host-to-VRAM copy 6824 MB/s
plan: weights+state+scratch 15569 MB (KV 144 MB for 4096 tokens, prefill 88 MB), expert slots 0 MB, resident experts 0/0
chunk 512: prefill 3840 tok 564 tok/s
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 0: AMD Radeon RX 9070 XT (RADV GFX1201)
vulkan: AMD Radeon RX 9070 XT (RADV GFX1201) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 1: AMD Radeon RX 7900 XT (RADV NAVI31)
vulkan: AMD Radeon RX 7900 XT (RADV NAVI31) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
device 0 (vulkan): layers 0..28, host-to-VRAM copy 9346 MB/s
plan: weights+state+scratch 10772 MB (KV 112 MB for 4096 tokens, prefill 176 MB), expert slots 0 MB, resident experts 0/0
device 1 (vulkan): layers 28..64, host-to-VRAM copy 7532 MB/s
plan: weights+state+scratch 15657 MB (KV 144 MB for 4096 tokens, prefill 176 MB), expert slots 0 MB, resident experts 0/0
chunk 1024: prefill 3840 tok 575 tok/s
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 0: AMD Radeon RX 9070 XT (RADV GFX1201)
vulkan: AMD Radeon RX 9070 XT (RADV GFX1201) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 1: AMD Radeon RX 7900 XT (RADV NAVI31)
vulkan: AMD Radeon RX 7900 XT (RADV NAVI31) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
device 0 (vulkan): layers 0..28, host-to-VRAM copy 9202 MB/s
plan: weights+state+scratch 10949 MB (KV 112 MB for 4096 tokens, prefill 353 MB), expert slots 0 MB, resident experts 0/0
device 1 (vulkan): layers 28..64, host-to-VRAM copy 7572 MB/s
plan: weights+state+scratch 15834 MB (KV 144 MB for 4096 tokens, prefill 353 MB), expert slots 0 MB, resident experts 0/0
chunk 2048: prefill 3840 tok 575 tok/s
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 0: AMD Radeon RX 9070 XT (RADV GFX1201)
vulkan: AMD Radeon RX 9070 XT (RADV GFX1201) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 1: AMD Radeon RX 7900 XT (RADV NAVI31)
vulkan: AMD Radeon RX 7900 XT (RADV NAVI31) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
device 0 (vulkan): layers 0..30, host-to-VRAM copy 9392 MB/s
plan: weights+state+scratch 12293 MB (KV 112 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
device 1 (vulkan): layers 30..64, host-to-VRAM copy 7491 MB/s
plan: weights+state+scratch 15415 MB (KV 144 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
chunk 4096: prefill 3840 tok 576 tok/s
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 0: AMD Radeon RX 9070 XT (RADV GFX1201)
vulkan: AMD Radeon RX 9070 XT (RADV GFX1201) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 1: AMD Radeon RX 7900 XT (RADV NAVI31)
vulkan: AMD Radeon RX 7900 XT (RADV NAVI31) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
device 0 (vulkan): layers 0..28, host-to-VRAM copy 11009 MB/s
plan: weights+state+scratch 11301 MB (KV 112 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
device 1 (vulkan): layers 28..64, host-to-VRAM copy 7580 MB/s
plan: weights+state+scratch 16186 MB (KV 144 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
split [28, 36] (by free VRAM): prefill 573 tok/s, decode 18.4 tok/s
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 0: AMD Radeon RX 9070 XT (RADV GFX1201)
vulkan: AMD Radeon RX 9070 XT (RADV GFX1201) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 1: AMD Radeon RX 7900 XT (RADV NAVI31)
vulkan: AMD Radeon RX 7900 XT (RADV NAVI31) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
device 0 (vulkan): layers 0..19, host-to-VRAM copy 9537 MB/s
plan: weights+state+scratch 7807 MB (KV 64 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
device 1 (vulkan): layers 19..64, host-to-VRAM copy 7576 MB/s
plan: weights+state+scratch 19681 MB (KV 192 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
split [19, 45]: prefill 563 tok/s, decode 19.0 tok/s
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 0: AMD Radeon RX 9070 XT (RADV GFX1201)
vulkan: AMD Radeon RX 9070 XT (RADV GFX1201) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 1: AMD Radeon RX 7900 XT (RADV NAVI31)
vulkan: AMD Radeon RX 7900 XT (RADV NAVI31) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
device 0 (vulkan): layers 0..37, host-to-VRAM copy 9373 MB/s
plan: weights+state+scratch 14789 MB (KV 144 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
device 1 (vulkan): layers 37..64, host-to-VRAM copy 7785 MB/s
plan: weights+state+scratch 12699 MB (KV 112 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
split [37, 27]: prefill 584 tok/s, decode 18.6 tok/s
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 0: AMD Radeon RX 9070 XT (RADV GFX1201)
vulkan: AMD Radeon RX 9070 XT (RADV GFX1201) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 1: AMD Radeon RX 7900 XT (RADV NAVI31)
vulkan: AMD Radeon RX 7900 XT (RADV NAVI31) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
device 0 (vulkan): layers 0..46, host-to-VRAM copy 11504 MB/s
split [46, 18]: loading the model onto the GPU failed (if VRAM ran out: lower --ctx, add --kv q8, or close programs using VRAM): the model, KV cache and prefill scratch leave 0 MB of VRAM free, under the 512 MB margin: lower --ctx or --parallel, use --kv q8 or a smaller --chunk (--vram-margin 0 skips this check)
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 0: AMD Radeon RX 9070 XT (RADV GFX1201)
vulkan: AMD Radeon RX 9070 XT (RADV GFX1201) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
ATTENTION: default value of option radv_device_coherent_memory overridden by environment.
WARNING: radv is not a conformant Vulkan implementation, testing use only.
vulkan device 1: AMD Radeon RX 7900 XT (RADV NAVI31)
vulkan: AMD Radeon RX 7900 XT (RADV NAVI31) (radv Mesa 26.2.7), device-coherent memory yes, cooperative matrix f16 yes int8 yes (16x16x16), conditional rendering yes, maxComputeSharedMemorySize 65536
CUDA unavailable (CUDA init: no NVIDIA driver (libcuda.so)), using Vulkan
device 0 (vulkan): layers 0..37, host-to-VRAM copy 12671 MB/s
plan: weights+state+scratch 14879 MB (KV 144 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
device 1 (vulkan): layers 37..64, host-to-VRAM copy 7494 MB/s
plan: weights+state+scratch 12699 MB (KV 112 MB for 4096 tokens, prefill 706 MB), expert slots 0 MB, resident experts 0/0
prompt 8: steps 387.8 ms, batched 147.5 ms
prompt 16: steps 782.0 ms, batched 148.6 ms
prompt 32: steps 1551.5 ms, batched 155.1 ms
prompt 64: steps 3115.9 ms, batched 182.2 ms
prompt 128: steps 6215.4 ms, batched 264.7 ms
mtp 0: decode 128 tok 20.5 tok/s
mtp 1: decode 128 tok 31.5 tok/s
mtp 2: decode 128 tok 34.8 tok/s
mtp 3: decode 128 tok 34.6 tok/s
{"chunk":4096,"ctx":4096,"gpu":"AMD Radeon RX 9070 XT (RADV GFX1201)","measured":{"decode_tok_s":34.8,"prefill_tok_s":584.0},"mtp":2,"short":8,"split":{"devices":[0,1],"gpus":["AMD Radeon RX 9070 XT (RADV GFX1201)","AMD Radeon RX 7900 XT (RADV NAVI31)"],"layers":[37,27]}}
written to /home/phil/.cache/rusting_strata/strata-Qwen3.8-27B-Q4_0-vulkan.json
I am afraid that there could be a cache collision if multiple models share the same name but come from a different source and also if there is a single and multi gpu setup which will produce different results...
@runningman84 Good catch, both cases were real. On main:
A calibration on several cards has its own file: strata-<model>-vulkan-dev0-1.json (the order counts, --device 1,0 writes -dev1-0). Calibrating two cards no longer replaces the one-card calibration, and a one-card run reads only its own file.
The file stores the size of the GGUF. A different file with the same name (another source or quant tool) is ignored with a warning and not used, so you get the defaults instead of wrong settings; calibrate for that file writes a new one.
About the split result in your log: [37, 27] was kept although [19, 45] decoded a bit faster (19.0 vs 18.6 tok/s), because the search scores prefill x decode and needs a 3% gain over the best so far: 584 x 18.6 is 3.0% above 573 x 18.4, while [19, 45] was only 1.5% above. The split line now prints that share, so you can see why a split was kept:
split [37, 27]: prefill 584 tok/s, decode 18.6 tok/s, prefill x decode 1.030 of the best so far
For calibrating all models at once, a shell loop does it, one file per model:
for f in ~/models/*.gguf; do rustingstrata calibrate --model "$f" --device 0,1; done
But this thing with shell command looks bad, maybe I will implement something like "calibratefolder" or idk, I will think about it
Two-card numbers on an asymmetric pair (x4 + x16), and how they compare to one card
You asked in this thread for --device 0,1 in both orders on a slow link. I have that topology, so here it is. This is a report from hardware you do not have; I did not change any code.
Rig: Ryzen 7 5700X, 31 GB RAM, Linux (Mint 22.3, kernel 7.0), NVIDIA 595.99, RustingStrata v1.3.7 (release binary, no build).
GPU 0 = RTX 3060 12 GB on PCIe 4.0 x4 (it sits behind the chipset), GPU 1 = RTX 3060 12 GB on x16. No P2P. GPU 1 also drives the desktop, so it starts with ~10.4 GiB free against ~11.9 GiB on GPU 0.
* the 512 cell of 1,0 was the first work of a cold process; treat only its 4096 cell as comparable.
Three things that may matter before you implement PCIe-aware expert placement:
The split is ~4x slower than a single card on both orders (46–51 prefill against 191–206; 18 decode against 25). On this box the layer split costs more than it buys even though the second card starts with 10.4 GiB free, so link pricing alone would not have rescued it — the handoff itself looks like the cost.
For a single card, free VRAM beat link speed: the x4 card with 1.5 GiB more headroom was 9–17% faster than the x16 card. If placement weighting uses link bandwidth, that term should not outvote the expert-cache capacity term at this size.
Order matters a lot: 1,0 was 2.4x slower at 4096 tokens than 0,1 (7.6 vs 18.1 tok/s decode). Worth knowing before promising a both-orders speedup.
Not tested: Vulkan (CUDA was used throughout), other models, contexts beyond 16k here, and whether MTP changes the picture — Inkling-2-Mini-UD-IQ4_XS reports drafter=none, so there was no draft head to test with.
One environment note in case it helps someone else: with only the CUDA 13.0 toolkit installed there is libnvrtc.alt.so and no libnvrtc.so.13, so the engine falls back to Vulkan silently (one log line) and loses ~25%. Pointing STRATA_NVRTC at the .alt file fixed it here.
thanks a lot, this is very useful, i don't have a x4 + x16 pair so these numbers help. one thing: 1.3.7 does not have the inkling 2 two-card change yet (expert slabs on the second card, #96), so your 0,1 and 1,0 numbers are the old split. it is in 1.4.0 now, if you have time could you run the same bench again with --device 0,1 and 1,0? also fixed the nvrtc thing you found: 1.4.0 looks for libnvrtc.so.13 and libnvrtc.alt.so too, so STRATA_NVRTC is not needed anymore.
Activity
Vasyl-Trefilov commentedon Nov 15, 2026
This is also nice Idea, I can do this, but I have a single-GPU box, so I can't measure it. If you can run a two-card setup with one card on x1, numbers from --device 0,1 with both orders would tell whether it is worth building. So tell me if you can help with benchmark and then I will implement it in main, so you can pull and try this out
docs: loop log #41, deltanet_seq prefetch
docs: track M0-T8 in review (issue #40, PR #41)
[#40] Machine-readable benchmark capture (M0-T8) (#41)
docs: close M0-T8 (issue #40, PR #41, 7461b17)
cr4zyc4t commentedon Nov 19, 2026
I have 2x rtx3080 20gb on pcie 4.0 x16/x4, glad to test your new solution
Vasyl-Trefilov commentedon Nov 19, 2026
okay, I will tag you when it's ready, maybe today in like 5-6 hours(I still need to finish my other feature in Strata), ty for contribute
split: --split sets the layer share per device; the load prints each …
Vasyl-Trefilov commentedon Nov 20, 2026
@cr4zyc4t Sorry for waiting, it is on main now. Two things were added for this test:
The link only matters for experts that are uploaded during prefill, so please use a model that does not fit in 40 GB of VRAM. Then run these and paste the device ... lines and the pp ... line of each:
rustingstrata bench --model M.gguf --gpu --device 0,1 --fixed-experts --pp 8192 --tg 128 --reps 3
rustingstrata bench --model M.gguf --gpu --device 0,1 --fixed-experts --pp 8192 --tg 128 --reps 3 --split 30,70
rustingstrata bench --model M.gguf --gpu --device 0,1 --fixed-experts --pp 8192 --tg 128 --reps 3 --split 70,30
rustingstrata bench --model M.gguf --gpu --device 1,0 --fixed-experts --pp 8192 --tg 128 --reps 3
Please also say which index is the x4 card. If the x4 card is faster with fewer layers, I will make the split use the measured rate automatically. Ty for your time and contribute!
Vasyl-Trefilov commentedon Nov 20, 2026
One more update, calibrate now measures the split. On main:
calibrate --model M.gguf --device 0,1
It times prefill and decode with the layers split by free VRAM, then moves layers from one card to the other in steps of 15% and follows the faster direction. It prints one line per split (split [a, b]: prefill X tok/s, decode Y tok/s). A split that is more than 3% faster is stored in the calibration file, and later runs with the same --device order load with it. --split 30,70 still sets it by hand.
The link speed is not read from the driver: the timings include it, together with the speed of each card. The load also prints each card's host-to-VRAM copy rate. @cr4zyc4t, could you paste the split lines and the device N lines from your 2x 3080 box? The model must be larger than the VRAM of both cards together, else no expert is uploaded and the link does not matter.
calibrate: with several GPUs, measures layer splits and stores the fa…
split: --split sets the layer share per device; the load prints each …
calibrate: with several GPUs, measures layer splits and stores the fa…
runningman84 commentedon Nov 22, 2026
One additional idea now you support the model discovery of hf models it might be easier to provide a calibrate any model switch... so it would go through each model and also hint if a given model is not supported because of whatever...
runningman84 commentedon Nov 22, 2026
this is my output:
I am afraid that there could be a cache collision if multiple models share the same name but come from a different source and also if there is a single and multi gpu setup which will produce different results...
Vasyl-Trefilov commentedon Nov 22, 2026
@runningman84 Good catch, both cases were real. On
main:strata-<model>-vulkan-dev0-1.json(the order counts,--device 1,0writes-dev1-0). Calibrating two cards no longer replaces the one-card calibration, and a one-card run reads only its own file.calibratefor that file writes a new one.About the split result in your log: [37, 27] was kept although [19, 45] decoded a bit faster (19.0 vs 18.6 tok/s), because the search scores prefill x decode and needs a 3% gain over the best so far: 584 x 18.6 is 3.0% above 573 x 18.4, while [19, 45] was only 1.5% above. The split line now prints that share, so you can see why a split was kept:
For calibrating all models at once, a shell loop does it, one file per model:
But this thing with shell command looks bad, maybe I will implement something like "calibratefolder" or idk, I will think about it
serve: the Inkling 2, Hy4, GLM, DeepSeek and Gemma 4 servers log each…
Vasyl-Trefilov commentedon Nov 22, 2026
@runningman84 Ye, I just did this
dailybarid commentedon Nov 26, 2026
Two-card numbers on an asymmetric pair (x4 + x16), and how they compare to one card
You asked in this thread for
--device 0,1in both orders on a slow link. I have that topology, so here it is. This is a report from hardware you do not have; I did not change any code.Rig: Ryzen 7 5700X, 31 GB RAM, Linux (Mint 22.3, kernel 7.0), NVIDIA 595.99, RustingStrata
v1.3.7(release binary, no build).GPU 0 = RTX 3060 12 GB on PCIe 4.0 x4 (it sits behind the chipset), GPU 1 = RTX 3060 12 GB on x16. No P2P. GPU 1 also drives the desktop, so it starts with ~10.4 GiB free against ~11.9 GiB on GPU 0.
Model:
Inkling-2-Mini-UD-Q4_K_XL.gguf(17.6 GB,arch=inkling2_loop, 24 layers / 48 visits, 128 experts) — it loads unmodified, no conversion.Command shape:
bench --model … --gpu --backend cuda --device <list> --ctx 16384 --pp 512,4096 --tg 64 --reps 1, page cache warm.--device0(x4 card, 11.9 GiB free)1(x16 card, 10.4 GiB free)0,11,0* the
512cell of1,0was the first work of a cold process; treat only its4096cell as comparable.Three things that may matter before you implement PCIe-aware expert placement:
1,0was 2.4x slower at 4096 tokens than0,1(7.6 vs 18.1 tok/s decode). Worth knowing before promising a both-orders speedup.Not tested: Vulkan (CUDA was used throughout), other models, contexts beyond 16k here, and whether MTP changes the picture —
Inkling-2-Mini-UD-IQ4_XSreportsdrafter=none, so there was no draft head to test with.One environment note in case it helps someone else: with only the CUDA 13.0 toolkit installed there is
libnvrtc.alt.soand nolibnvrtc.so.13, so the engine falls back to Vulkan silently (one log line) and loses ~25%. PointingSTRATA_NVRTCat the.altfile fixed it here.cuda: NVRTC is also looked up as libnvrtc.so.13/.12 and libnvrtc.alt.…
Vasyl-Trefilov commentedon Nov 26, 2026
thanks a lot, this is very useful, i don't have a x4 + x16 pair so these numbers help. one thing: 1.3.7 does not have the inkling 2 two-card change yet (expert slabs on the second card, #96), so your 0,1 and 1,0 numbers are the old split. it is in 1.4.0 now, if you have time could you run the same bench again with --device 0,1 and 1,0? also fixed the nvrtc thing you found: 1.4.0 looks for libnvrtc.so.13 and libnvrtc.alt.so too, so STRATA_NVRTC is not needed anymore.