OpenModelsHQ

gemma-4-12B-it

GoogleVisionDenseApache-2.0

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

Overview

Estimated memory at 4-bit
8.5GB

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

Total parameters
12B
Dense
Context window
256K
262,144 tokens
Cheapest API, blended / 1M
No hosted API
Weights only

Key information

Lab
Google
Released
23 May 2026
Parameters
12B
Type
Vision and language
Context
262,144 tokens
License
Apache-2.0
HF downloads, 30 days
1,692,454
View all

Will it run on your hardware?

How we estimate
Memory needed vs devices
gemma-4-12B-it needs about 8.5 GB at 4-bit, 14.5 GB at 8-bit and 26.9 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.5 GB
Q814.5 GB
BF1626.9 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.5 GBFits 24%Mac mini M6 (16GB)16 GB memory
8-bit (Q8)≈ 14.5 GBFits 40%Arc Pro B6024 GB memory
16-bit (BF16)≈ 26.9 GBFits 75%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

Start with the MLX files, built for Apple Silicon.

lmstudio-community/gemma-4-12B-it-MLX-4bitCheck your Mac

With GGUF

Choose a file for llama.cpp or a compatible app.

unsloth/gemma-4-12b-it-GGUFFind compatible hardware

Through an API

No hosted API found.

MLX on Apple SiliconView repository
mlx_vlm.generate --model lmstudio-community/gemma-4-12B-it-MLX-4bit \
  --prompt "Describe this image." --image image.jpg
GGUF with llama.cppView repository
llama-cli -hf unsloth/gemma-4-12b-it-GGUF \
  -c 8192 -p "Explain how a transformer works."

Example commands built from the repository ids above. They need a working install of MLX or llama.cpp. We have not run them; check each repository for available files.

More about this model

Frequently asked questions

How much memory does gemma-4-12B-it need? At an 8k context, about 8.5 GB at 4-bit, 14.5 GB at 8-bit and 26.9 GB at 16-bit (BF16). A longer context needs more.

Can I run gemma-4-12B-it on a Mac? The smallest current Mac that fits the 4-bit estimate of 8.5 GB is the Mac mini M6 (16GB). An MLX build is available: lmstudio-community/gemma-4-12B-it-MLX-4bit.

Does the full context fit? gemma-4-12B-it supports up to 262,144 tokens of context. Our memory estimates use 8k, so long prompts need more memory than shown.

What does it cost through an API? We did not find a hosted API for this model.

License in plain English

Apache-2.0. This license permits commercial use, modification and redistribution, with conditions such as keeping the required notices. This summary is not legal advice.

Read Apache-2.0

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, MLX repository, GGUF repository.