VeizikNVIDIA, Apple Silicon and edge builds are available now.Release notes →
Engineering · hardware · edge

Generative AI on a Raspberry Pi.

A generative image, video or language model usually assumes a GPU and gigabytes of memory. veizik runs the same models to completion on a Raspberry Pi — on the CPU alone — by carrying the weights in a sub-byte format, executing them with a compile-free native kernel path, and streaming them through a bounded working set. The figures are measured on the real boards.

How it runs on a Pi

A GPU’s job, done on four CPU cores.

What makes a generative model fit and finish on a board with no accelerator.

5.04 sa 512×512 image on a Raspberry Pi 5 CPU
512 MBa language model on a Pi Zero 2 W, within that much RAM
0 GPUCPU only — no accelerator required
  • The same engine, on the CPU. There is no separate “mobile” build. The engine executes the model natively on the board’s Arm cores, vectorised for NEON, with the whole pipeline — text encoder, the diffusion or language model, and the decoder — running on the CPU.
  • Sub-byte quantization. veizik’s own compact weight format carries the model in well under a byte per weight, so a model that would not fit in a few hundred megabytes does — and the smaller numbers are faster to move and multiply on a CPU, not just smaller to store.
  • No compile step at run time. The GPU-free kernel path is built ahead of time for the exact core, so the first token and the first image come back without waiting on a compiler on the device.
  • A bounded working set. The engine streams the model through a fixed amount of memory instead of holding all of it at once, which is what lets a 512 MB Raspberry Pi Zero 2 W finish a job it could not otherwise hold.
  • One binary, no framework. The same self-contained engine as everywhere else — no Python, no deep-learning framework, no numeric library — so the dependency list on a Pi is the engine and nothing else.
The format ladder

The best compact format for each stage, chosen per model.

veizik’s own measured on-device figures — one moat format per stage, selected automatically.

veizik does not carry a model at one fixed precision. For each model and each stage — prefill, decode, quality, memory — the engine selects the compact format that measures best on that board and injects it with no conversion step, so the ladder costs nothing at run time. The formats below (lut4, lut5, vzint5, vzint6, vzint7, static_u8) are veizik’s own sub-byte weight formats, not generic integer widths; each row is the one the engine chose for that stage.

Single-board — available now

DeviceModelStageFormatveizik measured
Raspberry Pi 5GPT-2 124Mdecodelut4119 tok/s
Raspberry Pi 5GPT-2 124Mquality (PPL80)lut431.6
Raspberry Pi 5GPT-2 124Mpeak memorylut4110 MiB
Raspberry Pi 5SmolLM2-135Mdecodelut5109.7 tok/s
Raspberry Pi 5SmolLM2-135Mprefill (512 tok)lut4747 tok/s
Raspberry Pi 5SmolLM2-360Mdecodevzint637.2 tok/s
Pi Zero 2 WSmolLM2-135Mdecodevzint517.7 tok/s

Measured on the live Raspberry Pi build (language and on-device vision are public today). Every figure is veizik’s own, taken on the board; the per---mode ladder and the sample renders are on the edge page.

Mobile — measured, deployment pending

DeviceModelStageFormatveizik measured
Exynos 9825GPT-2 124Mdecodelut4266.9 tok/s
Exynos 9825SmolLM2-135Mdecodelut4232.5 tok/s
Exynos 9825MobileNet V1 · classificationinferencestatic_u84.23 ms
Exynos 9825SSD-MobileNet V1 · detectioninferencestatic_u810.2 ms
Exynos 2600EfficientNet-B0 · classificationinferencevzint63.33 ms
Exynos 2600ConvNeXt-Tiny · classificationinferencevzint78.5 ms

On-device on the Galaxy phones (Exynos 2600 / 9825), language and a broad vision set — confirmed on the phones and awaiting deployment (not yet downloadable). Deployment pending The full coverage is on the models page.

See it

Measured on the boards, with the renders.

Every figure here is taken on a real Raspberry Pi; the numbers and the generated images and video are on the edge page.

The edge page carries the measured per-model figures (SDXS in about five seconds on a Pi 5 CPU, the full Stable Diffusion 1.5 in seconds with a few-step LCM, a language model on a 512 MB Zero 2 W) and the renders they produced; the gallery shows the output beside the datacenter and Apple Silicon work. The language and on-device vision models are available now — curl -fsSL https://veizik.com/rpi/install.sh | sh; image and video are in preview, released one at a time.

A lighthouse on a cliff at sunset under a dramatic sky, generated prompt-to-image entirely on a $15 Raspberry Pi Zero 2 W.
SDXS-512-DreamShaperRaspberry Pi Zero 2 W
A snow-capped mountain reflected in a calm lake at sunset, rendered by veizik on a Raspberry Pi 5.
SDXS-512-DreamShaperRaspberry Pi 5
A serene mountain lake at sunrise with mist and reflection, rendered by veizik on a Raspberry Pi 5 with Stable Diffusion 1.5 and a few-step LCM-LoRA.
Stable Diffusion 1.5 + LCM-LoRARaspberry Pi 5
A moody forest path in autumn fog with volumetric light, rendered by veizik on a Raspberry Pi 5 with Stable Diffusion 1.5 and a few-step LCM-LoRA.
Stable Diffusion 1.5 + LCM-LoRARaspberry Pi 5
A cozy Tokyo alley at night with neon reflections on wet pavement, rendered by veizik on a Raspberry Pi 5 with Stable Diffusion 1.5 and a few-step LCM-LoRA.
Stable Diffusion 1.5 + LCM-LoRARaspberry Pi 5
A watercolor-style Alpine mountain village, rendered by veizik on a Raspberry Pi 5 with Stable Diffusion 1.5 and a few-step LCM-LoRA.
Stable Diffusion 1.5 + LCM-LoRARaspberry Pi 5

Shown as what the engine draws on the named board — output, not a benchmark; no speed figure is attached to these images. Each was rendered by Veizik natively on the Raspberry Pi shown, from a published checkpoint, with no GPU in the loop.

Why it matters

The same engine, all the way down.

  • It runs where there is no GPU and no cloud. On-device from the checkpoint, so the data never leaves the board and there is no account, no network and no per-image cost.
  • It fits the hardware you have. From an 8 GB Raspberry Pi 5 down to a 512 MB Zero 2 W — the memory budget is a setting, not a wall.
  • Image, video and language, from one engine. The same binary that runs a datacenter GPU runs a Pi; only the model and the memory budget change.