[Martin Woodward] provides a step-by-step tutorial on getting a functional coding AI model running on a Raspberry Pi 5 equipped with an official AI accelerator add-on. This setup involves no remote API calls; everything runs locally and completely offline. If you’ve seen the Raspberry Pi AI HAT+ 2 board but had difficulty grasping how to use it, this project is the missing link.
Under the hood is the GitHub Copilot command-line interface, running natively on the Raspberry Pi. Copilot supports local AI models instead of using paid APIs. By attaching the AI HAT+ 2 — a neural network accelerator — running the qwen2.5-coder:1.5b model at a reasonable pace becomes feasible.
The runtime for the accelerator board serves the model, LiteLLM provides a standard OpenAI-compatible API interface, and Copilot talks to that.
[Martin] provides the exact steps and configuration required to make the Pi boot headless and have everything up and running shortly after power-up. After that, all one needs to do is SSH into the Pi and run copilot in order to get the model started on a coding task.
Sure, qwen2.5-coder:1.5b is a very small model compared to the big offerings, but it’s entirely private and [Martin] claims it’s quite capable for its small size.
As of earlier this year, Microsoft technically advises using Copilot only for entertainment purposes, and while they probably did not have something like this in mind, it does seem to fit the bill.
18 thoughts on “Copilot Runs On Raspberry Pi, And This Time It’s Local”
Ya I mean what a freaking joke right? 1.5 pfft might as well be 1.jive
I mean I really wish I could jump off the deep end and dedicate my entire existence to the next fad like a good crypto bro or ai goomer… but care to elaborate more than a retard?
1.5B refers to the parameter count of the model. As a general rule, higher parameter count means greater capability but higher system requirements, especially VRAM. A lot of popular models people run on on their gaming PCs or home labs are in the 27-70B range, and even a several year old gaming laptop can handle 9B at a decent speed. General purpose models below 7-9B tend to be laughably bad.
This is the equivalent of talking about running modern games on a Ras Pi and your biggest, fanciest most extreme example being the Binding of Isaac.
To be fair, 1.5 is referenced in one key place in the article, and browsers have this thing called a search bar. Takes 2 sec to search for it.
For those not in the know, a 1.5b model is kinda a toy. Not super useful for coding work. Maybe for auto complete of a line? But it’s gona halicunate. Badly.
With some tweaking I get my Qwen3-30B-A3B-Instruct-2507.i1-Q4_K_M.gguf run with llama.cpp on ~5tok/s on a RPI5@16GB/NVMe
There are probably a lot better models you could run than the ancient Qwen 2.5.
Also, no performance numbers given….
I don’t see credit for the artist
This is a bit like doom running everywhere. It runs. Fine, but it’s not going to be useful for anything serious.
How long before someone adds a voice synthesiser and tries to put it inside a potato?
Actually, relatively old phone will run laps around this setup and might be a better fit for potato
I can barely get 7B Q6b models to behave, 1.5B? I’m not sure if that’s any use at all
The hardware accelerator though, that’s interesting to me. Very interesting. I barely play videogames anymore, I don’t need a whole GPU with ray tracing or whatever features, I just want a device that can run LLMs
Why the heck do you want to run *any* “A.I.” ?
If you gave it a serious try, you’d get it. If not, you won’t.
for 400 bucks you can get a lot better than that :D
Leave a Reply Cancel reply
Please be kind and respectful to help make the comments section excellent. (Comment Policy)
This site uses Akismet to reduce spam. Learn how your comment data is processed.
First Smartphone? Think Blue
Getting Started With Hobbyist-Level 3D Scanning Technologies
How Modern Smartphones Talk To Satellites
Serial: The Port That Won’t Die
The $50 Per Hour Search Engine
Hackaday Links: November 29, 2026
Hackaday Podcast Episode 396: Robot Hands, The Inner Life Of Mechanical Watches, And The Truth About 3D Scanning
This Week In Security: Federal Breaches, Leaky AI Routers, PhpAfterShell, Bluetooth Trailer Brakes
Ask Hackaday: Putting The C In CPU











