mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1080] RTX 5000 PRO slow unsloth ud iq4_xs fix #464
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#464
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 @ukrolelo on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1080
I didin't read what is this settings but i removed this
"--resident-budget-gib",
"55",
from the json and now it's flying, otherwise it was dead slow. 262K context, parallel 2, vision cpu
usage 47.1/47.8 VRAM
@Niko1221 commented on GitHub (Oct 7, 2026):
0.1.40.2 now prints a warning at start when --resident-budget-gib is bigger than the RAM the PC has free; a budget above the free RAM pushes experts to swap or the file tier, which fits a slow run. To go further we still need the Strata version, the RAM size, who wrote the 55 (setup or you), the tok/s before and after, and the start log, so this stays open.
@ukrolelo commented on GitHub (Oct 7, 2026):
It was setup, i have 256 GB RAM so i doubt it was not free, but tomorrow i will update strata and test it out
@masel commented on GitHub (Oct 8, 2026):
Same effect here, measured, on a PC with enough free RAM, so I think it is not (only) a budget above the free RAM. Setup wrote the
--resident-budget-gib 55for UD-IQ4_XS on this PC; removing it made both Unsloth quants I tried 21-24 % faster in prefill and decode, and left more RAM available.Setup: RTX 5060 Ti 16 GB (driver 616.92), Ryzen 7 5700X3D, 80 GB RAM (79.9 GiB visible), Windows 11, NVMe SSD. Engine 0.1.40 (release), server 0.1.40.1 (0.1.40.2 not tested). Configs as setup writes them (
--max-context 393216 --rope-scaling yarn --rope-scale 1.5 --kv int8 --kv-resident 32768 --expert-cache auto --spec 4 --pcie-frac 0.20 --spec-min-p 0.70), only--resident-budget-gib 55added or removed. Models: UD-IQ4_XS (55.4 GiB of experts), UD-Q3_K_XL (52.0 GiB); ISTA IQ3_S (native pack) as reference. Benchmark: ctx-cliff via/v1/chat/completions, incremental prefix cache, 8K-392K in 64K steps, 5 repeats x 512 tokens, fresh server per variant; available RAM and page reads sampled every 10 s.Median over the 7 context points:
Per context point (prefill of the first repeat / decode median of 5):
What the start log shows in budget mode:
(UD-IQ4_XS: 48.45 GiB in RAM, 3102 experts in the GPU cache, 257,208.8 MB read from the files.)
So the budget covers every expert outside the GPU cache, but the ~7 GiB in the GPU cache are never in RAM. Every swap that brings one of them back reads it from the GGUF: ~257 GB of file reads in one 23-minute sweep, for each model. Those pages then also sit in the OS file cache, which is why less RAM is available than without the budget, where the whole arena is page-locked once and nothing is read afterwards. In shorter runs the budget mode also made prefill jump between ~420 and ~760 tok/s in the first requests; GPU SM utilization in prefill was 30 % with the budget against 47 % without (IQ3_S: 53 %).
This looks like the first observation in #1145 (cache contents of the additional GPUs not in the resident complement), here on a single GPU.
Possible fixes:
--resident-budget-gibfor the Unsloth family;Raw CSVs, RAM samples and engine logs are available if useful.
@ukrolelo commented on GitHub (Oct 8, 2026):
well i will leave it to @masel xD i am not able to do this detailed analyses :D
@ukrolelo commented on GitHub (Oct 8, 2026):
strata v0.1.40.3
unsloth-UD-Q4_K_XL
ram 38/256
vram 46.9/48
shared ram 38/128
pp2000
~80tg
removed from json that created on setup
"--resident-budget-gib",
"71",
Now:
ram 76/256
vram 46.9/48
shared ram 76/128
pp 2600
~120tg
@masel commented on GitHub (Oct 8, 2026):
TBF: Claude Opus 5.5 greatly helped by this (together with the ctx-cliff tool mentioned) :)
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
@masel commented on GitHub (Oct 16, 2026):
Re-tested on v0.1.44.1. For this PC the setup side is solved: with the new rule (experts + 16 GiB must fit the RAM,
unsloth_budget), setup keeps every UD-IQ4_XS expert in RAM on 79.9 GiB and no longer writes--resident-budget-gib. No need to reopen from my side.The engine behaviour behind it is unchanged, for the record (UD-IQ4_XS, the same config with
--resident-budget-gib 55added or not,tools/strata_bench.py --long --runs 3, two interleaved rounds per arm, medians):So a budget at or above the experts outside the GPU cache still reads the GPU-cached ones back from the GGUF. With the new setup rule that case should be rare (a budget that large means the experts nearly fit anyway), so this is only relevant for budgets set by hand.