mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5031] [Engine] Qwen3.8 Flash-Next on two mixed NVIDIA cards (RTX 4090 24 GB + RTX 4080 16 GB)? #2329
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#2329
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 @FredrikYoung on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5031
I'm considering adding an RTX 4080 (16 GB) next to my RTX 4090 (24 GB), mainly to speed up Qwen3.8 Flash-Next.
Before buying a new case and riser, I'd like to know whether Strata can use both cards for this model.
or is it a layer split?
Setup: i9-13900KS, 128 GB DDR5 (4x32 GB), WD_BLACK SN850X NVMe, ASUS ROG Strix Z790-F, Ubuntu 26.04,
NVIDIA driver 595.x. RTX 4090 on PCIe 4.0 x16 (320 W cap); the 4080 would likely sit in a PCIe 4.0 x4
chipset slot (250 W cap). Strata: an older 0.1.x build (Oct 12); I plan to update to 0.2.9 first.
What I tried:
Read the release notes. I found multi-GPU runs for Qwen3.8 on AMD (4x R9700) and Intel (2x Arc Pro B65),
and for DeepSeek on 2x RTX A6000, but nothing for Flash-Next on NVIDIA or for mixed card sizes.
Current results:
Single RTX 4090, Unsloth UD-IQ4_XS, 64k context, MTP drafting, after calibration:
decode ~84 tok/s (short prompt), ~58 tok/s after a 22.4k-token prompt; prefill ~2,800 tok/s at 22.4k tokens.
Thanks!
@AdrinalinNS commented on GitHub (Nov 2, 2026):
@FredrikYoung
It is mandatory to run it via a script that launches the model through the Strata CLI.
This is my config. However, I’m using the model Maximilian228--Qwen3.8-Flash-Next-NVFP4-GPTQ-Strata, so you need to configure your model accordingly.
The main flag is "layer_split": "27" — this is for my RTX 5070 12 GB + RTX 5060 Ti 16 GB setup.
I tried layer_split values from 25 to 30 for my VRAM, but the maximum speed for my VRAM is at 27.
The main GPU is the RTX 5060 Ti 16 GB because prefill goes up from 2000 to 3000; however, if I had an RTX 5070 16 GB, it would be the main GPU.
If you need to explain each flag, write to me, and I’ll explain it.
my bench https://github.com/Niko1221/Strata/issues/4603
Config:
@AdrinalinNS commented on GitHub (Nov 2, 2026):
@FredrikYoung The fact that the PCIe 4.0 x4 system for the RTX 4080 is insufficient is a problem; the data transfer can peak at PCI‑E x8 5.0 across the entire channel (which is effectively the same as PCI‑E x16 4.0).
@AdrinalinNS commented on GitHub (Nov 2, 2026):
@FredrikYoung Deepseek flash isn’t working for me; the deepseek-v4.1-flash-IST-DAS-2.00bpw version causes looping in the agents. Next time, I’ll try deepseek-v4.1-flash-IST-DAS-2.25bpw. The speed isn’t impressive — after warm‑up, it’s 22 t/s, and preloading reaches a maximum of 350. Overall, at the moment, Qwen3.8‑flash is the best choice for two graphics cards.
@FredrikYoung commented on GitHub (Nov 3, 2026):
@AdrinalinNS Thank you so much for the detailed answer, the full config, and the link to your benchmark. That's exactly what I was hoping to find. The +27% from the second card and the hit-rate numbers make the layer split very clear, and the point about the x4 slot probably saved me from a wrong purchase.
My plan now is to get a case and a PCIe 4.0 riser first, put the 4080 in my current PCIe 4.0 x4 slot, and measure. I'll only buy a new x8/x8 motherboard if x4 turns out to be the bottleneck. Two questions before I do that, if you have time:
Since your NVFP4 pack is Blackwell-only, I'll stay on IQ4_XS (or try IQ3_S like in your #4603 benchmark). I'll update to 0.2.9 first and post my single-card and dual-card numbers here, so there's an Ada data point to compare with.
Thanks again, really appreciated!
@AdrinalinNS commented on GitHub (Nov 3, 2026):
@FredrikYoung Sometimes I see peaks of 55 GB/s on x8/x8 PCI‑E 5.0, but mostly the speed is around 16 GB/s on average. However, I don’t have the most powerful graphics cards, and for more powerful ones the transfer rate might be higher. You have more memory, so the transfer rate might, conversely, be lower.
It seems to me that the engine adjusts to the PCI‑E speed and tries not to overload the GPU. It’s better to read the documentation for more precise information; you can ask an agent to help figure it out.
Strata's multi-GPU layer split is designed to work on Linux systems, including Ubuntu.
I use NVFP4, its only for RTX 50xx series, sometime for extra t/s use IQ3_S, they both give normal work agent task.
@FredrikYoung commented on GitHub (Nov 3, 2026):
@AdrinalinNS Thanks a lot, that's really helpful! An average of ~16 GB/s across both cards is much lower than I expected, so testing the 4080 in my x4 slot first seems worth it before I buy a new board. Good to know the layer split works on Linux too. I'll read through the docs for the layer_split value and post my Ada numbers (single card vs. 4090 + 4080) here once the case and riser are in. Thanks again for taking the time!
@udqe commented on GitHub (Nov 3, 2026):
@FredrikYoung our rig is the adjacent-but-not-same case (2x RTX 4090, Windows, so no Linux answer from us - sorry, you'll want the Ubuntu crowd for the second half), but your bandwidth question is exactly what we measured with a BIOS switch, so here is a link-only A/B with nothing else changed. PCIe 3.0 x16 and PCIe 4.0 x8 are bandwidth twins (both ~15.75 GB/s raw), so our Gen3 rows read directly as "what your x8/x8 board would cost", and x4 is half that again.
Same engine, same config, same day, only the BIOS link gen changed (UD-Q4_K_XL, layer split 22, ~97% expert-cache hit rate):
Two small cautions from reading your thread: the config dump above is one Blackwell/NVFP4 box's tuning (spec 16, hardcoded probe values, a pinned split tuned for 12 + 16 GB) - it is a great template for the FILE format but almost none of those numbers port to Ada or to 24 + 16. For the split, don't start at 27: let the planner probe first (our 24+24 pair picked 21 / 22 / 23 on three different days at our quantization before we pinned 22), then pin the best measured value as a constant - and pin the cache too (
--expert-cache/--expert-cache-device1, see #4778) so later upgrades cannot silently move the model under your numbers.(ai-assisted; measurements: udqe rig, 2x RTX 4090 Windows, engine 0.1.5x-era, link A/B by BIOS cap, verbatim CSVs kept)
@AndrewDBN commented on GitHub (Nov 4, 2026):
I don't think there is any need to add an extra GPU to your workstation. With a little work on optimizing your current strata installation, you should be able to get 150 tok/s decode performance.
@FredrikYoung commented on GitHub (Nov 4, 2026):
@udqe Thank you, this is exactly the measurement I was hoping someone had! "Decode doesn't care, prefill scales with the link" makes the decision much clearer. I'll let the planner probe the split instead of starting at 27, then pin the best value and the expert cache as you suggest (thanks for the #4778 pointer). When the 4080 is in, I'll post single-card vs. dual-card numbers for both decode and prefill on the x4 slot, so there's a real x4 row next to your extrapolation.
@FredrikYoung commented on GitHub (Nov 4, 2026):
@AndrewDBN Thank you, that would be great news, since it would save me the hardware! I'm on Ubuntu with an older install (engine 0.1.43.1, I haven't updated yet), DDR5 running at 4200 MT/s, and the CPU capped at 50% for heat reasons. Which optimizations would you start with to get toward 150 tok/s on a single 4090? I'd be happy to test them and post before/after numbers here.
@AndrewDBN commented on GitHub (Nov 4, 2026):
@FredrikYoung
@FredrikYoung commented on GitHub (Nov 5, 2026):
@AndrewDBN Thank you, that's a clear plan! It turns out I'm already on 0.2.10 (I'd mixed up the engine build number with the release), so my October numbers will have to serve as the old baseline. I'll grab mtp-bench-3.py from #4877, start with a clean profile with no drafting, then compare MTP and DFlash2, and only after that start turning knobs one at a time. I'm also raising my RAM from 4200 to 5600 MT/s, so I'll benchmark before and after that too. I'll post the numbers here when I have them.
@FredrikYoung commented on GitHub (Nov 5, 2026):
@AndrewDBN @udqe Results as promised, single RTX 4090 (320 W cap), i9-13900KS (capped at 50%), 4×32 GB DDR5, Ubuntu, Strata v0.2.10 with the signed engine 0.1.56 (cuda13), 64K context, --tune skip, default batch. Tools: mtp-bench-3.py (#4877) and tools/strata_bench.py.
Flash-Next UD-IQ4_XS, 4200 MT/s RAM:
no MTP (prompt lookup only; --spec can't go below 2 on an IQ pack): 58.9 tok/s
MTP: 73.0 tok/s, 76% accept rate, 75% hit rate
DFlash2: 83.3 tok/s
MTP with --parallel 1: 81.5 tok/s. Most of DFlash2's lead comes from it forcing one request at a time (more VRAM for experts), not from the drafter itself.
RAM 4200 → 5400 MT/s (5600 failed stressapptest), MTP: 73.0 → 78.3 tok/s decode; 51 → 67 tok/s decode after a cold 22K prompt; 32K prefill 2,648 → 2,836 tok/s.
Coding is my main use, so I also tried the ISTA Coder (IQ1_M) with the same settings: 124 tok/s with MTP, 92% hit rate, and still 120 tok/s at 128K context.
Possible bug: strata launch --drafting off rewrote the installed strata-unsloth-ud-iq4_xs.json with "mtp": false and stripped --mtp. A later strata launch --drafting mtp, even with --mtp on, still started without the draft layer ("+0 MiB for the draft head") until I restored the backup config.
So I'm still a long way from 150 tok/s. I'll keep tinkering one setting at a time whenever I have time, starting with --parallel 1, and post anything that moves the numbers. I've also ordered the case and riser for the 4080, so I'll post single- vs dual-card numbers (including the x4 slot) once it's set up. Thanks again for all the pointers!
@AndrewDBN commented on GitHub (Nov 5, 2026):
@FredrikYoung
@FredrikYoung commented on GitHub (Nov 6, 2026):
@AndrewDBN Thanks! From the engine logs of the same runs:
Free VRAM after launch: 650–725 MiB with everything loaded (nvidia-smi shows ~23.4 of 24 GB used), so --expert-cache auto fills the card.
Experts in VRAM: Flash-Next UD-IQ4_XS has 24,576 expert slots. The cache holds 6,171 with --batch 3 (13.9 GiB), 7,005 with --parallel 1 (15.8 GiB) and 7,115 with DFlash2 (16.0 GiB), so roughly 25–29% resident. The prompt path also borrows 1,991 slots. With a quarter of the experts resident, I assume ~75% is close to what one 24 GB card allows at this quant? For comparison, the Coder (12,288 slots) keeps 7,586 resident (62%) and gets 92–96%.
DFlash2: I'll try its settings next. If you have a starting point that worked for you, I'd love to hear it.
0.2.11: I saw it came out right after my runs. I'll update and re-run the same benchmarks so the numbers stay comparable.
@AndrewDBN commented on GitHub (Nov 6, 2026):
@FredrikYoung
I am getting around 95% expert cache hit rate on a 12GB RTX 5070 with only 2918 experts loaded, see below:
@FredrikYoung commented on GitHub (Nov 6, 2026):
@AndrewDBN Thanks, that's a really useful data point! Re-run on Strata 0.2.11 (engine 0.1.57), DDR5-5400, same tools:
Flash-Next UD-IQ4_XS, MTP: 77.6 tok/s at the default batch 3, 89.0 with --parallel 1, DFlash2 89.7. Hit rate 75–79%. 32K prefill went up from 2,836 to 3,406 tok/s with 0.2.11.
ISTA Coder IQ1_M at 196K context with --parallel 1: 148.8 tok/s, 95.9% hit rate. I also ran it against Qwen3.8 27B on real coding tasks from my own projects (9 tasks × 2 rounds): same solve rate and about 24% faster overall, so it's becoming my main coding model.
The --drafting off → MTP bug I reported is fixed in 0.2.11.
One thing puzzles me: your GSQ-RCO IQ3_XXS has the same 48 × 512 experts as my UD-IQ4_XS, yet 2,918 slots give you 95%, while my ~7,000 slots give ~77%. Which expert profile and launch settings do you use? Mine still uses the expert profile from my October install and --tune skip, so a fresh calibration is my next step.
@AndrewDBN commented on GitHub (Nov 6, 2026):
@FredrikYoung
I always use the expert profile that comes with the latest version of the control program I am using. You can edit the qwen3.8-ud-iq4_xs.json file directly and just point to the latest expert profile in the control 1.57 folder.
Also try the new unsloth quants, I believe they provide better quality for the same memory footprint as their older quants.
Last but not least: try
--set STRATA_ROUTE_PRIOR=1.5@FredrikYoung commented on GitHub (Nov 6, 2026):
@AndrewDBN Thanks! My profiles turn out to be identical to the ones shipped with control 0.1.57, so no change there. I read up on STRATA_ROUTE_PRIOR: since it trades a bit of quality for speed and the docs advise against it for long agent runs, I'll keep it off for my coding agent (the Coder already sits at ~96.8% hit rate in real work), but I'll try it and the new Unsloth quants on Flash-Next for chat. Next step for me is the 4080, I'll post dual-card numbers once it's in.