mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3360] [Benchmark] RTX A5500 24 GB: KV format, parallel slots and --vram-reserve-mib (engine 0.1.45) #1363
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#1363
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 @wishmeng on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3360
Measured on 2026-10-20 by @wishmeng. Six configurations, each on its own freshly started engine, measured with
tools/strata_bench.py --long(three runs each). Main limitation: a speed report on one card, with a locally prepared pack and a locally learned expert profile - no recall or quality test, no--clients Nconcurrency test, no GPU clock or PCIe capture.Hardware and software
Model and configuration
iq3_xxs, split GGUFQwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf+...-00002-of-00002.gguf; the PLE table is read directly from the second file. Locally prepared pack: name and layout given, files not published.expert-profile.bin, 0.2 MB, sha2568f59b4aa8873209dff11c11e37bcda9529a1335b724a1afeea37bf6388975baf(24576 ranked pairs, built for 24576 slots). The file itself is not published; every number here depends on it.--max-context 262144,--expert-cache auto,--prefill auto,--spec 4 --spec-min-p 0.5,--mtp <MTP_DIR>,--vision(CPU vision encoder), server on 127.0.0.1:8080, thinking off for the suite.--kv--kv-resident--vram-reserve-mibq4_0k8v4k8v4q4_0int8q4_0Method
127.0.0.1:8080,/propswas polled until the model reported ready, then 240 s of idle time with no requests.python tools/strata_bench.py --long --config <variant config> --compare <variant A folder>- three short chats capped at 100 new tokens, fresh word-list prompts of about 4,096 / 16,384 / 32,768 tokens (each carries a unique tag, so nothing is reused), and a six-turn agent session with four tools.prompt_per_second/predicted_per_second; TTFT is measured by the client. Medians with min-max ranges over three runs.N MiB of VRAM free with everything loaded,expert cache N slots) and its per-request low-memory warnings - not peak-during-inference values.Results
Token counts are the same in every variant: 4019 / 16058 / 32049 prompt tokens with 0 reused, 100 generated tokens per chat request, about 13718 new tokens per agent session.
What the engine reported about memory
| Variant | expert cache slots | cache VRAM | auto sizing | KV resident cells / QSA layer | KV host copy (pinned) | prompt path borrows | VRAM free at start | low-memory warnings | lowest warning value | decode cache hit % | KV streaming VRAM hit % |
| --- | ---: | ---: | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
| A | 9024 | 14.62 GiB | 15.74 GiB free, 966 MiB reserved (+184 MiB for the draft head) -> 6737 slots | 32768 | 1.69 GiB | 2546 (4.14 GiB) | 518 MiB | 2 | 378 MiB | 91.0 | 98.4 |
| B | 8855 | 14.34 GiB | 15.46 GiB free, 966 MiB reserved (+184 MiB for the draft head) -> 6609 slots | 32768 | 2.39 GiB | 2586 (4.19 GiB) | 520 MiB | 2 | 349 MiB | 90.6 | 98.4 |
| C | 8980 | 14.54 GiB | 15.80 GiB free, 966 MiB reserved (+184 MiB for the draft head) -> 6766 slots | 20480 | 2.39 GiB | 2583 (4.20 GiB) | 611 MiB | 2 | 468 MiB | 90.6 | 98.4 |
| D | 9971 | 16.16 GiB | 17.29 GiB free, 966 MiB reserved (+184 MiB for the draft head) -> 7450 slots | 32768 | 1.69 GiB | 2530 (4.14 GiB) | 503 MiB | 2 | 372 MiB | 95.2 | 98.3 |
| E | 9853 | 15.97 GiB | 17.10 GiB free, 966 MiB reserved (+184 MiB for the draft head) -> 7363 slots | 32768 | 3.09 GiB | 2600 (4.25 GiB) | 509 MiB | 2 | 364 MiB | 94.6 | 98.4 |
| F | 8680 | 14.06 GiB | 15.74 GiB free, 1536 MiB reserved (+184 MiB for the draft head) -> 6480 slots | 32768 | 1.69 GiB | 2554 (4.14 GiB) | 1090 MiB | 2 | 887 MiB | 90.2 | 98.5 |
Every variant printed the engine's low-memory warning at least once (
WARNING: only N MiB of VRAM free at the start of this request (below 1024 MiB) ... (#2065)). None of these runs degraded to a few tok/s, so on this card the warning marked a risk rather than an observed stall.What these numbers say
--vram-reserve-mib 1536is slower than 966 here. A vs F: chat decode 69.30 -> 61.60 (-11%), expert cache 9024 -> 8680 slots, decode cache hit rate 91.0% -> 90.2%. It buys headroom instead of speed: 518 -> 1090 MiB free at start, lowest warning value 378 -> 887 MiB.--kv int8beats--kv q4_0on long prompts and multi-turn work at one slot, not on short chat. E vs D: 16K prompt 2237 -> 2453 (+9.7%), 32K prompt 2221 -> 2403 (+8.2%), 32K TTFT 14.48 -> 13.39 s, agent turn decode 73.4 -> 86.0 (+17%), while chat decode is level to slightly worse (74.2 -> 72.2). The cost: pinned KV host copy 1.69 -> 3.09 GiB, and 9971 -> 9853 slots.--kv k8v4did not win at two slots on this card. B vs A: chat decode 69.30 -> 62.20 (-10%), 16K prompt 2267 -> 2129 (-6%); it only helped the agent session (75.0 -> 77.5). Halving--kv-resident(C) recovered the memory - 8980 slots, 611 MiB free at start, 468 MiB lowest warning - but not the speed (64.20 chat decode).Correctness and limitations
q4_0KV costs precision on long documents (perplexity +8-12%) was not checked here.--clients Nwas not run, so the two-slot variants are compared only on sequential requests; the single-slot variants would serialise two simultaneous clients.nvidia-smisampling, so paging was neither measured nor ruled out.--max-contextbelow 262,144, other--prefillsizes,STRATA_DF_QB_Q4=0,STRATA_QSA_SPLIT_ATTN=1, the 0.2.0-beta engine, and whether a reserve between 966 and 1536 beats both.Per-run data: the six
bench/results/folders named inmy/kvtest/runs.csv(eachresults.jsonholds every request and the machine facts), plus one engine log per variant.Reading the two slot numbers
expert cache auto: ... -> N slotsis what the free VRAM alone would allow; with a profile the engine then fills more slots than that (expert cache 9024 slots, 14.62 GiBin the next line). The table gives both, and the speed rows should be read against the final slot count.@Niko1221 commented on GitHub (Oct 22, 2026):
Thanks — I'll add the six A5500 configurations (KV format, parallel slots, --vram-reserve-mib) to docs/COMMUNITY_BENCHMARKS.md, with the caveat that VRAM paging was not sampled.
@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.