GPU speed-up on Raspberry Pi 5
Author: flatsiedatsieCreated Jan 24, 2024Updated Jul 24, 2026
Labelsrequest to lend supportvulkan
I'm experimenting with Llamafile on a Raspberry Pi 5 with 8Gb of ram, in order to integrate it with existing privacy-protecting smart home voice control. This is working great so far as long as I very small models are used.
I was wondering: would it be possible to speed up inference on the Rasbperry Pi 5 by using the GPU?
Through this Stack Overflow post I've found some frameworks that already do this, such as:
- NCNN https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-linux
- BeatMUp https://github.com/lnstadrum/beatmup/
The Raspberry Pi 5's VideoCore GPU has vulkan drivers: https://www.phoronix.com/news/Mesa-RPi-5-VideoCore-7.1.x
Curious to your thoughts.
Related: https://github.com/Mozilla-Ocho/llamafile/issues/40
Source: mozilla-ai/llamafile