VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase.As an eBay Partner, we may be compensated.Learn more

GPUs tracked57Price history49 daysPrice points (24h)43,400 pointsBiggest 24h dropGeForce RTX 3060 12GB-11.1%Biggest 24h riseCMP 170HX 40GB+19.8%Updated
$ USD

How to Deploy Gemma 4 12B Locally

Gemma 4 12B is a 12B dense model that Google added to the lineup in June 2026, and it understands both images and audio. Its 4-bit version runs on a 12GB card. Even the full 256K context needs only about 12.8 GB, which a 16GB card handles with room to spare. What sets it apart is that it has no separate vision or audio encoder: images and sound go straight into the main model. Google says it scores close to the 26B MoE while using less than half the memory.

Gemma 4 12B details

  • Min VRAM at 4-bit9 GB · 8K
  • Parameters12B
  • Max context256K
Architecture
Dense
License
Apache-2.0
Launch date
Jun 3, 2026
Vendor
Google DeepMind
Hugging Face repo
google/gemma-4-12B-it
NVFP4 repo (Blackwell)
RedHatAI/gemma-4-12B-it-NVFP4
Ollama tag
gemma4:12b
Layers
48
Hidden size
3,840
KV heads
8
Head dim
256

How much VRAM does Gemma 4 12B need for local deployment?

QuantizationWeightsGB8K contextGB32K contextGB128K contextGB256K context (max)GB
1-bit3est.4.656.68.7
2-bit4.7GGUF6.26.68.310.4
3-bit6GGUF7.57.99.611.7
4-bit7.1GGUF8.6910.712.8
5-bit8.4GGUF9.910.31214.1
8-bit12.7GGUF14.214.616.318.4
BF16/FP1623.8GGUF25.325.727.429.5

Full calculation rules are on the Methodology page.

Can a single GPU run Gemma 4 12B?

Yes, and 12GB of VRAM is enough. Most of its layers only look at the latest 1,024 tokens, so memory grows slowly with context: at 4-bit, going from 8K to 256K adds only about 4 GB. That lets a 12GB RTX 3060 run 4-bit with the full context at about 36 tokens/s. On a 16GB card, 8-bit is the better pick: closer to the original and still roomy on context, though the RTX 5060 Ti 16GB slows to about 26 tokens/s. A 24GB card handles it easily, but it can also hold the family's MoE 26B A4B, which reads fewer parameters per token and runs faster, so try that first.

eBay
DevicePriceSpeed t/sMax context
Tesla V100 16GB16 GB$37024 listings83.2256K
GeForce RTX 5060 Ti 16GB16 GB$86958 listings44256K
Tesla V100 32GB32 GB$89518 listings83.2256K
Radeon RX 7900 XTX24 GB$1,25029 listings88256K
GeForce RTX 309024 GB$1,799107 listings86.1256K
GeForce RTX 409024 GB$3,75868 listings91.9256K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,46420 listings25.8256K
RTX A600048 GB$4,89916 listings72.2256K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$7,27412 listings108.9256K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,54920 listings58.9256K
DGX Spark 128GBWhole system · 128 GB$8,24022 listings27.5256K
GeForce RTX 509032 GB$8,395123 listings148.5256K
RTX PRO 600096 GB$22,50011 listings148.5256K

Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.

What to know before running Gemma 4 12B locally

  1. What having no encoder means

    Other multimodal models first use a separate encoder to turn images and sound into vectors, then hand those to the language model. Gemma 4 12B skips that step: images go through one simple projection into the main model, audio is projected directly into the same dimensions as text, and everything runs through the same decoder. Google says this lowers latency and lets the whole model be fine-tuned in one go. Audio is likewise limited to 30 seconds.

  2. Which quantization to pick

    On a 12GB card, use 4-bit (7.1 GB of weights) or 5-bit (8.4 GB); on a 16GB card, use 8-bit (12.7 GB). The original FP16 with 8K already needs 25.3 GB, twice as much as 8-bit, so it can't take much context; you're better off running 8-bit with a long context.

  3. Thinking toggle and multi-turn chat

    Adding <|think|> at the start of the system prompt turns thinking on. With it off, the model still outputs an empty thinking block, which your parser needs to filter out. In multi-turn chats, don't put earlier thinking back into the history; keep only the final answers, except for turns with tool calls. Google uses temperature 1.0, top_p 0.95 and top_k 64 for every use case.

  4. Why long context is so light

    Most of its layers only look at the most recent 1024 tokens, and just a few layers see the full context, so VRAM grows slowly as context gets longer: at 4-bit, going from 8K to 256K adds only about 4.2 GB.

Launch commands

Ollama

  • Windows
  • macOS
  • Linux
Terminal
ollama run gemma4:12b

llama.cpp

  • NVIDIA
  • AMD
  • Mac
  • CPU
Terminal
llama-server -hf unsloth/gemma-4-12b-it-GGUF:Q4_K_M -c 8192

vLLM

  • Linux
  • NVIDIA
  • AMD
Original weights
Terminal
vllm serve google/gemma-4-12B-it
NVFP4 · Blackwell

Blackwell GPUs (RTX 50 series, RTX PRO 6000, B200) run NVFP4 weights natively, at about 30% of the original size.

Terminal
vllm serve RedHatAI/gemma-4-12B-it-NVFP4

MLX

  • Apple Silicon

Vision models run on mlx-vlm: on a Mac, pip install mlx-vlm first; this command downloads the MLX weights from Hugging Face and starts a server.

Terminal
mlx_vlm.server --model mlx-community/gemma-4-12B-it-4bit

File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology

Other models in the Gemma family

ModelTotal paramsActive params4-bit size
Gemma 4 E4BDense8B8B5 GB
Gemma 4 26B A4BMoE25.2B3.8B16.9 GB
Gemma 4 31BDense30.7B30.7B18.3 GB

About Gemma