LLM on Raspberry Pi: GPU offload and cross compiling
Finally got some time to play with my Raspberry Pi again! In my earlier post "LlamaPi: Experiments with VideoCore GPU", I tried to run llama.cpp on Raspberry Pi's VideoCore GPU through Vulkan. That experiment was not very successful: Although he program could run, the data it generated was garbage and the generation speed is even slower than CPU. Recently I looked into this experiment again and made some progress. I got llama.cpp to run with GPU offload on Raspberry Pi and generate correct data. Athough the generation speed with Raspberry Pi GPU was still slower than CPU, it demonstrated the technical feasibilty of GPU offloading on Raspberry Pi. Built the environment for cross compiling Vulkan program that runs on Raspberry Pi. Cross Compiling of RPi Vulkan program Motivation: Native compiling doesn't work The first challenge was compiling llama.cpp with Vulkan support for Raspberry Pi. ...