Skip to content
HardwareLab

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.

Granitepi 4 Nano
No photo in the source; GitHub repository card, served from HardwareLab.

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

PartSpec / notesNeededPrice
Raspberry Pi 5 8GB RAMRequired
Official USB-C power supply 5V 5ARequired
32GB+ microSD card U3 or A2-classRequired

Full build guide

Steps

Difficulty
Beginner
  1. Verify the OS is 64-bit with uname -m; the expected output is aarch64.
  2. Update system packages with sudo apt update && sudo apt full-upgrade -y.
  3. Install Ollama with curl -fsSL https://ollama.ai/install.sh | sh.
  4. Pull the Granite 4.0 model with ollama pull ibm/granite4:350m-h.
  5. 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

More Raspberry Pi builds

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.

Featured on HardwareLab

Markdown

[![Featured on HardwareLab](https://hardwarelab.dev/badge.svg)](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>