Gemma is Google’s “small” line: open weights from 1B to 27B with an emphasis on compactness and responsiveness. In 2026 its niche has sharpened: not a “model for everything,” but family and mobile scenarios — a voice assistant on a Raspberry Pi, local chat on a laptop, embedded classification. We cover sizes, measurements, and commands.
The lineup and its profiles
Small sizes (1B–4B). Device territory: ESP32 and Arduino can only handle text micro-models, while a Raspberry Pi 5 with 8 GB of RAM runs 2B–4B interactively. A typical assistant loop: Whisper recognizes speech → a small Gemma thinks → Piper speaks. All local, all on minimal hardware.
Middle (12B). Measurements on server-grade cards: Gemma3-12B in Q8 — about 37 tokens per second of generation. A balance of quality and modest requirements — the niche of laptops with a discrete card and of compact servers.
27B. Top of the line: in Q6 — 23 tok/s on a 32 GB card; in Q8 it does not fit entirely on 24 GB. Quality is at the level of the strong generalists of the previous generation: decent for private home analytics, weak for agentic code against modern code specialists.
Running it in three commands
ollama pull gemma3:12b
ollama run gemma3:12b "Translate and briefly explain: ..."
# on a Raspberry Pi — via llama.cpp with partial offload
llama-server -m gemma3-4b-it-Q4.gguf -ngl 10 -c 4096 --port 8080On mini-computers the key parameter is the number of layers on the GPU/CPU: -ngl 10 puts part of the model into modest video memory and the rest into RAM. Speed drops proportionally, but 2–4 tokens per second is enough for a voice assistant.
Where Gemma actually wins
- Full locality on modest hardware. No external requests — a voice assistant in the bedroom, a document analyzer in a closed network.
- Multimodality in a compact body. Some versions can see images: local photo descriptions for a home photo archive are a typical scenario on the 12B class.
- Predictable resource usage. The model does not grow in memory unexpectedly: weight sizes are known in advance, and hardware planning is simple.
Where it loses: agentic capabilities and code — a noticeable gap against Qwen/DeepSeek; long contexts — modest; the “taste” of the text — neutral. This is a tool for the periphery of the stack, not for its core.
Typical builds with Gemma
| Hardware | Version | Scenario |
|---|---|---|
| Raspberry Pi 5 (8 GB) | 2B–4B Q4 | Voice assistant (Whisper + Gemma + Piper) |
| Laptop with an 8 GB card | 4B–12B Q4 | Local chat, drafts |
| 24–32 GB card | 27B Q6 | Private home analytics |
| iPhone/Android | 1B–4B | Offline helper in your pocket |
The voice loop on a Pi has been assembled and verified by the community many times — it is the most popular “physical” scenario for small models: microphone → recognition → Gemma → speech synthesis, all on a board costing a few thousand rubles.
Memory and speed: reference points before you download
Before downloading it is useful to estimate two numbers: how much the weights will take and what to expect in speed on your hardware. The reference points are collected from the measurements above and from rough rules for estimating the size of dense models: in Q4 a billion parameters weighs about 0.6 GB, and in Q8 almost twice as much. Exact values depend on the format and the specific version, so treat the figures as planning estimates, not as a manufacturer’s promise.
| Version | Quantization | Weights approx. | Speed: guideline |
|---|---|---|---|
| 4B | Q4 | about 2.5 GB | 2–4 tok/s on a Raspberry Pi 5 |
| 12B | Q8 | about 13 GB | about 37 tok/s on a server card |
| 27B | Q6 | about 21 GB | 23 tok/s on a 32 GB card |
| 27B | Q8 | about 29 GB | does not fit entirely on 24 GB |
Always add headroom for context on top of the weights — from two to eight gigabytes depending on the tasks. The planning rule is simple: first you calculate memory, then you download the model — it is cheaper than discovering in the middle of setup that Q8 does not fit on the card. If the size is a tight fit, step down one quantization level: in home scenarios the quality difference is usually smaller than the difference between “it works” and “it does not fit.”
For mini-computers, add the number of layers on video memory to the calculation: the -ngl parameter determines how many weights move from the board to the card, and the remainder will live in RAM — the final speed of the voice assistant depends precisely on this balance. You wrote down two numbers, chose a quantization, ran the first command — hardware planning ends there.
Frequently asked questions
27B vs Qwen 27B — which one locally? For agents and code — Qwen, no contest; for calm home chat and document analytics, Gemma is more memory-efficient and more predictable. Both live in the same Ollama — keep both.
Why is the model “slow on the Pi”? Memory bandwidth: 2–4 tokens per second is the norm for 4B on an ARM board. Optimization: a smaller context, Q4 quantization, as many layers as possible in the available video memory.
Is there a free cloud Gemma? Yes: versions of the family are present in the Google AI Studio catalogs and in the free pools of aggregators — entry points in the directory. But the family’s niche is precisely locality; in the cloud the competitors are more interesting.
Can Gemma handle images? Some versions can: photo descriptions for a home archive on the 12B class work locally. There is no image generation — this is understanding, not drawing.
What to get for a laptop with an 8 GB card? The working range is 4B–12B in Q4: local chat and drafts run comfortably, while 12B in Q8 is already tight on such a card. Cross-check with the table above and leave headroom for context so the chat does not start lagging on long dialogues.
Is a discrete card necessary for Gemma? Not necessarily: 2B–4B live on a Raspberry Pi 5 with 8 GB of RAM, and partial layer offload lets you use even modest video memory. Speed drops because of this, but two to four tokens per second is enough for a voice assistant.
How much memory to prepare for 27B? Aim for a 32 GB class card: in Q6 the line delivers decent speed for private analytics, while Q8 no longer fits entirely on 24 GB. Plus headroom for context — without it, long dialogues get cut off.
Can Gemma handle programming? Simple scripts and explaining someone else’s code — yes, but the gap against modern code specialists is noticeable: 27B is weak for agentic code. For development it is wiser to keep a separate specialized model and leave Gemma to peripheral scenarios.
Bottom line: Gemma is the best “peripheral” line of 2026: where full locality on modest hardware is needed — assistants, home automation, pocket helpers — it fills the niche without competitors. Figures are as of autumn 2026.
