I got Qwen running on the XDNA1 NPU in my Ryzen 7 250 on Linux
I've been messing around with the XDNA1 NPU in my Ryzen 7 250 because having a 16 TOPS NPU sitting mostly unused under Linux was bothering me.
So I ended up building a small LLM inference runtime around it.
Right now I have Qwen2.5 0.5B running with AIE2 kernels on the NPU. The runtime currently has NPU paths for Q/K/V and output projections, RMSNorm, RoPE, attention, KV cache operations, residuals and SwiGLU/MLP projections.
The host still handles orchestration/tokenization, and the final Qwen LM head is currently on the CPU, so this isn't a “100% of the model runs on the NPU” claim.
What I was mainly interested in was getting an actual autoregressive decode loop working around XDNA1 rather than only testing individual kernels.
I also added streaming generation, a small model runtime, an OpenAI-compatible API, Open WebUI support and a separate Ollama/XDNA1 path.
Repo: https://github.com/c8dhjp4tyv-bit/hawkpoint-npu-llm
Performance isn't great yet. I'm currently getting around 3.65 tok/s streaming with Qwen2.5 0.5B, and there's still quite a bit to optimize.
Posted Sep 12, 2026, 9:35 PM UTC