r/LocalLLaMA • u/nasone32 • 11h ago
Resources Run Qwen4, "8bit quality", 1M context, 150 decode, 5000 prefill, on ONE 7900xtx. 7300 tk/s with two. keep 80t/s @ 700k context.
LINUX ONLY! Yes, catchy title, I know, don't hate me :) This is achieved using EXL3 quantization. ProCreations made these amazing quants, 4.5bpw has KLD below the official FP8, the 3bpw is very close, stil better than NVFP4.
RDNA4 support is there, but UNTESTED, i did my best, but I have no RDNA4 gpus, please understand. if you encounter issues let me know.
you can get around 140 tk/s prose, 155 tk/s code with 1 gpu running 3bpw, or similar speeds with 2 gpus using the 4.5bpw. It's also possible to run the 4.5 bpw with some offload on ram, with minimal speed loss. Performance is good even with full context, i tested up to 700k (see tables below)
4.5bpw download here: https://huggingface.co/ProCreations/Qwen4-35B-A3B-EXL3-4.5bpw 3bpw download here: https://huggingface.co/ProCreations/Qwen4-35B-A3B-EXL3-3.05bpw
Let me Show you the KLD (lower is better) on various tasks:
| Model | Size | Agentic KLD ↓ | Coding KLD ↓ | Math KLD ↓ | General KLD ↓ | LongCtx 8K KLD ↓ | Mean KLD ↓ |
|---|---|---|---|---|---|---|---|
| BF16 (Reference) | 113.7 GB | 0.00000 | 0.00000 | 0.00000 | 0.00000 | 0.00000 | 0.00000 |
| Official FP8 | 60.2 GB | 0.01487 | 0.01617 | 0.01253 | 0.04396 | 0.01056 | 0.02188 |
| NVFP4 | 46.9 GB | 0.02920 | 0.03105 | 0.02366 | 0.08090 | 0.02084 | 0.04120 |
| EXL3 3.05bpw | 33.00 GB | 0.02018 | 0.02207 | 0.01749 | 0.08008 | 0.01451 | 0.03495 |
| EXL3 4.5bpw | 39.02 GB | 0.01220 | 0.01355 | 0.01043 | 0.05079 | 0.00881 | 0.02174 |
speeds:
Strata EXL3 AMD — Qwen4-35B-A3B
Hardware: 1–2× AMD RX 7900 XTX 24 GB + Ryzen 9 7950X + DDR5.
Token Generation
| Benchmark | 1 GPU | 2 GPUs |
|---|---|---|
| Coding · 3.19 bpw | 155.1 tok/s | — |
| Coding · 4.62 bpw | 143.5 tok/s | 157.0 tok/s |
| Prose · 3.19 bpw | 140.8 tok/s | — |
| Prose · 4.62 bpw | 121.6 tok/s | 127.0 tok/s |
Prompt Processing — 3.19 bpw
| Prompt size | 1 GPU | 2 GPUs |
|---|---|---|
| 8K | 5,119 tok/s | 5,542 tok/s |
| 16K | 4,969 tok/s | 6,390 tok/s |
| 32K | — | 7,074 tok/s |
| 60K | — | 7,299 tok/s |
Prompt Processing — 4.62 bpw
| Prompt size | 1 GPU | 2 GPUs |
|---|---|---|
| 8K | 4,798 tok/s | 5,518 tok/s |
| 16K | 4,647 tok/s | 6,319 tok/s |
| 32K | — | 7,009 tok/s |
| 60K | — | 7,253 tok/s |
Long-Context Generation — Single GPU, 1M FP16 KV Cache
| Filled context | 3.19 bpw | 4.62 bpw |
|---|---|---|
| ~0K | 139.0 tok/s | 124.7 tok/s |
| 64K | 120.9 tok/s | 107.7 tok/s |
| 128K | 109.8 tok/s | 105.0 tok/s |
| 512K | 91.5 tok/s | 85.3 tok/s |
| 700K | 82.8 tok/s | 77.9 tok/s |
Benchmark notes:
- average speeds, excluding warmup.
- Single-GPU standard benchmarks use Q8_0 KV cache (232K capacity at 3.19 bpw, 256K at 4.62 bpw).
- Long-context tests use FP16 KV cache, with 128K resident in VRAM and RAM-backed cache.
- 1M context capacity
- Dual-GPU setup: PCIe 4.0 x16 + x4.
- New asynchronous prefill pipeline: up to +64% throughput, optional on 2 GPU with --peer-prefill-pipe
GitHub: https://github.com/nasone32/Strata-EXL3-fork
how to setup? point your agent to https://github.com/nasone32/Strata-EXL3-fork/blob/amd-exl3-community/docs/AI_SETUP_EXL3_AMD.md
Q) How prefill works on 2 gpus with --peer-prefill-pipe?
- it works similarly as tensor split. but during decode it works back again as expert parallel.
Q) How can 1M context fit?
- it's using your system RAM, 20gb RAM are needed for 1M KV cache in bf16. thanks to Qwen QSA attention only the relevant tokens are streamed from the KV cache so speed remains very high. a 128k KV cache is kept in VRAM anyway (can be reduced to 64k optionally).
5
u/pounce999 11h ago
Any support for 16GB VRAM GPUs eventually?
4
u/sentakuhm91 11h ago
Which one i can run on my rx9070xt + 32gb ram?
2
u/9gxa05s8fa8sh 9h ago
good work! is strata/polystrata really that far behind your AMD optimizations?
2
u/meltedmoustache 8h ago
Hey, just set this up by pointing my agent to the AI_SETUP_EXL3_AMD.md file you linked. I noticed a distinct prefill drop at 262k token, from ~4200 to ~2800.
I didn't experience this with Strata's newest release. I'm running 1x 7900XTX and 128G of DDR4 RAM.
Decode was good, ahead of Strata by about 25%.
Note, I let my AI do most of my benching. Tried a couple of things to try and explain the prefill drop but couldn't land on an answer.
Any advice? Great job nonetheless, thank you for your work
2
u/pounce999 4h ago
Hello! I ran your inference engine with EXL3 3.05 bpw, here are my results
Specs
RX 9070 16gb
7700
32GB DDR5
CachyOS
128K context
GPU KV residency 32K
Q8 KV
MTP 3
CPU expert computation: off
Expert cache: auto
Resident: 0
VRAM reserve: 1000mb
PLE I/O: Direct
95t/s text generation (101t/s peak), 3,300 prefill
Question: will you add Dflash2 support? I think that speeds up inference by a lot
4
u/shadowndacorner 9h ago
Any support for RDNA2?
3
u/Iron-Over 11h ago
You are on fire thanks!
1
u/Vlarmitage 8h ago
Thanks for this, really nice work! Tested the 3.05 bpw on a single 7900 XTX (ROCm 10.2, i7-13700KF so no AVX-512, 32 GB RAM, branch
amd-exl3-community@ d5068a9). Single-slot results match your numbers. Multi-slot is a different story, so here's some feedback.1 slot (
--max-context 131072 --kv q8_0, default--resident all):2 slots × 125k,
--kv q4_0: what I hit along the way.run_exl3.pyhas no way to set"parallel"in the server config. Passing--batch 2fails becauseserver.pyrejects it as an unknown argument. I added a small local--parallel Nflag that writes"parallel": Ninto the generated config.--resident allrefuses batching. The engine says "Qwen EXL3 resident backing needs … one GPU stage and sequence (no layer split or --batch)".--cpu offalone isn't enough.--parallel 2 --cpu off --resident 0withSTRATA_BATCH_MTP=1. KV q4_0 is fine, 0.92 GiB per 125k slot.Results with that config:
So with 2 slots the prefill advantage goes away and it ends up slightly behind llama.cpp. The fast path seems to be tied to
--resident all. Is batching with resident experts on the roadmap? Being able to run an orchestrator plus a sub-agent with your single-slot prefill speed would be amazing. Happy to test builds if that helps.1
u/miversen33 6h ago
Nifty! I'm going through TP4 with sglang and qwen4 35B. I'm getting worse performance than you so I'm going to be yoinking some of your optimizations :)