No, they need to adept model to make them work with NPU. List of available model’s here: Models · FastFlowLM they also making tools to automate conversion of GGUF to NPU-compatible
For people that don’t want to build the Linux kernel, I’ve pushed a dkms package that should work with kernel 6.18+. Here is me testing the NPU in Lemonade
This is awesome stuff guys, thanks for sharing. For Ubuntu, AMD now have a PPA for the xdna2 DKMS package. There is some more info at FastFlowLM/docs/linux-getting-started.md at main · FastFlowLM/FastFlowLM · GitHub - that doc refers to a .deb package for fastflowlm which doesn’t exist yet but I’m sure it’s only a matter of time.
I was able to build FastFlowLM from source and after a small amount of fiddling around (had to make a symlink from my build directory to src/xclbins) now have gpt-oss-20b running at 18 tok/s via the NPU, even with my CPU in power-saving mode. Very cool.
Thank you. I had to install your amdxdna-dkms package to get it to work on CachyOS because Cachy’s firmware was newer than the driver’s version or something. PSA: Do not set amd_iommu=off as a kernel boot parameter if you want the NPU to work.
I think you can scratch off step 3 from the list too, this seems to work out of the box with the fastflowlm version packaged in stable Arch repos now: 0.9.35. I got it to work without -git package.
For reference I also didn’t use the linux-git kernel, I use the linux-mainline AUR package that is 7.0.0-rc4.
I just upgraded to Ubuntu 26.04 on my HX 370. All the drivers are preinstalled and the NPU just works after installing flm! Easiest way to get started is to install the lemonade server and flm. Instruction here. The instructions basically say:
also builds lemonade with die fastflowlm, ROCm and Vulkan backend
sadly the included xrt version seems to be incompatible with my hardware (AMD Ryzen AI 9 HX 370) or maybe its just not correctly presented to the userspace - might investigate this further
If anyone on arch (I’m on cachyos) is using flm with lemonade, lemonade integration is broken for the current pacman version of flm. You have to build the previous version v0.9.38 from source.
Steps:
# reiteration of fastflowlm deps (LLM on NPU support)
#sudo pacman -S xrt xrt-plugin-amdxdna
# update memlock settings and log out to let it take effect
#echo -e "* soft memlock unlimited\n* hard memlock unlimited\n" | sudo tee -a /etc/security/limits.conf
# remove broken:
sudo pacman -R fastflowlm
# build flm v0.9.38 from src instead
sudo pacman -S cmake ninja boost
cd ~
git clone --recursive https://github.com/FastFlowLM/FastFlowLM.git
git checkout v0.9.38
cd FastFlowLM/src
cmake --preset linux-default
cmake --build build
sudo cmake --install build
flm -v