Gemma 2 2B

Dense 2.6B Gemma 2 model with an 8K context window.

Google·2.61B params·26 layers / 4 KV heads·Max 8K ctx·Gemma License
Local Run Command
Q4_K_M minimum memory: 3.2 GB at 8K context.
Artificial Analysis Benchmarkartificialanalysis.ai ↗
Intelligence Index
—

Independent benchmark scores sourced from Artificial Analysis.

OpenRouter API & Cloud GPU
No live OpenRouter route synced.

VRAM by Quantization (8K context)

Q4_K_M (4-bit)1.6 GB
real file size
0.8 GB3.2 GB2.8 GBBest speed-to-quality balance for local inference (~98% quality)
ollama run gemma2:2b-text-q4_K_M
Q6_K (6-bit)2.0 GB
real file size
0.8 GB3.6 GB3.3 GBNear-lossless quality with ~35% larger footprint than Q4
ollama run gemma2:2b-text-q6_K
Q8_0 (8-bit)2.6 GB
real file size
0.8 GB4.3 GB3.9 GBVirtually indistinguishable from FP16 for coding & reasoning
ollama run gemma2:2b-text-q8_0
FP16 / BF16 (16-bit)4.9 GB
real file size
0.8 GB6.7 GB6.3 GBFull native precision; standard for production GPU serving
ollama run gemma2:2b-text-fp16

Layer and head counts are read from the published config.json. KV cache is exact for this architecture.

Run Gemma 2 2B with Ollama, LM Studio, llama.cpp, MLX or vLLM

Command
Ollama
Q4_K_M
gemma2:2b-text-q4_K_M
1.6 GB
real file size
LM Studio
Q4_K_M
lmstudio-community/gemma-2-2b-it-GGUF
1.6 GB
real file size
llama.cpp
Q4_K_M
lmstudio-community/gemma-2-2b-it-GGUF
1.6 GB
real file size
MLX
4-bit
mlx-community/gemma-2-2b-it-4bit
1.4 GB
real file size
vLLM
INT4
2.5 GB
estimate
No INT4 build of this model found for vLLM.

Each runtime loads its own build of the model, so download sizes differ. Sizes marked as real are file sizes read from the Ollama registry or Hugging Face.

Hardware Compatibility Matrix (Q4_K_M · 8K context)

