ERNIE-Image on Apple M2 (24 GB)
Can the Apple M2 (24 GB) run ERNIE-Image?
Barely: it runs very slowly (tight fit)
Very slow (tight fit). At Q4 GGUF it needs about 15.1 GB of 16.1 GB usable and takes about 8.8 min per image.
- Best precision
Q4 GGUF- Memory mode
- Everything on GPU
- Time per image
- 8.8 min
- Output
- 1024×1024, 50 steps
Best app to run it on the Apple M2 (24 GB)
On macOS
- Runs this model with built-in or popular custom nodes; GGUF files load with ComfyUI-GGUF.
Download ERNIE-Image
Recommended for the Apple M2 (24 GB): q4_gguf. Every other precision has its own download link in the table below.
Quantized files · GGUF for ComfyUI
Smaller GGUF versions for ComfyUI (with the ComfyUI-GGUF node). No sign-in needed; the model’s license still applies.
Download the q4_gguf (Q4_K_S) file (opens in a new tab)
huggingface.co/unsloth/ERNIE-Image-GGUF (opens in a new tab)
Original weights · Hugging Face
Full-precision files from Baidu, for fine-tuning, vLLM, Transformers, Diffusers or ComfyUI.
Official repo · GitHub
Reference code, inference scripts and docs from Baidu. The weights themselves download from Hugging Face.
github.com/baidu/ERNIE-Image (opens in a new tab)
git clone https://github.com/baidu/ERNIE-ImageHow 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 | 36.8 / 45 | |
|---|---|---|
| Memory fit | 23.0 / 25 | |
| Speed | 2.1 / 15 | |
| Memory use | 15.0 / 15 | |
| Match score | 76.9 / 100 |
Every precision on the Apple M2 (24 GB)
| Quant | Memory needed | Available | Speed | Memory mode | Runs | Quality | Download |
|---|---|---|---|---|---|---|---|
FP16 | 8.1 GB | 16.1 GB | 9.5 min | Sequential CPU offload | Very slowCPU offload | 88Excellent quality (A+) · 88 of 100: how capable the model is at FP16, whatever it runs on. Match score 65/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
FP8 | 10.6 GB | 16.1 GB | 6.9 min | Text encoder offloaded | Very slowencoder unloaded after use | 86Excellent quality (A+) · 86 of 100: how capable the model is at FP8, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Q8 GGUF | 11.2 GB | 16.1 GB | 8.8 min | Text encoder offloaded | Very slowencoder unloaded after use | 87Excellent quality (A+) · 87 of 100: how capable the model is at Q8 GGUF, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q4 GGUF | 15.1 GB | 16.1 GB | 8.8 min | Everything on GPU | Very slowtight fit | 81Great quality (A) · 81 of 100: how capable the model is at Q4 GGUF, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Other hardware that runs it
-
86Excellent quality (A+) · 86 of 100: how capable the model is at FP8, whatever it runs on. Match score 89/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4090
-
86Excellent quality (A+) · 86 of 100: how capable the model is at FP8, whatever it runs on. Match score 88/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 7900 XTX
-
86Excellent quality (A+) · 86 of 100: how capable the model is at FP8, whatever it runs on. Match score 88/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5090
-
86Excellent quality (A+) · 86 of 100: how capable the model is at FP8, whatever it runs on. Match score 86/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 3090
-
88Excellent quality (A+) · 88 of 100: how capable the model is at FP16, whatever it runs on. Match score 84/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA RTX PRO 6000 Blackwell
-
81Great quality (A) · 81 of 100: how capable the model is at Q4 GGUF, whatever it runs on. Match score 82/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 9070 XT
Quick answers
How much memory does ERNIE-Image need on the M2 24GB?
At Q4 GGUF it needs about 15.1 GB. The M2 24GB has 16.1 GB usable.
How long does ERNIE-Image take on the M2 24GB?
About 8.8 min per image at Q4 GGUF and default settings, an estimate scaled from a reference timing by this hardware’s compute speed.
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.