mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2406] Image encoder on the GPU costs ~35-44% decode and ~40% prompt speed on a 16 GB card (DETAILS.md says 2-8%) #971
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#971
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 @olituks on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2406
Setup: RTX 4080 SUPER 16 GB (PCIe 4.0 x16), Ryzen 7 7800X3D, 64 GB RAM, Windows 11, driver 616.92 (CUDA 13.4),
Strata 0.1.44.1 (
296b59d2), IQ3_S, 196,608-token context, KV q4_0 +--kv-grow, calibrated settings.What changed: only
"vision": {"gpu": true}->"gpu": falseinstrata-iq3_s.json. Engine args identical.Results (
BENCH.bat --long, 3 runs each, medians; full report in #2404 ):Engine facts from the two runs:
expert_slotsexpert_cache_mibvram_free_mibThe vision-on-CPU result was reproduced in a second, separate engine start (prompt throughput within 0.3%, decode
within 5%). A real agent session afterwards (~90K tokens in context) generated at 97 tok/s with an 81.8% expert-cache
hit (72-80% before the change).
Why I'm reporting it: DETAILS.md ("Speed with images on") describes the GPU encoder as 2-8% slower, from ~1,000
fewer experts in VRAM. Here the cache gained 529 experts (+13%, about 1 GiB), but speed went up 35-62%.
vram_free_mibis almost the same in both runs, so it does not look like the engine simply had more headroom.
Questions:
--prefill autoborrows expert-cache slotsand gets larger chunks with a bigger cache?
--vision cpuon 16 GB cards and DETAILS.md could mention it.Happy to run more tests (logs,
--dump-routing, a specific build) if useful.@olituks commented on GitHub (Oct 17, 2026):
<html> <html><head></head>Follow-up with a controlled test on 0.1.45 (same machine, same config,
--host-core last; only the vision setting and--vram-reserve-mibchange;BENCH.bat --long, 3 runs each, medians). Slots and free VRAM are from the engine log; per-process VRAM from\GPU Process Memory(*)\Dedicated Usageduring the run.What this shows:
My guess (not verified) is WDDM paging GPU memory to system RAM when two processes share a full card, which Linux does not do and would explain why it does not reproduce there. The GPU-encoder path might be fine on Windows with ~1.2 GB left free; the CPU default for cards under 24 GB avoids it altogether.
Correction to my earlier comment: the prompt chunk and the startup "free" figure were not the cause.
Feel free to close this if the CPU default is the intended fix; I’m happy to run the Sysmem Fallback test if you want the mechanism confirmed.
</html> </html>@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.