FastFlowLM / Q4NX build for AMD XDNA 2 NPU (63.6 tok/s @ 2–4W on Strix Halo & Point) #372
julianmb
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi OpenBMB team & community,
We wanted to share an unofficial native port of openbmb/MiniCPM5-2B running entirely on the AMD XDNA 2 NPU (
/dev/accel/accel0) via AMD FastFlowLM.Performance on AMD Hardware (Ryzen AI Max+ 395 / Strix Halo & Strix Point)
How We Solved the GQA Firmware Incompatibility
MiniCPM5-2B uses 16 Query heads and 2 Key/Value heads ($16:2 = 8:1$ GQA ratio). AMD FastFlowLM's AIE firmware currently lacks a native $8:1$ kernel for $d_{head}=128$ :
_gen_mha_seq_d128_q2AIE kernel.libqwen3_npu.so) to dynamically dispatchintermediate_size == 6144.model.q4nx, making RMSNorm a transparent identity op.How to Run Locally
Thank you for releasing MiniCPM5-2B!
All reactions