CanMyPCRunAILocal AI compatibility

Google DeepMind · gemma

Can I run codegemma?

CodeGemma is a collection of powerful, lightweight models that can perform a variety of coding tasks like fill-in-the-middle code completion, code generation, natural language understanding, mathematical reasoning, and instruction following.

9B parameters8K contexttextGemma Terms of Use30 builds

codegemma system requirements

Memory needed at 4K context, counting model weights, KV cache, compute buffers and runtime overhead. Download sizes come from the official Ollama registry.

Download size and memory required for each codegemma build
BuildQuantizationDownloadMemory needed
codegemma:2bQ4_01.4 GB~2.5 GB(est.)
codegemma:2b-code-q4_0Q4_01.4 GB~2.5 GB(est.)
codegemma:2b-code-v1.1-q4_K_MQ4_K_M1.5 GB~2.6 GB(est.)
codegemma:2b-code-q4_K_MQ4_K_M1.5 GB~2.6 GB(est.)
codegemma:2b-code-v1.1-q5_K_MQ5_K_M1.7 GB~2.8 GB(est.)
codegemma:2b-code-q5_K_MQ5_K_M1.7 GB~2.8 GB(est.)
codegemma:2b-code-q6_KQ6_K1.9 GB~3.1 GB(est.)
codegemma:2b-code-v1.1-q6_KQ6_K1.9 GB~3.1 GB(est.)

Figures marked (est.) approximate the KV cache because this model's architecture details are not published. They are indicative rather than exact.

How to run codegemma locally

  1. 1.Install Ollama for Windows, macOS or Linux.
  2. 2.Run this in a terminal:ollama run codegemma:2b
  3. 3.The weights download on first run, then an interactive prompt opens.

Frequently asked questions about codegemma

How much VRAM do I need to run codegemma?
At 4K context, the smallest published build of codegemma (Q4_0) needs roughly 2.5 GB of GPU memory once weights, KV cache, compute buffers and runtime overhead are counted. Bigger quantizations and longer context windows need more. It can also run partly or entirely on the CPU using system RAM, more slowly.
Can I run codegemma without a dedicated GPU?
Yes, but slowly. Without a GPU the model runs on the CPU using system RAM, which usually means a few tokens per second rather than dozens. You would need at least 2.5 GB of free RAM for the smallest build.
How big is the codegemma download?
The smallest published build is 1.4 GB. There are 30 builds in total, the largest being 15.9 GB. Leave some extra free disk space beyond the download itself.
How do I run codegemma locally?
Install Ollama, then run "ollama run codegemma:2b" in a terminal. The weights download on first use and an interactive session opens.

Will codegemma run on your PC?

Scan your hardware once and get a verdict for this model and every build — free, no account.

Check my PC

Model data from the official Ollama registry · verified 13/09/2026