mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4943] [Engine] Curious performance difference between iq3_s and unsloth_ud-q4_k_xl #2274
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#2274
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 @galmok on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4943
I have been running iq3_s up until now and decided to try a bit larger model (103GB vs 77GB) to see if performance was acceptable on my system:
CPU: 9850X3D
GPU 0: AMD Radeon RX 9070 XT (gfx1201)
128GB RAM (MemAvailable 91.5 GiB)
With iq3_s I used to get around 1000 tps in prompt processing (earlier version of strata gave close to 1400 tps) and around 50 tps in generation speed.
However, with unsloth-ud-q4_k_xl I get about 140 tps in prompt processing and around 30 tps in generation speed. The token generation does read a tiny bit from disk like 1MB/s at most, but this could also have been other windows tasks. I did run calibrate.
I am wondering if 140 tps in prompt processing is normal or curiously low? I obviously think this is a bit low and would like to know the experience of other users with this model on Strata.
Related: During prompt processing, I do notice that one CPU core is loaded 100% and about 2 other cores loaded 30% and the rest not really being used. This is true for both models. Is this normal or should the load have been distributed better? During token generation, 8 cores are loaded 100%.
@bob-u commented on GitHub (Nov 2, 2026):
It's quite low. I have seen 670 to 930tok/s for pp and 42tok/s on Q4 while getting 1050tok/s pp on Q3_S. (0.1.50)
@Adamyno commented on GitHub (Nov 2, 2026):
On sm_75 the ordering is the other way round: our UD-Q4_K_XL prefills ~1.9× faster than IQ3_S
A data point from a third architecture, because it speaks to whether your 140 tok/s is the pack or the box.
Hardware: 3× RTX 2080 Ti 22 GB (sm_75), i9-7980XE, 125 GiB DDR4-3600, Linux 7.0.0-38, CUDA 13.0, driver 580.178.04. Layer split across the three cards,
--kv int8,--reasoning-format/MTP as below.--ctx 262144 --kv int8 --kv-resident 32768 --spec 3 --spec-min-p 0.54 --mtp mtp/rt --mtp-max-t 3, K=16,32So on this box the larger K-quant is the faster one on the prompt path, by about 1.9×, and only slightly slower on decode. That matches the mechanism rather than the numbers: an i-quant expert is a lookup-table format (its dequant reads a table per block), while a K-quant dequant is arithmetic — so a 4.5 bpw K pack can beat a 3.5 bpw i-quant on prefill even though it moves more bytes. Your 1000 → 140 tok/s drop in the opposite direction (the small pack faster on prefill, 7×) is therefore the surprising half, and to me it points at the UD pack on that box rather than at "Q4 is slow".
What I would check first on your side, in this order:
strata generatestartup line that prints the pack's tensor layout would show it.--verboseprints the expert cache slots and the CPU-lane share per token, which separates "reading experts from RAM" from "reading them from disk" (you mention ~1 MB/s of disk reads, which is low enough to be unrelated, but the CPU-lane share is the number that matters).--prefill autoversus a fixed--prefill-chunk: on our 3-card split the auto pick was 4,509 tokens, and going to 8,192 on a two-card box was worth 11-15% in the docs' own numbers. A much larger chunk on an AMD split can also thrash the expert cache, which would show up exactly as "prefill collapsed while decode only halved".If it is useful I can run the same two packs back to back on this box at a fixed prompt set so you have a same-rig pair; but 1.9× in favour of the bigger pack on sm_75 is already the cleanest evidence I have that 140 tok/s is not what this pack should do.
Reproduction status: measured locally on the third box (sm_75, CUDA 13.0).
@galmok commented on GitHub (Nov 2, 2026):
I rebooted the computer and upgraded GPU drivers (probably wasn't required) and that resolved the issue. I don't know what was causing the issue, but it seems resolved now. I guess Windows (or rather the AMD GPU driver) can get stuff stuck in the GPU. I ran the benchmark:
iq3_s:
unsloth-ud-q4_k_xl:
So while the performance did lower, it is still decent. I checked the log files and compared a run yesterday with a run today and there were differences and I think I have extracted the most important ones (just a few from each):
Yesterday (poor performance; model on fast (10+ GBps) nvme):
Today (decent performance; model on slower (<4GBps) nvme):
So something did go wrong yesterday, but I am not sure why the 77GB load was refused when there was 91GB free, but I am not qualified to comment on the differences.
unsloth-ud-q4_k_xl good run.txt
@galmok commented on GitHub (Nov 7, 2026):
With the later versions of Strata (I just updated), even when using iq3_s, running World of Warcraft at the same time really hits prompt processing hard, resulting in around 217 tps. I used to get 500-800 tps. Problem is, even when exiting WoW, prefill rate remains low (should be around 1000 (old Strata was close to 1400)). Seems I have to reboot every time and that wasn't necessary with the older Strata. Token generation speed is as expected, though.