CodeGemma 2B
Lightweight code completion model from Google. Fast on-device code suggestions.
2B parametersgemmagemma8K context1.9GB - 2.7GB VRAM
Check Your Hardware
See which quantizations of CodeGemma 2B your hardware can run.
Quantization Options
| Quantization | Bits | File Size | VRAM Needed | RAM Needed | Quality |
|---|---|---|---|---|---|
| Q4_K_M | 4.5 | 1.4 GB | 1.9 GB | 3 GB | 85% |
| Q8_0 | 8 | 2.2 GB | 2.7 GB | 4 GB | 98% |
See It In Action
Real model outputs generated via RunThisModel.com — watch responses stream in real time.
Llama 3.3 70B responding...
Outputs generated by real AI models via RunThisModel.com. Generation speed shown is from cloud inference. Local speeds vary by hardware — check your device.
Frequently Asked Questions
How much VRAM do I need to run CodeGemma 2B?
CodeGemma 2B requires 1.9GB VRAM minimum with Q4_K_M quantization. For full precision, you need 2.7GB VRAM.
What is the best quantization for CodeGemma 2B?
Q4_K_M offers the best balance of quality and VRAM usage. Q8_0 is near-lossless if you have enough VRAM.