[GH-ISSUE #1080] RTX 5000 PRO slow unsloth ud iq4_xs fix #464

Closed
opened 2026-11-04 01:43:15 +07:00 by bsakaguchi · 8 comments
Owner

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

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
Author
Owner

@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.

<!-- gh-comment-id:6037988465 --> @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.
Author
Owner

@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

<!-- gh-comment-id:6044102365 --> @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
Author
Owner

@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 55 for 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 55 added 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:

Variant Prefill (tok/s) Decode (tok/s) RAM available (min) Page reads/s (p95)
ISTA IQ3_S (reference) 989 44.6 17.0 GiB (16.4) 1,615
UD-Q3_K_XL, budget 55 731 30.4 5.5 GiB (1.9) 11,529
UD-Q3_K_XL, no budget 898 37.5 12.7 GiB (12.6) 23
UD-IQ4_XS, budget 55 702 27.3 3.6 GiB (0.4) 8,184
UD-IQ4_XS, no budget 850 33.9 9.7 GiB (9.5) 267

Per context point (prefill of the first repeat / decode median of 5):

Context UD-Q3_K_XL budget UD-Q3_K_XL no budget UD-IQ4_XS budget UD-IQ4_XS no budget
8K 757 / 33.2 932 / 43.1 738 / 26.9 876 / 34.7
72K 760 / 30.2 981 / 37.3 732 / 27.9 929 / 32.7
136K 773 / 31.8 939 / 38.1 742 / 27.5 891 / 33.9
200K 731 / 30.4 898 / 37.3 702 / 25.8 850 / 32.7
264K 707 / 30.4 856 / 38.6 680 / 28.2 817 / 33.6
328K 670 / 30.6 814 / 37.3 644 / 26.3 777 / 34.5
392K 659 / 28.5 786 / 37.5 636 / 27.3 751 / 34.2

What the start log shows in budget mode:

FileExpertSource: RAM budget 55.00 GiB: 21267 of the 45.01 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files
strata generate: resident RAM mode: 45.01 GiB of experts in RAM (page-locked), 3309 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads)
...
strata serve: expert tiers: GPU 169375 hits this request; since the start RAM 4959601 blobs, files 16497 blobs 257277.9 MB read (the GGUF in place)

