You can now generate up to 3 images per second on a Snapdragon phone’s NPU!
If your phone rocks a Hexagon NPU, like the Samsung Galaxy S25, this is for you.
Our latest optimization moves image generation from the GPU to the NPU, and the same Stable Diffusion 2.1 model now runs 9x faster on it: 10.3 seconds per image instead of 92.2.
The code is free and open source, in our forks of stable-diffusion.cpp and ggml.