Llama Guard 4 12B on Apple M2 (24 GB)
Can the Apple M2 (24 GB) run Llama Guard 4 12B?
Barely: it runs very slowly
Very slow. At Q6_K it needs about 12.1 GB of 16.1 GB usable and makes one decision in about 3.7 s.
- Best quant
Q6_K- Time per decision
- 3.7 s
- Decisions per second
- 0.3/s
- Input assumed
- 512 tokens
- Returns
- Fixed labels
Best app to run it on the Apple M2 (24 GB)
On macOS
- A few lines of Python with Transformers or Sentence Transformers; easiest for scripts and notebooks.
Download Llama Guard 4 12B
Original weights · Hugging Face
Full-precision files from Meta, for fine-tuning, vLLM, Transformers.
huggingface.co/meta-llama/Llama-Guard-4-12B (opens in a new tab)
How 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.
| Precision | 29.4 / 45 | |
|---|---|---|
| Memory fit | 25.0 / 25 | |
| Speed | 2.5 / 15 | |
| Clarity | 12.0 / 15 | |
| Match score | 68.9 / 100 |
Every quantization on the Apple M2 (24 GB)
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q4_K_M | 9.6 GB | 16.1 GB | 3.4 s | Very slow | 62Good quality (B) · 62 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 67/100 (quality, fit, speed and memory use) sets the ranking. | All files (opens in a new tab) |
Q5_K_M | 10.8 GB | 16.1 GB | 3.6 s | Very slow | 64Good quality (B) · 64 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking. | All files (opens in a new tab) |
Q6_K | 12.1 GB | 16.1 GB | 3.7 s | Very slow | 65Good quality (B) · 65 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking. | All files (opens in a new tab) |
Q8_0 | 15.0 GB | 16.1 GB | 4.1 s | Very slowtight fit | 66Good quality (B) · 66 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking. | All files (opens in a new tab) |
F16 | 26.3 GB | 16.1 GB | — | Won't run | 66Good quality (B) · 66 of 100: how capable the model is at F16, whatever it runs on. Match score 8/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Times are for one request with a 512-token input and about 6 tokens written. Batching servers process many requests at once.
Other hardware that runs it
-
65Good quality (B) · 65 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA RTX PRO 6000 Blackwell
-
65Good quality (B) · 65 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5090
-
65Good quality (B) · 65 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 7900 XTX
-
65Good quality (B) · 65 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4090
-
65Good quality (B) · 65 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5080
-
65Good quality (B) · 65 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 75/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 9070 XT
Quick answers
How much memory does Llama Guard 4 12B need on the M2 24GB?
At Q6_K it needs about 12.1 GB. The M2 24GB has 16.1 GB usable.
How fast is Llama Guard 4 12B on the M2 24GB?
It makes one decision in about 3.7 s at Q6_K, an estimate from the hardware and the size of the model.
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.