OPEN MODELS / Language models (LLM)
Run codegemma:2b on a cloud GPU
codegemma:2b is a Language models (LLM) model by Ollama. See how much GPU memory it needs, which GPUs it fits on today and what it costs to run it yourself, billed per second.
From the project: 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.
GPUs it fits on today
About 3 GB of GPU memory: the model download (4-bit by default) plus working memory.
| GPU | Memory | Per hour | 10 hours | |
|---|---|---|---|---|
| GTX 1660 S | 6 GB | $0.11 | $1.10 | Rent |
| GTX 1650 | 4 GB | $0.13 | $1.30 | Rent |
| GTX 1070 | 8 GB | $0.14 | $1.40 | Rent |
| GTX 1660 | 6 GB | $0.14 | $1.40 | Rent |
| RTX 3060 | 12 GB | $0.15 | $1.50 | Rent |
Live starting prices from our catalog. You pay per second while the machine runs.
How to run codegemma:2b
- 01
Rent a GPU
Pick one of the GPUs above. Billing is per second; stop the machine and you stop paying.
- 02
Open a terminal or Jupyter
Connect over SSH or open Jupyter in your browser. PyTorch and CUDA are ready to use.
- 03
Install Ollama and run the model
Run the commands below. Ollama downloads the model and serves an OpenAI-compatible API on port 11434.
curl -fsSL https://ollama.com/install.sh | sh
ollama run codegemma:2bWhy run it yourself?
Your own LLM server has no per-token bill and no rate limit, and your data stays private. Pick a GPU by memory and serve the model with vLLM.
Questions
- How much GPU memory does codegemma:2b need?
- By our estimate about 3 GB for inference (2B parameters). Higher resolution, longer context or bigger batches need more.
- How much does it cost to run codegemma:2b?
- From $0.11 per hour on GTX 1660 S, billed per second. Ten hours cost about $1.10.
- Do I need a subscription?
- No. You pay only for the time your machine runs, from your USD balance. Stop it whenever you are done.
Try it on your own GPU in minutes
Pick a GPU, open Jupyter or SSH and run any open model. You pay per second and can stop anytime; no subscription, no setup fee.
- Per-second billing in USD
- PyTorch and CUDA ready in minutes
- Rent from ChatGPT or Claude too