OpenModelsHQ

Llama-Guard-4-12B

MetaVisionDenseLlama 4 license

Llama-Guard-4-12B is an open-weight vision and language model from Meta with 12B parameters. At 4-bit it needs about 8.6 GB of memory, so the smallest current device that fits it is the Mac mini M6 (16GB).

Overview

Estimated memory at 4-bit
8.6GB

Includes room for an 8k context and runtime overhead. More context needs more memory.

Total parameters
12B
Dense
Context window
Unknown
Not in the model config
Cheapest API, blended / 1M
$0.144
₹14 · DeepInfra · 3:1 input to output
All Meta API prices

Key information

Lab
Meta
Released
23 Apr 2025
Parameters
12B
Type
Vision and language
Context
Unknown
HF downloads, 30 days
130,983
View all

Will it run on your hardware?

How we estimate
Memory needed vs devices
Llama-Guard-4-12B needs about 8.6 GB at 4-bit, 15.1 GB at 8-bit and 28.5 GB at 16-bit. At 4-bit it fits GeForce RTX 5060 Ti 16GB, GeForce RTX 5090, DGX Spark, Mac Studio M5 Ultra (256GB). Dashed lines are usable memory on each device; a model fits when its estimate stays within 90% of it. Log scale. 8k context.
Memory needed vs devices: data
Estimate or deviceMemory
Q48.6 GB
Q815.1 GB
BF1628.5 GB
RTX 5060 Ti 16 GB16 GB usable
RTX 5090 32 GB32 GB usable
DGX Spark 128 GB108.8 GB usable
Mac Studio M5 Ultra 256 GB192 GB usable

Single-device memory estimate. Pick a device to update the On your device column.

36 GB usable memory

FormatMemory neededOn your deviceExample hardware
4-bit (Q4)≈ 8.6 GBFits 24%Mac mini M6 (16GB)16 GB memory
8-bit (Q8)≈ 15.1 GBFits 42%Arc Pro B6024 GB memory
16-bit (BF16)≈ 28.5 GBFits 79%Radeon AI PRO R970032 GB memory

Fits means the estimate stays within 90% of usable memory. Tight is above 90% and up to 100%. Too big is above 100%. These are memory checks, not speed or compatibility tests.

Mac allowances are 66% of total RAM up to 36 GB, and 75% above. AI boxes allow 85% because their memory is shared with the operating system.

Where to run it

On a Mac

No trusted MLX build found yet.

Check your Mac

With GGUF

No trusted GGUF build found yet.

Find compatible hardware

Through an API

DeepInfra (bf16) is the cheapest provider we found.

$0.144 / $0.144

Input / output per 1M tokens
₹14 / ₹14 at ₹94.29 per $1

Blended: $0.144 (₹14) per 1M. Ranked by a 3:1 mix of input and output tokens.

Hosted API 1

USD and INR per million tokensAll Meta API prices
Precision
DeepInfraCheapest$0.144₹14$0.144₹14$0.144₹14163,840BF16
View on OpenRouterEndpoint sourceSorted by the blended price: 3 parts input to 1 part output. Context limits differ by provider.

INR at ₹94.29 per $1. Prices fetched 14 Nov 2026.

More about this model

Frequently asked questions

How much memory does Llama-Guard-4-12B need? At an 8k context, about 8.6 GB at 4-bit, 15.1 GB at 8-bit and 28.5 GB at 16-bit (BF16). A longer context needs more.

Can I run Llama-Guard-4-12B on a Mac? The smallest current Mac that fits the 4-bit estimate of 8.6 GB is the Mac mini M6 (16GB). We have not found a trusted MLX or GGUF build yet.

Does the full context fit? We do not have a context length for this model. Our memory estimates use 8k, so long prompts need more memory than shown.

What does it cost through an API? The cheapest provider we found is DeepInfra, at $0.14 per 1M input tokens and $0.14 per 1M output tokens (₹14 and ₹14 at 94.29 rupees per dollar). Ranked by a 3:1 mix of input and output tokens.

License in plain English

Llama 4 license. Meta's community license for Llama. It allows commercial use with conditions, including an acceptable use policy and extra terms for very large services. This summary is not legal advice.

Read the license on the model card

Read about this license

OMHQ RigBench

Not yet tested. We show no speed or quality score without a measurement.

Revision history and sources

Last updated . Sources:Hugging Face model card, OpenRouter.