mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #922] RTX 5070 Ti 16GB / Windows / IQ3_S: calibration ~94 tok/s #402
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#402
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @annD-annD on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/922
Summary
I am seeing much lower decode performance than expected with Qwen3.8-Flash-Next IQ3_S on a Windows system with an RTX 5070 Ti 16 GB.
Strata itself calibrates this system at only about 13–14.4 tok/s.
In controlled requests with ~2.85K uncached prompt tokens and 256 generated tokens, decode speed is consistently around 9–10.6 tok/s.
This seems much lower than the published IQ3_S numbers for an RTX 5070 12 GB.
I am not sure whether this is a configuration issue, a Windows/Blackwell-specific performance problem, or expected behavior with my setup.
Hardware
Strata
The setup completed without errors.
Calibration results
Command:
.\START-HERE.bat --calibrate
Results:
PCIe share 0.00: 13.0 tok/s
PCIe share 0.20: 13.4 tok/s
PCIe share 0.35: 13.4 tok/s
PCIe share 0.55: 13.2 tok/s
PCIe share 0.75: 12.5 tok/s
draft floor 0.30: 13.7 tok/s
draft floor 0.50: 14.4 tok/s
draft floor 0.70: 13.7 tok/s
15 workers: 13.1 tok/s
10 workers: 13.7 tok/s
8 workers: 13.6 tok/s
Strata selected:
--pool-workers 10
--spec 4
--spec-min-p 0.5
Startup / memory layout
Typical startup:
experts loaded: 46.84 GiB at ~6.7 GiB/s
filling the GPU's expert cache:
4222 experts
8.06 GiB of VRAM
KV streaming:
32768 of 131072 cells per QSA layer in VRAM
K/V in ~1.55 GiB pinned RAM
MTP draft layer:
835 MiB VRAM
VRAM free with everything loaded:
~401 MiB
Relevant expert arena messages:
expert arena: cudaHostRegister PORTABLE ok
large pages refused for 50295996416 B
(GetLargePageMinimum=2097152, VirtualAlloc error 1314)
using 4 KB pages
The main engine detects the GPU correctly:
GPU 0: NVIDIA GeForce RTX 5070 Ti, compute capability 12.0
There is also an early:
ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detected
but this appears to come from the CPU vision process. The main Strata engine detects and uses GPU 0 correctly.
Controlled decode test
I sent three fresh requests through the OpenAI-compatible API.
Each request had:
Results:
Run 1:
prompt_tokens: 2852
completion_tokens: 256
elapsed: 31.7 s
Run 2:
prompt_tokens: 2850
completion_tokens: 256
elapsed: 33.3 s
Run 3:
prompt_tokens: 2853
completion_tokens: 256
elapsed: 34.7 s
Strata log showed approximately:
9.2 tok/s
10.6 tok/s
10.3 tok/s
Example:
done: 256 tokens in 32 s (10.6 tok/s)
expert cache 84.7% hit
+10.8% of routed experts over PCIe
Other runs showed:
expert cache hit rate: ~80–85%
additional routed experts over PCIe: ~10–14%
Real chat runs
I also see large variation during normal use.
Examples:
794 tokens in 78 s = 13.8 tok/s
expert cache 83.1% hit
+11.6% over PCIe
and:
583 tokens in 178 s = 3.3 tok/s
expert cache 79.0% hit
+14.8% over PCIe
Another 64K-context test:
1305 tokens in 475 s = 2.9 tok/s
expert cache 83.4% hit
+11.3% over PCIe
Reducing the context from 128K to 64K did not materially improve performance.
I also tested a smaller resident KV area, which allowed a slightly larger expert cache:
4357 experts / 8.31 GiB VRAM
but performance remained around:
2.8 tok/s
with:
78.2% expert cache hit
15.1% routed over PCIe
Why this looks unusual
The published IQ3_S speed measurements for an RTX 5070 12 GB appear to be around:
~52 tok/s at short context
~53 tok/s around 4K
~45 tok/s around 128K
My RTX 5070 Ti 16 GB system is consistently far below that, including during Strata's own calibration.
Because the calibration itself reports only ~14 tok/s, this does not appear to be caused only by OpenWebUI or by a particular chat prompt.
Questions
I am happy to provide the full strata-iq3_s.log, config JSON, or additional benchmark results if useful.
@ladno64 commented on GitHub (Oct 5, 2026):
I managed to get pretty good results on my aging 4060 Ti, but I reworked the project specifically for my machine. IQ3_S. Check your settings.
@annD-annD commented on GitHub (Oct 5, 2026):
Would you give me a hint which settings I should adjust?
@ladno64 commented on GitHub (Oct 5, 2026):
Ver. CUDA? >=13?
If CUDA is unavailable or not detected, processing will run on the slower mechanism. A low GPU temperature indicates that the graphics card is idling.
@dandandelion commented on GitHub (Oct 5, 2026):
GPU load shows 100% so it's working overtime. This is something else entirely, for comparison, a much weaker GPU like mine + a gen 4 PCIe should be destroyed by his box there. But here it's not even close. This might be a bug in the engine
@ladno64 commented on GitHub (Oct 5, 2026):
Which LLM model do you have loaded?
@dandandelion commented on GitHub (Oct 5, 2026):
IQ3_S at the moment.
@annD-annD commented on GitHub (Oct 5, 2026):
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S, Nvidia Driver Version: 591.74, CUDA Version: 13.1
GPU Load is high (99-100%) but Power is always below 60 W and CPU is also quite low during generation.
@ladno64 commented on GitHub (Oct 5, 2026):
Graph-based load and actual load are different things; it depends on many factors. However, such discrepancies usually arise because data is being unnecessarily shuffled back and forth. You need to find the right balance between experts, KV cache, memory bus width, and PCIe bandwidth.
@dandandelion commented on GitHub (Oct 5, 2026):
Even more factors to consider
@ladno64 commented on GitHub (Oct 5, 2026):
It's better to look at the settings based on the data in the strata-iq3_s.json file, literally the first 40 lines.
"exe": "engine/strata.exe",
"args": [
"--pack",
"../Strata-data/packs/iq3_s",
"--native",
"../Strata-data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
"--ple-gguf",
"../Strata-data/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
"--expert-cache",
"auto",
"--expert-profile",
"data/expert-profile.bin",
"--prefill",
"auto",
"--spec",
"4",
"--mtp",
"../Strata-data/mtp/rt",
"--max-context",
"262144",
"--kv",
"int8",
"--kv-resident",
"32768",
"--pcie-frac",
"0.20",
"--spec-min-p",
"0.70",
"--pool-workers",
"10",
"--vram-reserve-mib",
"128",
"--prompt-cache",
"32",
"--prompt-cache-every",
"16384",
"--conversation-cache-mib",
"24576",
"--conversation-cache-slots",
"6"
@krabokiller commented on GitHub (Oct 5, 2026):
Try to disable desktop visual effects, for me it was KWin (forceblur, better_blur_dx). got x3 improvement in token generation on my rtx4080. My 165hz refreh rate + blur killed near 60% of resources
@annD-annD commented on GitHub (Oct 6, 2026):
With Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS I get 3,2 t/s (280 t/s prefill). GPU never reaches the 300 W limit (it does with pure llama.cpp, copying ladno64 strata-iq3_s.json didn't help either).
strata-iq3_xxs.json:
"exe": "C:\AI\Strata\engine\strata.exe",
"args": [
"--pack",
"C:\AI\Strata-data\packs\iq3_xxs",
"--native",
"C:\AI\Strata-data\models\IQ3_XXS\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
"--ple-gguf",
"C:\AI\Strata-data\models\IQ3_XXS\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
"--expert-profile",
"C:\AI\Strata\data\expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\AI\Strata-data\mtp\rt",
"--max-context",
"131072",
"--kv",
"int8",
"--kv-resident",
"32768",
"--vision",
"--vram-reserve-mib",
"700"
strata-iq3_s.json (after calibrate):
"exe": "C:\AI\Strata\engine\strata.exe",
"args": [
"--pack",
"C:\AI\Strata-data\packs\iq3_s",
"--native",
"C:\AI\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
"--ple-gguf",
"C:\AI\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
"--expert-profile",
"C:\AI\Strata\data\expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"auto",
"--spec",
"4",
"--mtp",
"C:\AI\Strata-data\mtp\rt",
"--max-context",
"131072",
"--kv",
"int8",
"--kv-resident",
"32768",
"--vision",
"--vram-reserve-mib",
"700",
"--spec-min-p",
"0.5",
"--pool-workers",
"10"
@ladno64 commented on GitHub (Oct 6, 2026):
"--pcie-frac",
"0.20", ?
If this parameter is missing and defaults to "0," then almost all calculations will run on the processor.
"--pool-workers",
"10"
This is the number of active cores. You can increase it to 14-15. But before that, disable multithreading in the processor in the BIOS.
It's worth considering that my environment is left over from ver: 0.1.20. I only change the kernel srata.exe. The environment has been heavily customized to suit my needs, so many of its settings have persisted since back then.
@annD-annD commented on GitHub (Oct 6, 2026):
"--pcie-frac",
"0.20", did not improve speed on my system.
In llama.cpp (b11435) I get approx. 28 t/s for Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS on this PC with parameter gpu-layers = auto (but with gpu-layers = all I get only 3 t/s).
@djaafer1975 commented on GitHub (Oct 6, 2026):
Same model and pack here (Qwen3.8-Flash-Next GSQ-RCO IQ3_S), same Windows + single 16 GB Blackwell card class (RTX 5060 Ti). I ran your controlled test shape on our box and got 4-5x the decode, so the GPU/quant is not what's limiting you.
Our numbers (engine-side,
generated in ... (tok/s)):--kv-resident 32768, spec 4 — same as yours.Two config-level differences from your logs stand out as candidate causes:
large pages (2097152 B)succeeded; yours showslarge pages refused for 50295996416 B ... (VirtualAlloc error 1314) using 4 KB pages— the entire 46 GiB expert pool running on 4 KB pages. Error 1314 is "no privilege": MEM_LARGE_PAGES needs SeLockMemoryPrivilege ("Lock Pages in Memory") granted to the account. A 46 GiB hot pool on 4 KB pages is a TLB disaster, and it fits your "GPU load 100% but always <60 W" symptom (stalled on page walks, not computing). This is my prime suspect for the 4-5x gap.--expert-profileand pre-fill all 4196 slots before the first request; a cold auto cache starts empty. Also note we run an extra--control-vector-scaledspeed-projection you don't have — that accounts for part of the gap, but not 4x.One correction for the thread: "if --pcie-frac is missing it defaults to 0, so almost all calculations run on the processor" has the direction backwards. 0.00 means missed experts go to the CPU pool, and in our A/B scans (and another split-GPU user's independent scan in #791) 0.00 was the fastest setting; raising it toward 0.2+ made things slower, matching your own observation that 0.20 didn't help.
Suggested next step: grant "Lock Pages in Memory" to your user (or test once elevated), confirm the log line flips from
large pages refused ... using 4 KB pagesto large pages succeeding, then re-run--calibrate. If calibration jumps from ~14 to 30+, that's the answer. Your llama.cpp datapoint (IQ3_XXS at 28 t/s on the same box vs 3.2 t/s under Strata) supports "engine-side memory path on this machine", not hardware.@ladno64 commented on GitHub (Oct 6, 2026):
--pcie-frac = 0 Doesn't this mean that the pool of experts within VRAM stops being updated?
@annD-annD commented on GitHub (Oct 6, 2026):
I changed the SeLockMemoryPrivilege in Windows and now "large pages (2097152 B)" works but did not improve a lot.
PCIe share 0.35 is best with 18,6 tok/s during calibration and workers do not much differ between 15, 10 or 8: 15,7 / 15,4 / 15,9 tok/s.
The expert profile is loaded and fully pre-filled: pre-filled 4222 of 4222 slots from the profile, R4 hit path ON
@ladno64 commented on GitHub (Oct 6, 2026):
Update your video driver to the latest version, 617.14.
@djaafer1975 commented on GitHub (Oct 6, 2026):
Following up on our side of the same thread — same model and pack (Qwen3.8-Flash-Next GSQ-RCO IQ3_S), Windows, single 16 GB Blackwell card. Sharing the directions and the method, not just numbers, in case it saves someone a detour.
Our machine / model config
--kv-resident 32768, spec depth 4,--spec-min-p 0.7, PLE table on. Steady-state decode 36–42 tok/s on this card.Direction 1 — re-scan gate parameters locally; never copy another box's value.
spec-min-pdefault 0.5 was not our optimum: a local scan gave 0.7 (clearly better on Chinese, neutral on code), while other reported setups land at 0.8. Method that made it trustworthy: two fixed prompt sets (Chinese + code), 2 warm-up runs, median of 3 measured runs per arm, arms = 0.5 / 0.7 / 0.8 / 0.9. Same shape as the built-in calibration but with my own workload instead of synthetic prompts.Direction 2 — on Windows, check the memory-page path before tuning anything else.
Our arena log shows large pages granted (2 MB); if your log says they were refused and it fell back to 4 KB pages across a ~46 GB expert pool, that is the first suspect for a 3–5× decode gap. Fix we suggested in this thread: grant the account "Lock pages in memory", then re-run calibrate.
Direction 3 — PLE table precision is a free upgrade if disk allows.
Swapped the IQ4 n-gram table for the upstream FP8 E4M3 table: byte-for-byte verified against the official shards, engine confirms it loads, speed unchanged (36–40 tok/s before and after), so it is strictly better fidelity for zero latency cost. Note: use a mirror that ships real FP8 tensors — the official index.json is missing
weight_scale.Method note (applies to all of the above): read tok/s from engine-side log lines, keep prompt size / max_tokens / temperature fixed across arms, and take medians. Wall-clock UI numbers with drifting prompts will happily "prove" a tuning that doesn't exist.
Attached render is unrelated to performance — a single-file voxel garden scene (pagoda on a frozen lake at night), just for fun.
@ladno64 commented on GitHub (Oct 6, 2026):
https://huggingface.co/sleepyeldrazi/Qwen3.8-Flash-Next-GSQ-RCO-Q8_0-PLE-GGUF
@Niko1221 commented on GitHub (Oct 7, 2026):
Please send the start line about the arena lock, the PCIe link state under load (GPU-Z or nvidia-smi -q) and the Windows power plan. Large pages were refused so the arena used 4 KB pages, and the GPU stays under 60 W: it waits for the host. Another user with a 5060 Ti measures 33-49 tok/s on the same pack, so the quant and the card are not the limit. Retest on 0.1.40 as well.
@annD-annD commented on GitHub (Oct 7, 2026):
With new graphics driver 617.42, new release 0.1.40.2 it works with about 70 t/s now on RTX 5070 Ti. I do some tests and provide more info later.
@annD-annD commented on GitHub (Oct 8, 2026):
Good news! The performance issue appears to be largely resolved after upgrading NVIDIA driver and Strata v0.1.40.3.
Hardware: RTX 5070 Ti 16 GB, Ryzen 9 9950X, 128 GB RAM, Qwen3.8-Flash-Next IQ3_S.
What changed:
SeLockMemoryPrivilegeon Windows. Large Pages (2 MiB) now work, but this alone only improved calibration from ~14 to ~16 tok/s.Performance results:
The new calibration achieved up to 94.3 tok/s, compared to only ~14 tok/s originally.
More importantly, a real-world inference test with the calibrated adaptive expert-tier settings produced:
The reported generation speed increased during the response and stabilized around 84 tok/s.
This confirms that the improvement is not limited to the calibration benchmark. Strata now achieves over 80 tok/s in actual inference with IQ3_S on my RTX 5070 Ti 16 GB!
The new calibration selected:
That's a massive improvement over the first results and over everything else!
Thanks for all the helpful suggestions and for developing such an impressive framework!