Thanks! Those are very good numbers, congratulations!
just a heads up, a lot of people like me (mostly old, lol) like information presented in a readable format, I tend not to watch videos at all, especially of this kind. A small table would have been enough... ;) since also the GitHub repo readme has no benchmarks.
the user there run some tests, and TAIL_SKIP=7 buys you some speed at quite a bit loss of intelligence in some tests. as you might know, QFN chooses 10 experts per layer, and under some conditions it can skip the latest 3 experts by importance (10 -7 =3) if they are not available in vram expert cache.
Of course the degradation is more visible in more difficult tasks, also sometimes you increase tok/s but wall time can counterintuitively increase, as maybe the model becomes unsure and thinks for longer etc. even if the task is brought to completion correctly anyway.
you are using "STRATA_ROUTE_TAIL_SKIP": "7",
which is proven to drammatically reduce quality in several tests
there might be other flags but i don't know all of them. another one for example is STRATA_ROUTE_PRIOR which i don't see here.
i have 2x 7900 xtx and 96gb vram, I get around 70 token/s decode average for most tasks. PP speed I didn't measure but around 1k I believe. I tried this because I found even UD_Q3_K_XL somewhat unreliable on long tasks. I can't fathom how people can trust Q2 models lol.
basically on most of my tests Q4KXL is effectively faster when measuring task completion because thinking traces are much shorter than lower quants, it second guesses much less, a lot more sure of itself, and output quality improvement is very noticeable.
In parallel i'm also testing EXL3 3bpw quant, and I found it around Q4KXL level (86Gb EXL3 vs 111Gb Q4KXL) EXL3 definitely an incredible quantization, shame it's taking me a lot of work to optimize around it.
technically it is possible, if you put one card in peer mode, the experts on that card stay fixed and it would be possible to not load them onto ram since they would be resident on the second card. i don't know if they have a flag to do this, or if this idea should be a PR on its own.
optimizations should hold even for 1 card, no idea on the speeds you'll get though. Also things move fast, i think I already found more stuff to squeeze between my ideas, PRs and other stuff.
Not going to bother reading all this, sorry, but I have made my own llama cpp version especially for 7900 Xtx and Qwen next. You can find it on my profile. Although it is made for two cards.
Essentially Moe expert cache tanks your PP, so much that I have decided against it. With my optimizations I have about 800/1000 tk/s pp and around 30/40 on decode with MTP, even with a huge Moe cache (22gb split on two cards) I gain about 10/15% TG for a massive drop in prompt processing close to your speeds (less than 100) it's simply not worth it.
that's a good way to make a Dense model slow down to a crawl. listen, I use Q8 and I am nerd enough to write my kernels. But i don't pretend to be religious about Q6 or Q8. I've done my tests and my research, latest Q4 UD quants from unsloth have literally better PPL and KLD of "6 months ago" Q5 quants. if you don't use full 262k context (and he won't) they are good enough to get work done.
if that's an heretic-abliteraded model, than its very possible the abliteration made it dumb for coding. if you need Q4_K_S try unslot's UD Q4_K_S you'll probably see a big difference on the model itself
other things I noted:
-your settings are not correct, qwen uses temp 1, top p 0.95, top k 20
-what quantization are you using? I'd use Unsloth UD Q4_K_XL, that will give a good quality model for this size.
-I'd quantize KV cache to Q8_0 to gain context.
Look for a GitHub repo called rdna boost, it has patches for llama cpp HIP rdna inference, you will improve your performance. Unfortunately I'm on mobile I don't have the link right now
Also you wrote that prefill on CUDA might be limited by bandwidth of the pcie, I don't think so, looking at your data it's limited by the system ram bandwidth, it's directly correlated with vram usage. More layers on vram = more prefill. You are NOT doing tensor split, it's a simple layer split, the pcie bandwidth doesn't matter very much
Thanks! Those are very good numbers, congratulations!
just a heads up, a lot of people like me (mostly old, lol) like information presented in a readable format, I tend not to watch videos at all, especially of this kind. A small table would have been enough... ;) since also the GitHub repo readme has no benchmarks.
Very cool idea. Do you have any benchmarks?
please, i get hurt when i see LLM responses, so i'll be brief:
HA! legend is a bit too much, thanks! I raccomend reading this older post here
https://www.reddit.com/r/LocalLLaMA/comments/1xhtbh5/i_tested_stratas_routing_optimizations_with_qwen/
the user there run some tests, and TAIL_SKIP=7 buys you some speed at quite a bit loss of intelligence in some tests. as you might know, QFN chooses 10 experts per layer, and under some conditions it can skip the latest 3 experts by importance (10 -7 =3) if they are not available in vram expert cache.
Of course the degradation is more visible in more difficult tasks, also sometimes you increase tok/s but wall time can counterintuitively increase, as maybe the model becomes unsure and thinks for longer etc. even if the task is brought to completion correctly anyway.
So personally, i keep that disabled!
you are using "STRATA_ROUTE_TAIL_SKIP": "7",
which is proven to drammatically reduce quality in several tests
there might be other flags but i don't know all of them. another one for example is STRATA_ROUTE_PRIOR which i don't see here.
oh ok. they are probably running FP8 then. not BF16 but still very high quality.
which quant are you using? Q4 and below will show this behavior. Q6 and above are miles different on this.
nice information thanks.
i have 2x 7900 xtx and 96gb vram, I get around 70 token/s decode average for most tasks. PP speed I didn't measure but around 1k I believe. I tried this because I found even UD_Q3_K_XL somewhat unreliable on long tasks. I can't fathom how people can trust Q2 models lol.
basically on most of my tests Q4KXL is effectively faster when measuring task completion because thinking traces are much shorter than lower quants, it second guesses much less, a lot more sure of itself, and output quality improvement is very noticeable.
In parallel i'm also testing EXL3 3bpw quant, and I found it around Q4KXL level (86Gb EXL3 vs 111Gb Q4KXL) EXL3 definitely an incredible quantization, shame it's taking me a lot of work to optimize around it.
yes it does, i run it, i think strata just checks the filename, the tensors inside the gguf are compatible.
technically it is possible, if you put one card in peer mode, the experts on that card stay fixed and it would be possible to not load them onto ram since they would be resident on the second card. i don't know if they have a flag to do this, or if this idea should be a PR on its own.
ban
you're welcome!
The code can be modified to work around it, without RCCL, you can still have P2P between cards.
my fork of llama cpp does exactly that
https://www.reddit.com/r/LocalLLaMA/comments/1waif2b/i_made_a_custom_llamacpp_build_optimized_for/
so it's possible to do it also on VLLM for sure.
there's my llama cpp fork made especially for gfx1100 and supports P2P even when one card is behind chipset. https://www.reddit.com/r/LocalLLaMA/comments/1waif2b/i_made_a_custom_llamacpp_build_optimized_for/
yeh here it is
https://github.com/nasone32/llama.cpp-RDNA3-7900xtx-opt
and here's some discussions
https://www.reddit.com/r/LocalLLaMA/comments/1waif2b/i_made_a_custom_llamacpp_build_optimized_for/
optimizations should hold even for 1 card, no idea on the speeds you'll get though. Also things move fast, i think I already found more stuff to squeeze between my ideas, PRs and other stuff.
Not going to bother reading all this, sorry, but I have made my own llama cpp version especially for 7900 Xtx and Qwen next. You can find it on my profile. Although it is made for two cards.
Essentially Moe expert cache tanks your PP, so much that I have decided against it. With my optimizations I have about 800/1000 tk/s pp and around 30/40 on decode with MTP, even with a huge Moe cache (22gb split on two cards) I gain about 10/15% TG for a massive drop in prompt processing close to your speeds (less than 100) it's simply not worth it.
that's a good way to make a Dense model slow down to a crawl. listen, I use Q8 and I am nerd enough to write my kernels. But i don't pretend to be religious about Q6 or Q8. I've done my tests and my research, latest Q4 UD quants from unsloth have literally better PPL and KLD of "6 months ago" Q5 quants. if you don't use full 262k context (and he won't) they are good enough to get work done.
I agree, but he's on a single 24gb card, there's not much to do.
if that's an heretic-abliteraded model, than its very possible the abliteration made it dumb for coding. if you need Q4_K_S try unslot's UD Q4_K_S you'll probably see a big difference on the model itself
with llama cpp you can offload the mmproj for image recognition on cpu. slower, but you save some vram, if you don't use it too often can be ok.
Look for a GitHub repo called rdna boost, it has patches for llama cpp HIP rdna inference, you will improve your performance. Unfortunately I'm on mobile I don't have the link right now
Also you wrote that prefill on CUDA might be limited by bandwidth of the pcie, I don't think so, looking at your data it's limited by the system ram bandwidth, it's directly correlated with vram usage. More layers on vram = more prefill. You are NOT doing tensor split, it's a simple layer split, the pcie bandwidth doesn't matter very much
My god I see all these posts where everybody looks happy, but that prompt processing speed is simply brutal for any real work