LLMs · Google
CodeGemma 7B
- Parameters
- 8.5B
- Architecture
- Dense
- Max context
- 8K tokens
- License
- gemma
- Released
- 2024-04
How to run it
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run codegemma:7bQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/lmstudio-community/codegemma-7b-it-GGUF (opens in a new tab)
ollama run hf.co/lmstudio-community/codegemma-7b-it-GGUFOriginal weights · Hugging Face
Full-precision files from Google, for fine-tuning, vLLM, Transformers.
Official repo · GitHub
Reference code, inference scripts and docs from Google. The weights themselves download from Hugging Face.
github.com/google-deepmind/gemma (opens in a new tab)
git clone https://github.com/google-deepmind/gemmaMemory needed
Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps.
| Quantization | Quality | Weights | Total at 8K context | Download |
|---|---|---|---|---|
Q2_K |
Low | 3.4 GB | 7.8 GB | GGUF (opens in a new tab) |
Q3_K_M |
Low | 4.2 GB | 8.5 GB | GGUF (opens in a new tab) |
Q4_K_M |
Good | 5.2 GB | 9.6 GB | GGUF (opens in a new tab) |
Q5_K_M |
High | 6.1 GB | 10.4 GB | GGUF (opens in a new tab) |
Q6_K |
High | 7.0 GB | 11.4 GB | GGUF (opens in a new tab) |
Q8_0 |
Very high | 9.1 GB | 13.4 GB | GGUF (opens in a new tab) |
F16 |
Full | 17.1 GB | 21.4 GB | Original weights (opens in a new tab) |
Best hardware for CodeGemma 7B
The least expensive GPU in our catalog that runs it without offloading is the Intel Arc B570 (launch price $219) at Q3_K_M.
| Grade · points | Hardware | Quant | Memory | Speed | Fit |
|---|---|---|---|---|---|
| 70 ptsGood (B) · 70 of 100 points: Model quality 15.3/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | NVIDIA GeForce RTX 5090 | F16 | 23.0 GB / 32.0 GB | 60.4 tok/s | Runs well |
| 70 ptsGood (B) · 70 of 100 points: Model quality 15.1/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | AMD Radeon RX 9070 XT | Q6_K | 12.2 GB / 16.0 GB | 55.0 tok/s | Runs well |
| 70 ptsGood (B) · 70 of 100 points: Model quality 15.1/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | NVIDIA GeForce RTX 4070 Ti SUPER | Q6_K | 12.2 GB / 16.0 GB | 67.0 tok/s | Runs well |
| 70 ptsGood (B) · 70 of 100 points: Model quality 15.1/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | NVIDIA GeForce RTX 4080 SUPER | Q6_K | 12.2 GB / 16.0 GB | 73.4 tok/s | Runs well |
| 70 ptsGood (B) · 70 of 100 points: Model quality 15.1/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | NVIDIA GeForce RTX 5060 Ti 16GB | Q6_K | 12.2 GB / 16.0 GB | 44.7 tok/s | Runs well |
| 70 ptsGood (B) · 70 of 100 points: Model quality 15.1/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | NVIDIA GeForce RTX 5070 Ti | Q6_K | 12.2 GB / 16.0 GB | 89.4 tok/s | Runs well |
| 70 ptsGood (B) · 70 of 100 points: Model quality 15.1/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | NVIDIA GeForce RTX 5080 | Q6_K | 12.2 GB / 16.0 GB | 95.7 tok/s | Runs well |
| 69 ptsGood (B) · 69 of 100 points: Model quality 14.5/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | Intel Arc B580 | Q4_K_M | 10.2 GB / 12.0 GB | 50.1 tok/s | Runs well |
| 69 ptsGood (B) · 69 of 100 points: Model quality 14.5/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | NVIDIA GeForce RTX 3060 12GB | Q4_K_M | 10.2 GB / 12.0 GB | 51.7 tok/s | Runs well |
| 69 ptsGood (B) · 69 of 100 points: Model quality 14.5/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 | NVIDIA GeForce RTX 4070 SUPER | Q4_K_M | 10.2 GB / 12.0 GB | 72.4 tok/s | Runs well |
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.