Baraa Said العربية Send a message

Small models, real work: running AI on your own hardware

Language models small enough to run on a laptop, a phone or a Raspberry Pi are now good enough for real tasks. Running AI locally buys privacy, speed, low cost and answers that keep working offline. Here is what fits where, the tricks that make it work, and where small models still fall short.

A small circuit board with a glowing chip, next to a much larger cloud shape

Why run a model yourself

Most people meet AI through a chat window that sends every word to a data centre. That is often the right choice, but not always. A model on your own device gives you:

  • Privacy. The data never leaves the machine: medical notes, customer records, internal documents.
  • Speed. No network round trip, so short answers feel instant.
  • Cost. After the hardware, every extra answer is close to free.
  • Resilience. It keeps working when the Internet doesn't.

What fits where

  • Phones and laptops. Modern chips include an NPU, a unit built for neural networks. Models with one to a few billion parameters run comfortably.
  • Small edge boxes. A Raspberry Pi 5 runs a small model on its CPU at a few words per second: slow for chatting, fine for short answers.
  • A desktop GPU. Comfortable for models in the tens of billions of parameters.

The tricks that make it work

  1. Quantization. Store each weight in 4 bits instead of 16. The model becomes about four times smaller and faster, with a small loss in quality. A 4-billion-parameter model fits in roughly 3 GB.
  2. Mixture of experts. Only part of the model runs for each word, so a model can know more than its speed suggests. Small open families such as Gemma 4's edge models work this way.
  3. Distillation. A small model is trained to imitate a big one on the tasks you care about.
  4. Retrieval instead of memory. A small model can't remember the world, so don't ask it to. Give it the right passages from your own documents (RAG) and let it do the reading. This is where small models punch far above their size.

Where it gets real: RESCUE-Edge

My graduation project, RESCUE-Edge, is built for the moment the power and the Internet go down. Its command station is a battery-powered Raspberry Pi 5 with an offline assistant: hybrid retrieval over local documents, and a small language model running through llama.cpp, answering in Arabic or English. No cloud at all. In a disaster, "the API is unreachable" is not an acceptable answer.

Where small models still fall short

  • Long chains of reasoning and multi-step plans.
  • Broad world knowledge: they forget facts a large model knows.
  • Smaller languages: quality in Arabic drops faster than in English as models shrink, so test in the language you actually serve.

A pattern that works

Run a small model locally first, and route only the hard cases to a large model in the cloud. A cheap check (did retrieval find good passages? is the model confident?) decides when to escalate. Most requests never leave the device; the few that need more power still get it.

Small models won't replace frontier models. They make AI something you can own: on your hardware, with your data, working even when the network isn't.

Write to me.

Hiring for an AI or full-stack role, or need a system built? One message is enough. I reply within one business day.

Send a message