gemma-7b GPU requirements
gemma-7b has 8.5B parameters. To serve it, plan for about 20 GB of GPU memory in 16-bit, 10 GB in 8-bit or 5.1 GB in 4-bit, including about 20% for the KV cache and activations.
What it takes to fine-tune it
QLoRA trains adapters on a 4-bit frozen model, LoRA on a 16-bit one, and full fine-tuning updates every weight. Figures are before activations, which grow with batch size and sequence length.
| Method | Memory and the smallest setup |
|---|---|
| QLoRA | 6.0 GB: one RTX 4090 or RTX 3090 |
| LoRA | 20 GB: one RTX 4090 or RTX 3090 |
| Full fine-tuning | 137 GB: one H200 |
About the model
From its card and files on Hugging Face. Memory figures here follow the GPU memory guide.
- Parameters
- 8.5B
- Published in
- BF16
- License
- gemma
- Released
- 2024-02-08
- Weights
- google/gemma-7b
Deploy it on Arrakis
Open Models in the console, choose vLLM, SGLang or llama.cpp, and rent a GPU it fits on. You get an OpenAI-compatible endpoint with its own API key, and root SSH to the machine. Or run it yourself on any machine with enough GPU memory:
vllm serve google/gemma-7b --tensor-parallel-size 1
Questions
Live prices for every GPU are on the GPU prices page.
How much GPU memory does gemma-7b need?
Can I run gemma-7b on one GPU?
What does it cost to run gemma-7b?
How do I deploy gemma-7b on Arrakis?
More models
- shieldgemma-9b9.2B
- gemma-3-12b-it12B
- gemma-3-4b-it4.3B
- medgemma-4b-it4.3B
- Qwen3-VL-8B-Instruct8.8B
- Qwen2.5-VL-7B-Instruct8.3B