(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:

  • setup: when the RAM holds all experts plus a margin (here 52-55 GiB of experts on 80 GB left 9.7-12.7 GiB), don't write --resident-budget-gib for the Unsloth family;
  • engine: when the budget is larger than the experts outside the GPU cache, keep the GPU-cached ones in RAM as well, so a swap never goes to the file.

Raw CSVs, RAM samples and engine logs are available if useful.

<!-- gh-comment-id:6052138032 --> @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 55` for 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 55` added 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](https://github.com/masel/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: | Variant | Prefill (tok/s) | Decode (tok/s) | RAM available (min) | Page reads/s (p95) | |---|---:|---:|---:|---:| | ISTA IQ3_S (reference) | 989 | 44.6 | 17.0 GiB (16.4) | 1,615 | | UD-Q3_K_XL, budget 55 | 731 | 30.4 | 5.5 GiB (1.9) | 11,529 | | UD-Q3_K_XL, no budget | **898** | **37.5** | **12.7 GiB** (12.6) | 23 | | UD-IQ4_XS, budget 55 | 702 | 27.3 | 3.6 GiB (0.4) | 8,184 | | UD-IQ4_XS, no budget | **850** | **33.9** | **9.7 GiB** (9.5) | 267 | Per context point (prefill of the first repeat / decode median of 5): | Context | UD-Q3_K_XL budget | UD-Q3_K_XL no budget | UD-IQ4_XS budget | UD-IQ4_XS no budget | |---:|---:|---:|---:|---:| | 8K | 757 / 33.2 | 932 / 43.1 | 738 / 26.9 | 876 / 34.7 | | 72K | 760 / 30.2 | 981 / 37.3 | 732 / 27.9 | 929 / 32.7 | | 136K | 773 / 31.8 | 939 / 38.1 | 742 / 27.5 | 891 / 33.9 | | 200K | 731 / 30.4 | 898 / 37.3 | 702 / 25.8 | 850 / 32.7 | | 264K | 707 / 30.4 | 856 / 38.6 | 680 / 28.2 | 817 / 33.6 | | 328K | 670 / 30.6 | 814 / 37.3 | 644 / 26.3 | 777 / 34.5 | | 392K | 659 / 28.5 | 786 / 37.5 | 636 / 27.3 | 751 / 34.2 | What the start log shows in budget mode: ``` FileExpertSource: RAM budget 55.00 GiB: 21267 of the 45.01 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files strata generate: resident RAM mode: 45.01 GiB of experts in RAM (page-locked), 3309 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads) ... strata serve: expert tiers: GPU 169375 hits this request; since the start RAM 4959601 blobs, files 16497 blobs 257277.9 MB read (the GGUF in place) ``` (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: - setup: when the RAM holds all experts plus a margin (here 52-55 GiB of experts on 80 GB left 9.7-12.7 GiB), don't write `--resident-budget-gib` for the Unsloth family; - engine: when the budget is larger than the experts outside the GPU cache, keep the GPU-cached ones in RAM as well, so a swap never goes to the file. Raw CSVs, RAM samples and engine logs are available if useful.
Author
Owner

@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

<!-- gh-comment-id:6052902419 --> @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
Author
Owner

@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

<!-- gh-comment-id:6057602606 --> @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**
Author
Owner

@masel commented on GitHub (Oct 8, 2026):

well i will leave it to @masel xD i am not able to do this detailed analyses :D

TBF: Claude Opus 5.5 greatly helped by this (together with the ctx-cliff tool mentioned) :)

<!-- gh-comment-id:6058118340 --> @masel commented on GitHub (Oct 8, 2026): > well i will leave it to [@masel](https://github.com/masel) xD i am not able to do this detailed analyses :D TBF: Claude Opus 5.5 greatly helped by this (together with the ctx-cliff tool mentioned) :)
Author
Owner

@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.

<!-- gh-comment-id:6156013628 --> @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](https://github.com/Niko1221/Strata/releases/tag/v0.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.
Author
Owner

@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 55 added or not, tools/strata_bench.py --long --runs 3, two interleaved rounds per arm, medians):

all experts in RAM budget 55
chat decode 39.3 tok/s 29.8 tok/s -24%
agent turns, decode (n=30) 42.7 tok/s 31.5 tok/s -26%
16K / 32K prompt 922 / 936 tok/s 812 / 828 tok/s -12%
file reads per BENCH run none ~196 GB
FileExpertSource: RAM budget 55.00 GiB: 21477 of the 48.45 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files
strata generate: resident RAM mode: 48.45 GiB of experts in RAM (page-locked), 3099 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads)
...
strata serve: expert tiers: GPU 8751 hits this request; since the start RAM 1218453 blobs, files 29048 blobs 196037.7 MB read (the GGUF in place)

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.

<!-- gh-comment-id:6216234817 --> @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 55` added or not, `tools/strata_bench.py --long --runs 3`, two interleaved rounds per arm, medians): | | all experts in RAM | budget 55 | | |---|---:|---:|---:| | chat decode | 39.3 tok/s | 29.8 tok/s | -24% | | agent turns, decode (n=30) | 42.7 tok/s | 31.5 tok/s | -26% | | 16K / 32K prompt | 922 / 936 tok/s | 812 / 828 tok/s | -12% | | file reads per BENCH run | none | ~196 GB | | ``` FileExpertSource: RAM budget 55.00 GiB: 21477 of the 48.45 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files strata generate: resident RAM mode: 48.45 GiB of experts in RAM (page-locked), 3099 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads) ... strata serve: expert tiers: GPU 8751 hits this request; since the start RAM 1218453 blobs, files 29048 blobs 196037.7 MB read (the GGUF in place) ``` 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#464
No description provided.