PCIe bifurcation adapter needs to be supported by your motherboard, the adapter itself does nothing just splits the port electrically. You probably also need to invest in some pcie risers. and with each addition you weaken the signal so chance of instability or speed dropping to pcie 3.0 rieses. Its still better than your 2nd port cause at least it doesn't have to go trough the chipset.
factoring in all those costs, its might be cheaper to buy an older motherboard that natively have 8x 8x support like most high end intel z590 motherboards with 11th gen cpu, they rather cheap second hand. and even have AVX support which is nice for AI use.
the downside is pcie 5.0 boards are ddr5. However, it is still the single most cost effective way to build 4 gpu system. Cause any other route involves old xeon / threadripper / epyc motherboards for an eye watering amount of money.
that being said, its up to your use case, tensor parallel is more of a penalty reduction not a solution. It also requires same free vram on each card, so vision, dflash, mtp eats 4x as much vram. with 4 cards. And with direction we are moving: gpu used as a cache for experts and weights stored in ram, pcie speed becomes even more important than simple layer splitting times.
i mean, 48gb vram is kinda easiest to reach with decen't pcie speed without resorting to workstation / server motherboards so it shouldn't be that unpopular.
I've changed it to code block it have a scrollbar now. Anyway, its two different PC, same gpu. but not really 1:1 ddr5 to ddr4 comparison. Compute power is also different but I'm pretty sure main bottleneck is ddr speed and not cpu compute.
I also wonder how would that scale. on a 120b moe (cant fit that to ddr5 config) since a 26b a4b is a small model and difference is already noticeable: 40.67 -> 24.88 t/s TG
What kind of software do you plan to run for large moe offload? Strata is only fast cause its focused on few models. But other than that, large moe offload is super slow in more general engines. I've spent some time trying to find a general well optimized inference engine for moe offload but no luck so far.
same, I've switched from 32gb 7000 mhz ddr5 (main pc) to 64gb 3600 mhz ddr4 (dedicated server), and same models I've used to offload to ram suffered -18 to -20 t/s. mind you, it was a lot smaller models: qwen 35b gemma4 26b. Even dense models where only a few layers were offloaded to ram were a lot slower.
honestly its good to see build from gaming gpus. The amount of hate my weird dual 4080 setup got (which are borrowed cards, so can't sell them) was kind of discouraging. Did you went straight with 4 gpu or do you have experience with 3? Cause I kind wanna squeeze a 3rd card into my build, before gpus get even more expensive, but info about 3gpu setups are..scares.
I assume you use strata / basalt on this? do you have experience with other engines? (I've tried Beellama, exlllamav3, ik_llama) I'm kind of on a mission to find a more general engine with good expert caching / streaming cause wanna experiment with less popular large moe models (kolibri, nemotron, glm 4.5)
Interesting, cause I've asked my local model to shut down the server its running on, and it told me it doesn't have root privileges, and besides wouldn't feel comfortable pulling the plug on itself. that was..unexpected.
-sm row tends to crash for some reason, but tensor split works. tho uses bit more vram.
-ctk q8_0 -ctv q8_0 are on, I went trough all the launch flags with qwen (3.8 max, not 27b) to squeeze out as much context as possible. 24k is with q8 kv, at q6. had offload vision even drop mtp (tho mtp still crashes with gemma4) I've even experimented with bee lama and vllm.
qwen 27b survives on q4 but gemma4 becomes noticeable worse under q6. (Which is why I'm very skeptical about flash next and its q3 / q2 quants)
3090 is more expensive here than than 4080, getting a 3rd 4080 is cheaper, but that would be on my own money and I do agree on 4080 being a poor choice for inference. 7900 xtx seems like a more realistic target for now, until they go up in price too.
was hoping that 32gb is enough, for like 6-8 months, and see how second hand gpu market changes and gather some funds, but 24k context on gemma4 is rough even for chatting only. my next best idea is to try to find a way to have sliding context window but llama doesn't seems to support it with gemma4
I mean, sure, but when i have random questions in a field I'm not familiar with, I ask my local gemma4 30b, than qwen 27b, and after some research on my own to verify, qwen 3.8 max gets it right...
I think that's just stock gemma4. In all honesty style tunes just make the model choose more interesting wording, but not going to add deeper understanding or better overall logic (and usually to the expense of tool calls, prompt adherence and coding).
But for prose, parameter count is going to win over any finetune so if you looking for better than stock gemma4 30b, needs to move to 100-350b moe models and above.
can loop on tool calls, might be sampler issue, but weird for a qwen model. (q6_k) Its medium uncensored, you need to dance around topics. Needs a roundtrip with heretic.
does comes with MTP, acceptance rate is around 0.48 which is kind of high for a creative model(for comparison my personal favorite: gemma4 meromero is around 0.28)
stays very conversational unless you ask it to write a longer format. Feels more of a chat finetune, doesn't care much for RP consistency (historical character immediately understand modern tech..etc)
Qwen models are incredibly dry, compared to even base gemma, There is a reason why 90% creative finetunes are gemma4. So, for a stock qwen, not bad, but there are better gemma4 creative writers out there.
I wouldn't at all be surprised if this could be improved.
Few things I would suggest:
--cache-type-k q4_0 \
--cache-type-v q4_0 \
try using Q8 instead, Q4 absolutely destroys generation speed.
--reasoning-budget 512 \
this makes llama cpp cut off reasoning at exactly 512 tokens dont care if model is done thinking or not, which usually makes the result worst. If you want qwen to think less try setting it from chat template:
In my personal tastings you can drop this, it doesn't made qwen smarter and dropping it frees up some context.
--tensor-split 1,1
This doesn't do much, since you are using 2 identical gpu's and llama splits layers evenly anyway. However I highly recommend trying, tensor split, cause it will make your gpu's work parallel instead of waiting for each other:
-split-mode tensor
--batch-size 4096
--ubatch-size 1024
Its worth testing in llama bench, but usually double batch size brings better results, try 2048 instead.
--ctx-size 131072
managing long context is taxing even if it aren't filled, try dropping this to 100k or 92k, for some speed improvement and keep a separate config that maximize context window if needed.
--cache-prompt
this is enabled by default.
--cache-ram 16384
--cache-reuse 512
this only helps slightly if you frequently switch between chats and have long system prompt / tool definitions that needs to be cached otherwise doesn't add much, but also don't hurt.
--image-min-tokens 1024
this is probably set in model's deafult but still wont hurt to add since its what qwen 3.8 expects.
I'm about to pull the trigger on two 7900xtx. and a bit unsure about it still. What backend do you use?
What quant / context size do you use with Qwen3.8 27b? what depth do you get the 48tokens/sec? What's your prefill speed? Do you have some numbers for other 30b class models (gemma4, muse glimmer)?
Sorry for the lot of questions its hard to find real world data on dual 7900 xtx setup.
I've been considering the 7900 XTX, a friend of mine selling his + trying to source another one second hand. But there is a lot of (outdated) and conflicting info about amd software support. Main use would be gemma4 31b at q8 pr q6 depends how much context fit into 48gb with llama cpp on linux.
yes, that is correct, tho instead of image2image I used a resize latent but basically the same. There is a fine line between adding detail during upscale, and halucinate the stuff that wasn't suppose to be there. Thats what I've been trying to eliminate as well as getting as close to original render quality as much as possible.
this is my best result using ultimate sd upscale, krea2 and real_ersgan_x4 https://i.imgur.com/UkrQHAk.jpeg Still, tons of lost texture, turned into more a anime for some reason, and you can see "ghost" of the girl in the front various places in the background.
and this is native 1440x1440 https://i.imgur.com/kXES9Il.png image of same prompt by kre2, but that can't extend to 1440x7152 natively cause then the composition completely breaks. However that's what I'm trying to achieve.
yes the difficult part is upscaling, sdxl can make decent image even at 2384x480. However from then guiding the upscale is not easy. masked regional promting, control net, all scales slightly differently than latent itself and misalignment got blown up on higher detail.
The reason I've went with sdxl is cause its easy to prompt, and tons of tools available along with really good fine tuned checkpoints. Krea2 does decent job with certain prompts even at full size (however i need an llm to write prompts for it) but attention clearly falls apart on more difficult prompts.
I'll try SeedVR + krea2 and see how it goes. Still think the best way would be to make 2384x480 than chop it up to square tiles somehow slide them and explain the model to keep the sides glued.
Thank you! I will give this workflow a shot. I've tried to use sdxl cuase prompting / control net made it easy to use for single ultrawide, thought stretching it more would work. but it just breaks it completely. I mean, not completely, when it works its actually good but the success rate is pretty low.
PCIe bifurcation adapter needs to be supported by your motherboard, the adapter itself does nothing just splits the port electrically. You probably also need to invest in some pcie risers. and with each addition you weaken the signal so chance of instability or speed dropping to pcie 3.0 rieses. Its still better than your 2nd port cause at least it doesn't have to go trough the chipset.
factoring in all those costs, its might be cheaper to buy an older motherboard that natively have 8x 8x support like most high end intel z590 motherboards with 11th gen cpu, they rather cheap second hand. and even have AVX support which is nice for AI use.
since the 5060 ti is pice 5.0 that opens up some current gen boards that allows 4x 4x 4x 4x split from a single pcie 16x slot, and its effectively the same speed as pcie 4.0 8x and you can expand to 4 gpu later. something like this: https://www.reddit.com/r/LocalLLM/comments/1qfctk3/quad_5060_ti_16gb_oculink_rig/
the downside is pcie 5.0 boards are ddr5. However, it is still the single most cost effective way to build 4 gpu system. Cause any other route involves old xeon / threadripper / epyc motherboards for an eye watering amount of money.
that being said, its up to your use case, tensor parallel is more of a penalty reduction not a solution. It also requires same free vram on each card, so vision, dflash, mtp eats 4x as much vram. with 4 cards. And with direction we are moving: gpu used as a cache for experts and weights stored in ram, pcie speed becomes even more important than simple layer splitting times.
i mean, 48gb vram is kinda easiest to reach with decen't pcie speed without resorting to workstation / server motherboards so it shouldn't be that unpopular.
I've changed it to code block it have a scrollbar now. Anyway, its two different PC, same gpu. but not really 1:1 ddr5 to ddr4 comparison. Compute power is also different but I'm pretty sure main bottleneck is ddr speed and not cpu compute.
I also wonder how would that scale. on a 120b moe (cant fit that to ddr5 config) since a 26b a4b is a small model and difference is already noticeable: 40.67 -> 24.88 t/s TG
fair enough, i was curios to see real numbers, so tested it:
windows, 14700k, ddr5 (7000 mhz CL34-42-42-96)
ddr5 moe layers offload:
ddr5 full cpu offload:
linux, 11700k, ddr4 (3200 CL16-18-18)
ddr4 moe layers offload:
ddr4 full cpu offload:
What kind of software do you plan to run for large moe offload? Strata is only fast cause its focused on few models. But other than that, large moe offload is super slow in more general engines. I've spent some time trying to find a general well optimized inference engine for moe offload but no luck so far.
same, I've switched from 32gb 7000 mhz ddr5 (main pc) to 64gb 3600 mhz ddr4 (dedicated server), and same models I've used to offload to ram suffered -18 to -20 t/s. mind you, it was a lot smaller models: qwen 35b gemma4 26b. Even dense models where only a few layers were offloaded to ram were a lot slower.
honestly its good to see build from gaming gpus. The amount of hate my weird dual 4080 setup got (which are borrowed cards, so can't sell them) was kind of discouraging. Did you went straight with 4 gpu or do you have experience with 3? Cause I kind wanna squeeze a 3rd card into my build, before gpus get even more expensive, but info about 3gpu setups are..scares.
I assume you use strata / basalt on this? do you have experience with other engines? (I've tried Beellama, exlllamav3, ik_llama) I'm kind of on a mission to find a more general engine with good expert caching / streaming cause wanna experiment with less popular large moe models (kolibri, nemotron, glm 4.5)
Interesting, cause I've asked my local model to shut down the server its running on, and it told me it doesn't have root privileges, and besides wouldn't feel comfortable pulling the plug on itself. that was..unexpected.
-sm row tends to crash for some reason, but tensor split works. tho uses bit more vram.
-ctk q8_0 -ctv q8_0 are on, I went trough all the launch flags with qwen (3.8 max, not 27b) to squeeze out as much context as possible. 24k is with q8 kv, at q6. had offload vision even drop mtp (tho mtp still crashes with gemma4) I've even experimented with bee lama and vllm.
qwen 27b survives on q4 but gemma4 becomes noticeable worse under q6. (Which is why I'm very skeptical about flash next and its q3 / q2 quants)
3090 is more expensive here than than 4080, getting a 3rd 4080 is cheaper, but that would be on my own money and I do agree on 4080 being a poor choice for inference. 7900 xtx seems like a more realistic target for now, until they go up in price too.
was hoping that 32gb is enough, for like 6-8 months, and see how second hand gpu market changes and gather some funds, but 24k context on gemma4 is rough even for chatting only. my next best idea is to try to find a way to have sliding context window but llama doesn't seems to support it with gemma4
I mean, sure, but when i have random questions in a field I'm not familiar with, I ask my local gemma4 30b, than qwen 27b, and after some research on my own to verify, qwen 3.8 max gets it right...
I think that's just stock gemma4. In all honesty style tunes just make the model choose more interesting wording, but not going to add deeper understanding or better overall logic (and usually to the expense of tool calls, prompt adherence and coding). But for prose, parameter count is going to win over any finetune so if you looking for better than stock gemma4 30b, needs to move to 100-350b moe models and above.
Instead of specific models, I'd rather recommend creators with consistently good models:
Both bluestart and MeroMero models are really good, I found bluestart more realistic / darker and Mero more upbeat: https://huggingface.co/zerofata
good generalist gemma4 finetunes: https://huggingface.co/Gryphe
Really interesting merges (Basically if you cant choose, and want a mix of all of the above): https://huggingface.co/Vortex5 this one specifically merges all major gemma4 finetunes: https://huggingface.co/Vortex5/Glimmering-Citrus-31B
On the older (and non gemma) side:
Equal level unhinged and creative, usually don't require system prompts: https://huggingface.co/collections/SicariusSicariiStuff/most-of-my-models-in-order
even older from roleplay to classic text adventure: (might require heavy sampling, especially repetition penalty) https://huggingface.co/PocketDoc
not the original guy but, first impressions:
can loop on tool calls, might be sampler issue, but weird for a qwen model. (q6_k) Its medium uncensored, you need to dance around topics. Needs a roundtrip with heretic.
does comes with MTP, acceptance rate is around 0.48 which is kind of high for a creative model(for comparison my personal favorite: gemma4 meromero is around 0.28)
stays very conversational unless you ask it to write a longer format. Feels more of a chat finetune, doesn't care much for RP consistency (historical character immediately understand modern tech..etc)
Qwen models are incredibly dry, compared to even base gemma, There is a reason why 90% creative finetunes are gemma4. So, for a stock qwen, not bad, but there are better gemma4 creative writers out there.
any recommended sampler settings, or just qwen defaults? what about reasoning levels?
Thanks for the info! its very helpful.
Few things I would suggest:
try using Q8 instead, Q4 absolutely destroys generation speed.
this makes llama cpp cut off reasoning at exactly 512 tokens dont care if model is done thinking or not, which usually makes the result worst. If you want qwen to think less try setting it from chat template:
In my personal tastings you can drop this, it doesn't made qwen smarter and dropping it frees up some context.
This doesn't do much, since you are using 2 identical gpu's and llama splits layers evenly anyway. However I highly recommend trying, tensor split, cause it will make your gpu's work parallel instead of waiting for each other:
Its worth testing in llama bench, but usually double batch size brings better results, try 2048 instead.
managing long context is taxing even if it aren't filled, try dropping this to 100k or 92k, for some speed improvement and keep a separate config that maximize context window if needed.
this is enabled by default.
this only helps slightly if you frequently switch between chats and have long system prompt / tool definitions that needs to be cached otherwise doesn't add much, but also don't hurt.
this is probably set in model's deafult but still wont hurt to add since its what qwen 3.8 expects.
I'm about to pull the trigger on two 7900xtx. and a bit unsure about it still. What backend do you use?
What quant / context size do you use with Qwen3.8 27b? what depth do you get the 48tokens/sec? What's your prefill speed? Do you have some numbers for other 30b class models (gemma4, muse glimmer)?
Sorry for the lot of questions its hard to find real world data on dual 7900 xtx setup.
I've been considering the 7900 XTX, a friend of mine selling his + trying to source another one second hand. But there is a lot of (outdated) and conflicting info about amd software support. Main use would be gemma4 31b at q8 pr q6 depends how much context fit into 48gb with llama cpp on linux.
My guess you are not using the checkpoint's own VAE.
I got decent prompts out of gpt-oss 20b (i know its ancient in AI standards) since its moe, if you use llama cpp you can load most of it to system ram for very low vram use: https://huggingface.co/bartowski/p-e-w_gpt-oss-20b-heretic-GGUF
I assume the one found here: https://huggingface.co/Comfy-Org/Krea-2/tree/main/loras
well, krea2 does give better results than sdxl, but upscale still far behind native size render. its just natively can't handle ultrawide resolution: here are my results https://en.reddit.com/r/comfyui/comments/1uiujdt/struggling_with_ultrawide_51_with_sdxl_looking/ouplx9o/
yes, that is correct, tho instead of image2image I used a resize latent but basically the same. There is a fine line between adding detail during upscale, and halucinate the stuff that wasn't suppose to be there. Thats what I've been trying to eliminate as well as getting as close to original render quality as much as possible.
this is the highest res i can get with krea2 that keeps the composition intact: https://i.imgur.com/AIlQSEL.png
this is my best result using ultimate sd upscale, krea2 and real_ersgan_x4 https://i.imgur.com/UkrQHAk.jpeg Still, tons of lost texture, turned into more a anime for some reason, and you can see "ghost" of the girl in the front various places in the background.
and this is native 1440x1440 https://i.imgur.com/kXES9Il.png image of same prompt by kre2, but that can't extend to 1440x7152 natively cause then the composition completely breaks. However that's what I'm trying to achieve.
yes the difficult part is upscaling, sdxl can make decent image even at 2384x480. However from then guiding the upscale is not easy. masked regional promting, control net, all scales slightly differently than latent itself and misalignment got blown up on higher detail.
The reason I've went with sdxl is cause its easy to prompt, and tons of tools available along with really good fine tuned checkpoints. Krea2 does decent job with certain prompts even at full size (however i need an llm to write prompts for it) but attention clearly falls apart on more difficult prompts.
I'll try SeedVR + krea2 and see how it goes. Still think the best way would be to make 2384x480 than chop it up to square tiles somehow slide them and explain the model to keep the sides glued.
I've tried Krea2 and its a lot better than anything else I've tried. really does handle the full size natively.
Thank you! I will give this workflow a shot. I've tried to use sdxl cuase prompting / control net made it easy to use for single ultrawide, thought stretching it more would work. but it just breaks it completely. I mean, not completely, when it works its actually good but the success rate is pretty low.