mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4060] [Engine] Support bartowski quants for Qwen 3.8 Flash Next #1761
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#1761
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 @tannisroot on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4060
Bartowski quants feature a IQ4_NL model, which sits between UD_IQ4_XS and UD_Q4_K_XL in terms of quality while being only 5 GB larger than the XS.
On my setup, I can run IQ4_XS at decent speeds, but with the XL my setup chokes and is heavily swapping.
Native support for IQ4_NL would be much appreciated to improve output quality for those with the specs for it.
Strata version - 2.4.0
GPU - AMD RTX 7900 XTX 24 GB
System - 64GB RAM
@dandandelion commented on GitHub (Oct 25, 2026):
With 64GB RAM, I doubt it will fit. It might do a 3-tier inference (VRAM, RAM, SSD) and not the good 3-tier one. In llama.cpp (which I assume the one you ran IQ4_NL with), VRAM + RAM is your ceiling. With strata, your RAM is pretty much the ceiling (experts need to fit in this) cause your VRAM is only for cached experts. It doesn't move experts from RAM to VRAM, it just copies. It will technically still be more efficient than llama.cpp but I'd assume not by much since RAM < experts with IQ4_NL
@jintakhan commented on GitHub (Oct 25, 2026):
Looks like we're running into the same issue at almost the exact same time! Same core issue as #4055: lack of IQ4_NL quant support for gate/up projections.
@tannisroot commented on GitHub (Oct 26, 2026):
Why do you think 64 gb is not enough? Overall size of IQ4_NL compared to my current IQ4_XS is only 5GB larger and with XS my system ram usage is only 45 out of 64.
@dandandelion commented on GitHub (Oct 26, 2026):
Yeps. As I mentioned, in llama.cpp, your pool is RAM + VRAM cause you can put physical expert layers in VRAM and that will take some load off your RAM. In Strata, it doesn’t work that way, putting more expert slots in VRAM doesn’t take load from RAM so all the tensors MUST fit the 64GB alone.
Examples if you don’t get it (I don’t blame you)
So let’s say the whole GGUF total size is 76GB: llama.cpp can put part of the 76GB tensors in VRAM (say you filled 20GB of VRAM with tensors), then your RAM will only have to hold 56GB (76 - 20).
Say still 76GB GGUF, allocate 20GB of expert slots in VRAM in strata, it will not take away from the 76GB cause what strata does is caching, not moving the experts physically, so RAM HAS to hold all 76GB tensor which is impossible SO you resort to third tier which is SSD which will make it crawl as your SSD speed is now your bottleneck
Does that make sense?
TLDR: Say your specs is 24GB VRAM, 64GB RAM. In llama.cpp, your pool is 88GB, but in strata, your pool is 64GB
But I guess I’m outside the topic. What you want is IQ4_NL support so I guess it’s still a very valid request
@tannisroot commented on GitHub (Oct 26, 2026):
But a significant part of the size of the overall model is just the PLE ngram that with Strata is not loaded into ram and instead (in most cases) streamed directly from the SSD. So the effective size of the experts living in RAM is much smaller than the overall gguf collection size. If this wasn't the case, I wouldn't be able to run IQ4_XS which is 83GBs with relatively good prefill and decode speed on my hardware, it would be extremely slow due to ssd offloading (and if I use the XL quant this is pretty much what happens).
Hence why I advocate for the ability to choose IQ4_NL not just for people with better hardware but for those with 24+64 configuration as well, as from my guesstimate it should just barely fit.
@dandandelion commented on GitHub (Oct 27, 2026):
Are you running it in llama.cpp? I’m not against IQ4_XS or NL support, the more options the merrier but you should manage your expectations here.
Your guestimate is as good as mine but IQ3_S (~3.5bpw) tensor alone without accounting for the PLE table is already around ~55GBs, what of the IQ4_XS or IQ4_NL? This is why I’m pushing back on this cause on a 64GB box, the IQ3_S is almost already on the thrashing and paging level (unless your idle usage is wayyy less than like 2GBs). I did also fit Unsloth’s IQ4_XS on my 16+64 (80GB pool) but as I already mentioned, llama.cpp uses fundamentally different techniques.
Just looked it up, bartowski’s IQ4_XS and NL is 97.7GB and 100GB respectively. Say the PLE table is IQ4_NL on both, that’s around ~30GB
So if we do the math:
~20GB free before OS)~7.7GBmmap)~18GB free before OS)~10GBmmap)The mmap-ed size also still depends on how much your OS is already eating from your 64GB so those fixed sizes are impossible since OS alone at the very minimum eats
~1-2GiB(heavily optimized and bareboned) so realistically, you're looking at~9GiB(minimum, bareboned OS) to~12GiB(normal, not-so-bloated OS) of mmaped tensors to SSD on IQ4_XS alone so you'd be heavily bottlenecked by SSD latency (or speed)@tannisroot commented on GitHub (Oct 27, 2026):
I'm currently using Strata to run Qwen Flash Next IQ4_XS from unsloth, I haven't managed to run it with llama.cpp at even remotely comparable speeds. Even if some kind of expert streaming from SSD is happening, which I doubt as it would be noticeable, this is something I can live with if performance doesn't degrade a whole lot.
Also, my OS (Arch Linux + KDE Plasma) at idle with all apps closed aside from Konsole sits at ~3GB, and that's still with stuff like docker and flatpak running in background (I didn't do anything to optimize memory usage).
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. 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.