Granitepi 4 Nano
A beginner-friendly guide and setup script for running IBM's Granite 4.0 350M model entirely on a Raspberry Pi 5 with Ollama: private, offline and free.
- Hardware:
- Raspberry Pi 5
- Difficulty:
- Beginner
- Creator:
- Jewelzufo
Run IBM Granite 4.0 locally on a Pi 5.

By Jewelzufo
- Posted
What it does
A beginner-friendly guide and setup script for running IBM's Granite 4.0 350M model entirely on a Raspberry Pi 5 with Ollama: private, offline and free.
What you need
- Runs offline
- Yes, per the source
- Difficulty
- Beginner
- License
- No license stated
Parts
- Raspberry Pi 5 (8GB RAM)
- Official USB-C power supply (5V 5A)
- 32GB+ microSD card (U3 or A2-class)
- AI model or service
- IBM Granite 4.0 via Ollama
Prices, notes and sources: Parts and requirements
Parts and requirements
| Part | Spec / notes | Needed | Price |
|---|---|---|---|
| Raspberry Pi 5 | 8GB RAM | Required | |
| Official USB-C power supply | 5V 5A | Required | |
| 32GB+ microSD card | U3 or A2-class | Required |
Steps
- Difficulty
- Beginner
- Verify the OS is 64-bit with
uname -m; the expected output isaarch64. - Update system packages with
sudo apt update && sudo apt full-upgrade -y. - Install Ollama with
curl -fsSL https://ollama.ai/install.sh | sh. - Pull the Granite 4.0 model with
ollama pull ibm/granite4:350m-h. - Run a first query with
ollama run ibm/granite4:350m-h "Explain quantum computing in 3 sentences".
Full instructions: View original
How it works
A one-click script installs Ollama and a GGUF-quantised build of the 350M-parameter hybrid Mamba-2 model, with thread settings tuned for the Pi 5 CPU. The download is about 366 MB and it uses about 0.8–1.2 GB of RAM while running. Everything works offline after setup.
Limits and caveats
- Raspberry Pi OS 64-bit (Bookworm or later); 32-bit will not work.
- 8GB RAM is recommended; 4GB is the minimum supported with warnings.
- At least 5GB free storage is required.
Like this build? Get the weekly builds
Every Thursday: the 5 best gadget hacks you can copy. Free.
Built something? Submit a build
Hardware
- Raspberry Pi 5
This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.
Featured? Add this badge
Built this? Paste the badge into your README. It links back to this page.
Markdown
[](https://hardwarelab.dev/projects/granitepi-4-nano/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)HTML
<a href="https://hardwarelab.dev/projects/granitepi-4-nano/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>Related builds
All 23 in Local LLM Rigs & Edge Agents
Muse Gadgets SDK
Meta’s open SDKs for connecting Muse to ESP32 and Raspberry Pi gadgets.
- ESP32 boards
- Raspberry Pi (3B+, 4, 5 or Zero 2 W) or another Linux computer with Bluetooth LE
Intermediate2.7K
OpenClaw on Pi 5 + Hailo-10H
A 24/7 agent on the Raspberry Pi GenAI kit.
- Raspberry Pi 5 8GB
- Hailo-10H
Intermediate15
OpenClawGotchi
An AI Tamagotchi with an e-ink face on a Raspberry Pi.
- Raspberry Pi
- e-ink display
Intermediate
Trusty
A Pi 5 voice assistant whose conversations never leave the room.
- Raspberry Pi 5
- mic
- speaker
Intermediate13
shelldon
A tiny e-ink AI creature that writes its own tools.
- Raspberry Pi Zero 2W
- Waveshare V4 e-ink
- PiSugar2 battery HAT
Intermediate4
ForestHub edge-agents
A 30 MB offline agent runtime with GPIO, UART and MQTT tools.
- Raspberry Pi
- Jetson
Advanced109
Sources
- github.com/Jewelzufo/granitepi-4-nano/blob/ff9feebebac632de5b20a360679127d969161f7c/docs/TUTORIAL.md#L51-L51
- github.com/Jewelzufo/granitepi-4-nano/blob/ff9feebebac632de5b20a360679127d969161f7c/README.md#L87-L87
- github.com/Jewelzufo/granitepi-4-nano/blob/ff9feebebac632de5b20a360679127d969161f7c/docs/TUTORIAL.md#L53-L53
- github.com/Jewelzufo/granitepi-4-nano/blob/ff9feebebac632de5b20a360679127d969161f7c/docs/TUTORIAL.md
- github.com/Jewelzufo/granitepi-4-nano/blob/ff9feebebac632de5b20a360679127d969161f7c/docs/TUTORIAL.md#L59-L59
- github.com/Jewelzufo/granitepi-4-nano/blob/ff9feebebac632de5b20a360679127d969161f7c/README.md#L82-L82
- github.com/Jewelzufo/granitepi-4-nano/blob/ff9feebebac632de5b20a360679127d969161f7c/README.md#L83-L83