mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #577] 0.1.38: UD-Q4_K_XL prompts 15-40% slower on a 96 GB PC, from the unbuffered file tier (STRATA_UNBUFFERED_LOAD=0 restores them) #273
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#273
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 @brenoperucchi on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/577
mise ~/.config/mise/config.toml tools: gh@2.102.0
On 0.1.38 the Unsloth UD-Q4_K_XL model reads prompts noticeably slower than on 0.1.34 on this machine. The log shows
the file tier switching to unbuffered reads (#357/#362), and setting
STRATA_UNBUFFERED_LOAD=0brings the speed back,slightly above 0.1.34.
Machine: RTX 5090 32 GB, Ryzen 9 5950X (AVX2), 96 GB DDR4-3200, NVMe, Windows 11, driver 616.64. Release binaries
0.1.34 and 0.1.38.
Model and config: UD-Q4_K_XL (hand-made pack, GGUF read in place), the same configs as in #433:
--resident-budget-gib 72|40 --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 32768 --kv int8. With 72 GiB every expert the GPU cache does not hold (48.94 GiB) is resident in RAM; with 40 GiB the restcome from the GGUF.
Method: as in #433, public prompts built from this repo, 1 warm-up + 3 measured runs, each run reading its whole
prompt fresh; engine
timings, medians.Prompt reading, tokens/s:
STRATA_UNBUFFERED_LOAD=0Decode is about the same in all of them. At start, 0.1.38 logs:
and with the variable set:
From
experts_unbuffered()insrc/core/pinned.cu, the decision isroom >= total_byteswithroom = available - arena_bytes - 4 GiB, andset_unbuffered()gets the requested budget (o.resident_budget) asarena_bytes. Here thatis 83.0 - 72 - 4 = 7 GiB against 103.7 GiB of files (all four shards), so the reads go unbuffered. With 72 GiB the
requested budget is larger than what is actually resident (48.94 GiB), which makes
roomsmaller than it is. Even at40 GiB, where the experts outside the budget really do come from the files, the file cache was faster than unbuffered
reads on this PC with 96 GB.
The packs on 0.1.38 got faster on the same machine (Swift IQ3_XXS and IQ3_S, prompt reading +11-20% at 14.7K and
28.9K tokens), so this seems specific to the GGUF-in-place file tier. The numbers will also go into #433.
@Niko1221 commented on GitHub (Oct 4, 2026):
Fixed in 0.1.39, thank you for the clear numbers and for finding the cause. The file tier decided on unbuffered reads before the RAM copy was built, from the budget you asked for (72 GiB) and against every shard's bytes (103.7 GiB, the dense weights and the PLE table included). Now it compares only the expert bytes the file tier really reads with the RAM left next to the copy. It decides once from the budget, so a low-RAM PC still reads the profile fill unbuffered as in 0.1.38. It then decides again after the copy is built, using the RAM the copy really holds (48.94 GiB in your case). On your 96 GB PC both budgets (72 and 40) now read through the file cache, while 32 and 64 GB PCs stay unbuffered. The start log has a line with the numbers it used (
the file tier reads ... (re-checked with the RAM copy built (48.94 GiB): ...)). The tokens are the same either way.STRATA_UNBUFFERED_LOAD=0/1still forces it. If you can, a run of your 72/40 GiB configs on 0.1.39 without the variable would confirm it on the PC that showed it.@brenoperucchi commented on GitHub (Oct 5, 2026):
Confirmed on the same PC (RTX 5090, Ryzen 9 5950X, 96 GB DDR4-3200), UD-Q4_K_XL, 0.1.39 release build, both configs without
STRATA_UNBUFFERED_LOAD. Both now read through the file cache, and the start log shows the second check:Prompt reading, median of 3 runs after a warm-up, same prompts as in the issue:
STRATA_UNBUFFERED_LOAD=00.1.39 with no variable lands where 0.1.38 was with the workaround, so the variable isn't needed anymore on this PC. Thanks for the fix and for the log line, it made this a one-look check. The runs and engine logs are in #433.