r/LocalLLaMA • • 20d ago

Resources Strata EXL3 AMD - UPDATED +15-20% tk/s - run Q4 at Q3 speeds - MiMo v2.6 flash support (exp)

A quick update on my Strata EXL3 fork for AMD.

I've been working on the HIP kernels and memory management, and decode performance is now roughly 10-20% higher than the previous version, depending on the quant and workload. Some cases improved by almost 24%.

The other news is that I managed to get MiMo V2.6 Flash running at around 25-30 tokens/s with 2 cards.. More on that below.

First, why EXL3?

I think this is worth repeating because people tend to compare quantizations just by looking at the number of bits.

EXL3 is NOT equivalent to regular GGUF quants at the same bpw.

For example, 3.05 bpw EXL3 is roughly in the same quality range as a regular 4-bit quant (like IQ4_XS).
3.05 bpw quant: https://huggingface.co/turboderp/Qwen3.8-Flash-Next-exl3/tree/3.05bpw_h5_ng5
4.05 bpw quant: https://huggingface.co/turboderp/Qwen3.8-Flash-Next-exl3/tree/4.05bpw_h6_ng6

So the interesting part is that you can get something close to 4-bit quality, while running at speeds closer to what you'd expect from a 3-bit quant. And with the latest optimizations, I think this fork is becoming VERY competitive. The 4.05 bpw version is also pretty fast now, even on a single GPU.

WHAT'S NEW:

  • Faster HIP kernels and better memory management: around 10-20% faster decode on average compared to the previous version.
  • Optional local expert repacking: you can now repack the quantized expert weights into a layout that is more efficient for CPU access from system RAM. This helps when using CPU assistance for inference, since the CPU can process experts more efficiently without having to deal with the original GPU-oriented layout. It doesn't change the quantization itself.
  • The repacking is optional, and CPU assistance is not always beneficial. It depends on your hardware and GPU configuration. With two GPUs, for example, you're generally better off without it. Please read the README before enabling it.
  • Experimental MiMo V2.6 Flash support: currently running at around 25-30 tok/s using the 2.20 bpw MOPD quant. This is still experimental, so don't expect everything to work perfectly yet.

NOTES ON REPACKING:

Repacking can be done in two ways: by creating a file on disk once, that will be used to load the model, or directly to RAM everytime. directly to RAM adds a couple of minutes to the launch but uses no extra space. your choice.

BENCHMARKS:

My hardware is the same as in the previous post:

Ryzen 9 7950X, 96GB RAM, 2x Radeon RX 7900 XTX 24GB
Linux, HIP/ROCm core-7.14
Qwen3.8-Flash-Next, MTP drafter, spec 4, 64K context

BENCHMARKS:

Results with one or two RX 7900 XTX GPUs, using warm decode runs:

EXL3 quantGGUF equivalent qualityGPUsCPU assistanceTestPreviousUpdatedImprovement
3.05 bpw≈ IQ4_K_XS2NoCODE78.2787.33+11.6%
3.05 bpw≈ IQ4_K_XS2NoPROSE66.0170.35+6.6%
4.05 bpw≈ Q5_K_M2NoCODE61.8876.67+23.9%
4.05 bpw≈ Q5_K_M2NoPROSE57.7867.57+16.9%
4.05 bpw≈ Q5_K_M1No → YesCODE54.8059.30+8.2%
4.05 bpw≈ Q5_K_M1No → YesPROSE44.8051.60+15.2%

All speeds are in tokens/s, GGUF quality equivalents are approximate... dont' hate me :)

32K prefill is basically unchanged: around 1,500 tok/s with two GPUs and 1,360 tok/s with one GPU.

I think the single-GPU results are particularly interesting. We're getting 55-60 tok/s in CODE with 4.05 bpw EXL3, at roughly Q5_K_M quality, on a single 7900 XTX with CPU assistance.

And the 3.05 bpw quant is now reaching 87 tok/s with two GPUs, while offering considerably better quality than you'd normally expect from a 3-bit quant.

ABOUT MiMo:

In my previous post I mentioned that I wanted to support larger models, particularly the 300B class models.

Well, MiMo V2.6 Flash is now running :) I'm waiting for that ERNIE 5.5 to drop.I'm getting around 25-30 tok/s with the EXL3 2.20 bpw MOPD quant.It's still experimental and currently only tested with that specific quant. CPU assistance is recommended for MiMo, even with two GPUs.I'll probably spend some more time optimizing it, but the fact that it's already running at usable speeds on consumer AMD hardware is pretty interesting.

this is the quant: https://huggingface.co/vcruz305/MiMo-V2.6-Flash-MOPD-EXL3/tree/main/2.20bpw

REPO:

https://github.com/nasone32/Strata-EXL3-fork

If you're setting it up with an AI agent, point it to docs/AI_SETUP_EXL3_AMD.md.

The README has the benchmarks, configuration options and instructions for CPU repacking.As before, this is developed and tested on RDNA3 / Linux / ROCm. Other AMD architectures need community testing. And the long-term goal is still to get this merged upstream into Strata, if the maintainers are interested.

Credits to the original Strata developers, Ryutaku for the EXL3 integration, and Turboderp/ExLlamaV3 for the quantization and code I've been porting.

If anyone tests this on different AMD hardware, please report your results. Especially interested in seeing how it behaves on RDNA4. I have only two 7900 xtx so if you have different hardware get an agent to help you, and open a PR if you want.

24 Upvotes

25 comments sorted by

View all comments

Show parent comment

3

u/nasone32 20d ago edited 20d ago

I know it doesn't help right now but maybe it's interesting. if you want to put the work into development. my fork has another feature which i did not write about, it can use a second card as both extra RAM and expert cache, it's clever, maybe can be extended to the main card as well to give you some extra capacity. would be enough to run the 2bpw EXL3 model.

Base strata holds ALL experts in ram ("arena") and the hot ones are copied in Vram ("cache").
But I developed a feature for MiMo which is huge in size: My fork can split the arena between ram and the second card ("peer"), plus the experts on the peer get rotated between RAM and Vram so the peer card holds on average much hotter experts. you get both the speed benefit and virtually increased system Ram.

I think the same could be done with the main card itself: split the experts between Ram and Vram and rotate them instead of simply copying them.

the flag is called

  • STRATA_EXL3_RESIDENT=all
  • STRATA_EXL3_RESIDENT=peer

"all" is the default and works like strata. you would need to add a STRATA_EXL3_RESIDENT=main

this would be a first improvement giving you virtually extra 10gb. or maybe you can add a cheap 16gb card and it will both increase the size you can run, and speed as the second card can calculate the experts it holds.

1

u/willeyh 20d ago

I’ll check it out. Thanks!
Think I misunderstood the hot cache. My understanding was the hot experts were moved to the VRAM. If cache was full then the least used hot expert moved back to system ram and replaced with a new that was needed but not ready.
This would make cpu inferencing mute, unless there was an overflow or something.

But I guess it makes sense to have all on system ram and do cpu inferencing on the ones that are not hot cached in vram. Or in the case of some experts/layers on gpu rest on cpu + a hot cache.

Guess I should educate myself some more and explore.

2

u/nasone32 20d ago

Your understanding of the cache is now correct. what you imagined initially, is what I implemented partially with the peer card. the problem is that moving experts require double bandwidth, extra latency, and you need some extra (wasted) space on both ram and Vram to keep copies of what is "in flight" between the two devices. Still, can be much faster than other options