Stable Diffusion XL 1.0 on Raspberry Pi 4 (8 GB)
Can the Raspberry Pi 4 (8 GB) run Stable Diffusion XL 1.0?
Barely: it runs very slowly (tight fit)
Very slow (tight fit). At FP8 it needs about 5.6 GB of 6.4 GB usable, with an estimated speed of 16.6 min.
- Best precision
FP8- Memory mode
- Everything on GPU
- Time per image
- 16.6 min
- Output
- 1024×1024, 30 steps
Best app to run it on the Raspberry Pi 4 (8 GB)
On Linux on ARM boards
- Runs this model with built-in or popular custom nodes; GGUF files load with ComfyUI-GGUF.
Download Stable Diffusion XL 1.0
Original weights · Hugging Face
Full-precision files from Stability AI, for fine-tuning, vLLM, Transformers, Diffusers or ComfyUI.
huggingface.co/stabilityai/stable-diffusion-xl-base-1.0 (opens in a new tab)
Official repo · GitHub
Reference code, inference scripts and docs from Stability AI. The weights themselves download from Hugging Face.
github.com/Stability-AI/generative-models (opens in a new tab)
git clone https://github.com/Stability-AI/generative-modelsHow it’s rated
Match score
To order lists, each result also gets a match score out of 100 from four parts. It favors the most capable model that still runs well.
| Model quality | 24.3 / 45 | |
|---|---|---|
| Memory fit | 23.0 / 25 | |
| Speed | 1.5 / 15 | |
| Memory use | 15.0 / 15 | |
| Match score | 63.8 / 100 |
Every precision on the Raspberry Pi 4 (8 GB)
| Quant | Memory needed | Available | Speed | Memory mode | Runs | Quality | Download |
|---|---|---|---|---|---|---|---|
FP16 | 3.8 GB | 6.4 GB | 24.0 min | Sequential CPU offload | Very slowCPU offload | 55Good quality (B) · 55 of 100: how capable the model is at FP16, whatever it runs on. Match score 51/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
FP8 | 5.6 GB | 6.4 GB | 16.6 min | Everything on GPU | Very slowtight fit | 53Fair quality (C) · 53 of 100: how capable the model is at FP8, whatever it runs on. Match score 63/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Other hardware that runs it
-
55Good quality (B) · 55 of 100: how capable the model is at FP16, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4070 SUPER
-
55Good quality (B) · 55 of 100: how capable the model is at FP16, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 9070 XT
-
55Good quality (B) · 55 of 100: how capable the model is at FP16, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4070 Ti SUPER
-
55Good quality (B) · 55 of 100: how capable the model is at FP16, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4080 SUPER
-
55Good quality (B) · 55 of 100: how capable the model is at FP16, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5070 Ti
-
55Good quality (B) · 55 of 100: how capable the model is at FP16, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5080
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.