gemma-3-12b-it GGUF size and VRAM requirements

⬇ 141,618 ❤ 19
Parameters12.19B
Context131,072

MaziyarPanahi/gemma-3-12b-it-GGUF is a large instruction-tuned chat model with 12.19 billion parameters, built on the gemma3 architecture. It has been downloaded 141,618 times.

Under the hood it uses 48 transformer layers, a hidden size of 3,840, 16 attention heads. It uses grouped-query attention (16 query heads sharing 8 key/value heads), which already trims KV-cache memory compared with full multi-head attention.

To run MaziyarPanahi/gemma-3-12b-it-GGUF locally at a 4,096-token context, its quantized versions need between 6.65 GB (Q2_K, lowest quality) and 24.13 GB (GGUF, highest quality) of memory, weights plus KV cache and a system margin included. Context length drives that memory directly: at 4,096 tokens the KV cache for gemma-3-12b-it-GGUF is about 1.41 GB, rising to roughly 45.0 GB at its full 131,072-token context. Shorter prompts free up memory for a higher-quality quantization.

For most users the best balance is Q3_K_M, needing about 7.8 GB. That means MaziyarPanahi/gemma-3-12b-it-GGUF fits entirely in the VRAM of an 8 GB GPU or larger, running fully on the GPU.

Available GGUF quantizations for MaziyarPanahi/gemma-3-12b-it-GGUF include Q2_K, Q3_K_S, Q3_K_M, Q3_K_L, Q4_K_S, Q4_K_M, Q5_K_S, Q5_K_M, Q6_K, Q8_0, GGUF. The model supports a native context length of up to 131,072 tokens; a longer context grows the KV cache and the memory needed.

→ Guide: How much VRAM do you need?

GGUF file size and memory by quantization

Compare real GGUF weight sizes, estimated KV cache and total memory for Q4, Q5, Q8 and every quantization published in this repository.

Quant.Bits QualityWeights KVTotal Speed~Verdict
Q2_K 3.13 Low 4.44 GB 1.41 GB 6.65 GB 90.1 t/s Fits in VRAM
Q3_K_S 3.58 Fair 5.08 GB 1.41 GB 7.29 GB 78.7 t/s Fits in VRAM
Q3_K_M 3.94 Fair 5.6 GB 1.41 GB 7.8 GB 71.5 t/s Fits in VRAM
Q3_K_L 4.25 Good 6.03 GB 1.41 GB 8.24 GB 8.3 t/s Offload
Q4_K_S 4.55 Good 6.46 GB 1.41 GB 8.67 GB 7.7 t/s Offload
Q4_K_M 4.79 Good 6.8 GB 1.41 GB 9.01 GB 7.4 t/s Offload
Q5_K_S 5.4 Very good 7.67 GB 1.41 GB 9.87 GB 6.5 t/s Offload
Q5_K_M 5.54 Very good 7.86 GB 1.41 GB 10.07 GB 6.4 t/s Offload
Q6_K 6.34 Very good 9.0 GB 1.41 GB 11.2 GB 5.6 t/s Offload
Q8_0 8.21 Excellent 11.65 GB 1.41 GB 13.86 GB 4.3 t/s Offload
GGUF 15.45 Excellent 21.92 GB 1.41 GB 24.13 GB Insufficient

KV cache computed from the model's exact architecture. Speed is a rough estimate bounded by memory bandwidth.

Frequently asked questions

What kind of model is MaziyarPanahi/gemma-3-12b-it-GGUF?

MaziyarPanahi/gemma-3-12b-it-GGUF is an instruction-tuned chat model with 12.19 billion parameters, based on the gemma3 architecture. It is distributed as GGUF files for local inference.

How much VRAM do you need to run MaziyarPanahi/gemma-3-12b-it-GGUF?

You need about 7.8 GB of VRAM to run MaziyarPanahi/gemma-3-12b-it-GGUF entirely on the GPU using the Q3_K_M quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.

Can I run MaziyarPanahi/gemma-3-12b-it-GGUF on an 8 GB GPU?

Yes. With 8 GB of VRAM you can run MaziyarPanahi/gemma-3-12b-it-GGUF fully on the GPU using Q3_K_M (about 7.8 GB).

Can I run MaziyarPanahi/gemma-3-12b-it-GGUF on a 16 GB GPU?

Yes. With 16 GB of VRAM you can run MaziyarPanahi/gemma-3-12b-it-GGUF fully on the GPU using Q8_0 (about 13.86 GB).

Can I run MaziyarPanahi/gemma-3-12b-it-GGUF on a 24 GB GPU?

Yes. With 24 GB of VRAM you can run MaziyarPanahi/gemma-3-12b-it-GGUF fully on the GPU using Q8_0 (about 13.86 GB).

What context length does MaziyarPanahi/gemma-3-12b-it-GGUF support?

MaziyarPanahi/gemma-3-12b-it-GGUF supports a native context length of up to 131,072 tokens. A longer context grows the KV cache, so it increases the memory needed to run the model.

What is the best quantization for MaziyarPanahi/gemma-3-12b-it-GGUF?

For MaziyarPanahi/gemma-3-12b-it-GGUF, a strong default is Q4_K_M, which needs about 9.01 GB and keeps most of the quality while roughly halving the memory versus 8-bit. With VRAM to spare, Q5_K_M or Q6_K add a little more quality; if you are tight on memory, a smaller quantization still runs. Pick the highest quantization that fits your VRAM.