Details
11.5 GBFits comfortably25–34 tok/s—Gemma 2 2B on M1 16GB →
48.0 GBFits comfortably74–101 tok/s—Gemma 2 2B on M1 Max 64GB →
98.0 GBFits comfortably98–133 tok/s—Gemma 2 2B on M1 Ultra 128GB →
18.0 GBFits comfortably37–50 tok/s—Gemma 2 2B on M2 24GB →
48.0 GBFits comfortably90–121 tok/s—Gemma 2 2B on M2 Max 64GB →
152 GBFits comfortably109–148 tok/s—Gemma 2 2B on M2 Ultra 192GB →
27.0 GBFits comfortably50–67 tok/s—Gemma 2 2B on M3 Pro 36GB →
48.0 GBFits comfortably90–122 tok/s—Gemma 2 2B on M3 Max 64GB →
98.0 GBFits comfortably90–122 tok/s—Gemma 2 2B on M3 Max 128GB →
11.5 GBFits comfortably40–54 tok/s—Gemma 2 2B on M4 16GB →
24.0 GBFits comfortably40–54 tok/s—Gemma 2 2B on M4 32GB →
36.0 GBFits comfortably74–101 tok/s—Gemma 2 2B on M4 Pro 48GB →
48.0 GBFits comfortably74–101 tok/s—Gemma 2 2B on M4 Pro 64GB →
48.0 GBFits comfortably107–144 tok/s—Gemma 2 2B on M4 Max 64GB →
98.0 GBFits comfortably107–144 tok/s—Gemma 2 2B on M4 Max 128GB →
98.0 GBFits comfortably107–144 tok/s—Gemma 2 2B on Studio M4 Max 128GB →
204 GBFits comfortably110–149 tok/s—Gemma 2 2B on M3 Ultra 256GB →
430 GBFits comfortably110–149 tok/s—Gemma 2 2B on M3 Ultra 512GB →
24.0 GBFits comfortably58–79 tok/s—Gemma 2 2B on M1 Pro 32GB →
24.0 GBFits comfortably60–81 tok/s—Gemma 2 2B on M2 Pro 32GB →
27.0 GBFits comfortably82–111 tok/s—Gemma 2 2B on M3 Max 36GB →
11.5 GBFits comfortably40–54 tok/s—Gemma 2 2B on Air M4 16GB →
24.0 GBFits comfortably40–54 tok/s—Gemma 2 2B on Air M4 32GB →
18.0 GBFits comfortably74–101 tok/s—Gemma 2 2B on M4 Pro 24GB →
11.5 GBFits comfortably52–70 tok/s—Gemma 2 2B on Air M5 16GB →
24.0 GBFits comfortably52–70 tok/s—Gemma 2 2B on Air M5 32GB →
48.0 GBFits comfortably93–125 tok/s—Gemma 2 2B on M5 Pro 64GB →
98.0 GBFits comfortably135–182 tok/s—Gemma 2 2B on M5 Max 128GB →
24.0 GBFits comfortably57–78 tok/s—Gemma 2 2B on mini M6 32GB →
48.0 GBFits comfortably93–125 tok/s—Gemma 2 2B on mini M5 Pro 64GB →
98.0 GBFits comfortably135–182 tok/s—Gemma 2 2B on Studio M5 Max 128GB →
430 GBFits comfortably181–245 tok/s—Gemma 2 2B on Studio M5 Ultra 512GB →
11.2 GBFits comfortably126–171 tok/s1×Gemma 2 2B on RTX 3060 12GB →
9.2 GBFits comfortably209–283 tok/s1×Gemma 2 2B on RTX 3080 10GB →
22.8 GBFits comfortably229–310 tok/s1×Gemma 2 2B on RTX 3090 24GB →
15.0 GBFits comfortably109–147 tok/s1×Gemma 2 2B on RTX 4060 Ti 16GB →
15.0 GBFits comfortably208–281 tok/s1×Gemma 2 2B on RTX 4070 Ti S 16GB →
15.0 GBFits comfortably230–312 tok/s1×Gemma 2 2B on RTX 4080 S 16GB →
22.8 GBFits comfortably259–350 tok/s1×Gemma 2 2B on RTX 4090 24GB →
15.0 GBFits comfortably269–364 tok/s1×Gemma 2 2B on RTX 5070 Ti 16GB →
15.0 GBFits comfortably275–371 tok/s1×Gemma 2 2B on RTX 5080 16GB →
30.5 GBFits comfortably398–539 tok/s1×Gemma 2 2B on RTX 5090 32GB →
22.8 GBFits comfortably241–326 tok/s1×Gemma 2 2B on RX 7900 XTX 24GB →
15.0 GBFits comfortably175–237 tok/s1×Gemma 2 2B on RX 9070 XT 16GB →
10.2 GBFits comfortably170–230 tok/s1×Gemma 2 2B on RTX 2080 Ti 11GB →
7.3 GBFits comfortably142–192 tok/s1×Gemma 2 2B on RTX 3060 Ti 8GB →
7.3 GBFits comfortably137–185 tok/s1×Gemma 2 2B on RTX 3070 8GB →
11.2 GBFits comfortably198–268 tok/s1×Gemma 2 2B on RTX 3080 Ti 12GB →
22.8 GBFits comfortably257–348 tok/s1×Gemma 2 2B on RTX 3090 Ti 24GB →
7.3 GBFits comfortably98–163 tok/s1×Gemma 2 2B on RTX 4060 8GB →
7.3 GBFits comfortably109–147 tok/s1×Gemma 2 2B on RTX 4060 Ti 8GB →
11.2 GBFits comfortably149–202 tok/s1×Gemma 2 2B on RTX 4070 12GB →
11.2 GBFits comfortably176–238 tok/s1×Gemma 2 2B on RTX 4070 S 12GB →
11.2 GBFits comfortably172–233 tok/s1×Gemma 2 2B on RTX 4070 Ti 12GB →
15.0 GBFits comfortably218–294 tok/s1×Gemma 2 2B on RTX 4080 16GB →
15.0 GBFits comfortably149–202 tok/s1×Gemma 2 2B on RTX 5060 Ti 16GB →
11.2 GBFits comfortably200–271 tok/s1×Gemma 2 2B on RTX 5070 12GB →
15.0 GBFits comfortably163–221 tok/s1×Gemma 2 2B on RX 7800 XT 16GB →
18.9 GBFits comfortably171–231 tok/s1×Gemma 2 2B on RX 7900 XT 20GB →
15.0 GBFits comfortably174–236 tok/s1×Gemma 2 2B on RX 9070 16GB →
15.0 GBFits comfortably114–154 tok/s1×Gemma 2 2B on RX 9060 XT 16GB →
46.2 GBFits comfortably210–284 tok/s1×Gemma 2 2B on RTX A6000 48GB →
46.2 GBFits comfortably257–348 tok/s1×Gemma 2 2B on RTX 6000 Ada 48GB →
93.0 GBFits comfortably387–524 tok/s1×Gemma 2 2B on PRO 6000 96GB →
15.0 GBFits comfortably137–186 tok/s1×Gemma 2 2B on RTX A4000 16GB →
22.8 GBFits comfortably201–272 tok/s1×Gemma 2 2B on RTX A5000 24GB →
18.9 GBFits comfortably128–173 tok/s1×Gemma 2 2B on RTX 4000 Ada 20GB →
30.5 GBFits comfortably185–250 tok/s1×Gemma 2 2B on RTX 5000 Ada 32GB →
46.2 GBFits comfortably230–383 tok/s1×Gemma 2 2B on PRO 5000 48GB →
46.2 GBFits comfortably171–231 tok/s1×Gemma 2 2B on PRO W7900 48GB →
30.5 GBFits comfortably174–235 tok/s1×Gemma 2 2B on AI PRO R9700 32GB →
22.8 GBFits comfortably105–175 tok/s1×Gemma 2 2B on L4 24GB →
46.2 GBFits comfortably220–297 tok/s1×Gemma 2 2B on L40S 48GB →
38.5 GBFits comfortably241–401 tok/s1×Gemma 2 2B on A100 40GB →
77.5 GBFits comfortably254–343 tok/s1×Gemma 2 2B on A100 80GB →
77.5 GBFits comfortably288–389 tok/s1×Gemma 2 2B on H100 80GB →
137 GBFits comfortably305–508 tok/s1×Gemma 2 2B on H200 141GB →
175 GBFits comfortably321–535 tok/s1×Gemma 2 2B on B200 180GB →
15.0 GBFits comfortably87–118 tok/s1×Gemma 2 2B on T4 16GB →
46.2 GBFits comfortably183–248 tok/s1×Gemma 2 2B on A40 48GB →
46.2 GBFits comfortably232–314 tok/s1×Gemma 2 2B on L40 48GB →
115 GBFits comfortably99–134 tok/s—Gemma 2 2B on DGX Spark 128GB →
96.0 GBFits comfortably86–116 tok/s—Gemma 2 2B on Ryzen AI Max+ 395 128GB →
48.0 GBFits comfortably86–116 tok/s—Gemma 2 2B on Ryzen AI Max+ 395 64GB →

Frequently asked questions

How much VRAM does Gemma 2 2B require?

At Q4_K_M quantization with a 8K context window, Gemma 2 2B needs 3.2 GB total VRAM (1.6 GB weights + 0.8 GB KV cache + runtime overhead). In full FP16 precision, it requires 6.7 GB.

Can an RTX 4090 (24 GB) run Gemma 2 2B?

Yes. At Q4_K_M with 8K context Gemma 2 2B needs 3.2 GB, which fits a single 24 GB RTX 4090 at an estimated 259–350 tok/s.

How do I run Gemma 2 2B locally with Ollama?

Install Ollama and run `ollama run gemma2:2b` in your terminal. Make sure your GPU or Apple Silicon unified memory meets the 3.2 GB Q4_K_M requirement.