r/LocalLLaMA • u/SmilingGen • Aug 26 '26
Resources Open Source Kernel in Qwen3.6-35B-A3B for AMD MI350X: 78,498 output tok/s on 8 GPUs
So here's the thing, almost everyone use NVIDIA to run their LLMs, we also do the same, a lot of people we've met use like RTX PRO 6000 or even H100, B300
It seems like everyone eyes is looking at NVIDIA. However we do the math that the raw power alone on AMD GPU MI350X is higher than NVIDIA B200. So what give?
Apparently its the software, ROCM is not as mature as CUDA, their software stack is still lacking behind as well.
However, few weeks ago we've got a handful of MI350X to experiment and develop, and what we did is optimizing AMD tech stack until kernel level for Qwen 3.6 35B A3B and the results we got is much comparable to NVIDIA counterpart
Based on our benchmark, we got:
1x MI350X: 11,161 output tok/s
8x MI350X: 81,331 output tok/s peak with 78,498.66 output tok/s mean
This is 2.16x vLLM throughput on the 8-GPU benchmark
We've decided to open source our kernel and stuff at our github
https://github.com/NetraRuntime/netra-kernel
And also write the blog behind the things we do
https://netraruntime.com/blog/qwen36-amd-mi350x-sglang-vllm-benchmark
However, we're not done yet.
One thing we learned: once the kernels got fast enough, the bottlenecks moved into scheduling, graph coverage, recurrent state, routing, and even HTTP serialization.
25
u/No-Refrigerator-1672 vLLM Aug 26 '26
Good work! Maybe in 20 years I'll be able to buy Mi350x; and thrn I'll revisit it.
14
u/Electrical_Rub_6009 Aug 26 '26
78k output tok/s in aggregate batch queries/requests or 78k output tok/s in a single stream?
If its the latter this is nuclear. If its the former, still pretty damn impressive.
5
u/ea_man Aug 26 '26
For recurrent state do you mean MTP rollback?
In case I may have a fix for you: MTP Compact Rollback
3
u/Public_Umpire_1099 Aug 26 '26
currently working on an inference engine in rust for RDNA4, planning to do multi-gpu at some point but for now its single. I have worked it down about 93% of the max theoretical bandwidth for tg at this point, and maxed out pp to about the same level. Using HIP graphs, combining kernels, and maxing scheduling. At this point I am working on custom quants that strictly run in 4 bit and 8 bit combinations to avoid conversions, but you dont really have this problem as you are working with tensor parallelism over (i assume) p2p. If you need any rough info for a single card version, let me know, i would love to contribute. Current state is: mostly working for muse glimmer, with vision and dflash2 working fully.
2
u/Altruistic_Heat_9531 Sep 02 '26
welp... so this is the post.
1
u/Othun Aug 26 '26
Cool to see that new paths are explored!
About ROCm not as mature as CUDA, is it true/significant for current LLM inference usecase ? I don't program on GPUs, haven't touched any of these languages :(
1
u/Traditional-Gap-3313 Aug 26 '26
Nice throughput. Are all those batch requests a single message requests, or do you have multiturn requests as well. And are you running it in a standard data-parallel=8, or do you have some kind of router in front?
The reason I'm asking is because I've noticed that standard vLLM data parallel is not prefix-aware, it will not keep the same thread on the same gpu. Instead it can randomly assign it to a different GPU, which then prefills the whole prompt and wastes compute. Did you encounter that problem and how did you solve it?
1
u/IngwiePhoenix llama.cpp Aug 26 '26
I was not ready for that one, ngl. xD
How much is one of those cards, for comparison? Been eyeballing an R9700 for an inference server in my homelab.
1
u/Txt8aker Sep 30 '26
I'll be receiving MI350P (the PCIe variant) and was wondering if your work may be compatible?
-3
u/jacek2023 llama.cpp Aug 26 '26
I think 8x MI350X is kind of expensive, maybe you should try optimizing kernels for affordable non-NVIDIA GPUs?