r/ROCm • u/nasone32 • 14h ago
Strata EXL3 (AMD) major improvements! (+30-50% decode on QFN, +15% on HY4 dual gpu, +30/50% prefill, other stuff) (read inside, no AI slop!)
Preparing for Qwen 4, I have made BIG improvements to inference speed, quality of life and setup on both Qwen 3.8 Flash Next AND the newly supported HY4-Flash (220B), especially for 2-gpus!
- for 2 gpus, uses direct P2P between cards, even if one is on Pcie x4 behind Chipset.
- much optimized HIP kernels under the hood!
- Ability to use 4096 QSA indexer instead of default 2048 on Qwen. Linear attention spans more tokens, this can really improve the quality on long contexts! costs about 5% performance.
- faster bootup!
- no need to build separate pack files for CPU help, repacking now is done at bootup in RAM, fast, transparent and multithreaded.
- improved compatibility to other RDNA3/4 cards (untested!)
- added Q8_0 KV cache with Hadamard rotations for HY4 -> more Vram = more experts in cache = faster speed.
- added support for HY4-flash 3.5bpw. if you have 64Gb ram you can use 3.0bpw, if you have 96Gb you now can use the 3.5bpw, performance about the same. I know Qwen4 Flash will come out and made this obsolete :)
- simplified setup, now more robust, is capable of self-tuning to use all Vram available, just follow the instructions.
- added support for AVX2 cpu (older)
Coming next:
-pulling in some kernel optimizations from https://github.com/adelj88/rmtile
-Qwen 4 support. planning also to add 35B with tensor parallel on 2 gpus ;)
Benchmarked on RX 7900 XTX (24GB), Ryzen 9 7950X, 96GB DDR5, Linux.
Qwen Flash Next 4bpw (about Q5_K_M quality!)
| Speeds | 1 GPU | 2 GPUs |
|---|---|---|
| prefill 16k | ||
| decode CODE, MTP4 | 72 tk/s | 102 tk/s |
| decode PROSE, MTP4 | 63 tk/s | 89 tk/s |
Qwen Flash Next 3bpw (about IQ4_K_XS quality!)
| Speeds | 1 GPU | 2 GPUs |
|---|---|---|
| prefill 16k | 1990 tk/s | |
| decode CODE, MTP4 | 87 tk/s | 107 tk/s |
| decode PROSE, MTP4 | 78 tk/s | 96 tk/s |
HY4-Flash 220B (3bpw)
| Speeds | 1 GPU | 2 GPUs |
|---|---|---|
| prefill 16k | ~940 tk/s | ~1300 tk/s |
| decode CODE, DFly2 | 33 tk/s | 63 tk/s |
| decode PROSE, DFly2 | 29 tk/s | 40 tk/s |
how to setup? point your agent to
https://github.com/nasone32/Strata-EXL3-fork/blob/amd-exl3-community/docs/AI_SETUP_EXL3_AMD.md
If you like my repo please give github stars! :)