Chat and text
gemma2:27b: GPU memory and a server to run it
By our estimate gemma2:27b needs about 18 GB of GPU memory and 100 GB of disk with the Ollama template. Below: how the figure is worked out, the servers that fit and what they cost now.
- Chat in your browserNo code needed: a private chat page on your own server, opened in your browser, with gemma2:27b already set up. Ready in about 18 minutes on one RTX 3090, $0.4772 per hour while it runs.
- API server (for developers)For developers: a server that your own code sends requests to, through an OpenAI-compatible API.
These are estimates from the model's recorded files, not measurements. Real use can need more, for example with longer prompts or several requests at once.
- GPU memory (estimate)
- 18 GB
- Disk
- 100 GB
- Time until it answers
- about 15 min
- Cheapest server that fits
- $0.4912 per hour
About gemma2:27b
- Task
- Chat and text
- Parameters
- 27.2 B
- Stored precision
- Q4_K_M
- Template that runs it
- Ollama
- Licence
- Gemma Terms of Use
- Model page
- gemma2:27b
The licence is set by the model's publisher; read it on the model's own page. We do not give licence advice.
How to run gemma2:27b on a GPU
Four steps from an empty account to a running server.
- 1
Start Ollama
Sign up, then start the Ollama template with gemma2:27b already set. There is nothing to install on your computer.
- 2
Pick a GPU with at least 18 GB of memory
This page's estimate for gemma2:27b is 18 GB. The cheapest GPU that fits right now is one RTX 3090, $0.4912 per hour.
- 3
Send your first request
The server exposes an OpenAI-compatible endpoint: copy the curl or Python sample further down this page and replace the placeholders.
- 4
Stop it when you are done
A server bills by the hour only while it runs. Stop or delete it from the console and the charge ends.
How much GPU memory gemma2:27b needs
A model's weights must fit in the memory on the graphics card (GPU memory, or VRAM), with room for the text it is working on. More parameters need more memory. Quantisation stores each weight in fewer bits, for example 4 instead of 16, so the same model needs about a quarter of the memory, with a small loss of quality. What GPU memory is
| Build | Weights | Cache | Overhead | Total (estimate) |
|---|---|---|---|---|
| Q4_K_Mthis page | 14.6 GB | 0.7 GB | 1.2 GB | 18 GB |
Estimate: (weights + cache + overhead) ÷ 1 × 1.05, rounded up. Weights are the recorded file sizes, the cache holds one sequence of 2048 tokens, and the overhead is what the serving software needs on top.
These are estimates from the model's recorded files, not measurements. Real use can need more, for example with longer prompts or several requests at once.
Servers that fit gemma2:27b
Chosen from our live catalogue with at least 18 GB of GPU memory. Prices include the disk the launch uses.
Cheapest that fits
Available1× RTX 3090, 24 GB GPU memory
$0.4912 per hour, disk included
RTX 3090 plans and pricesFaster option
Available1× RTX 4090, 24 GB GPU memory
$0.9772 per hour, disk included
RTX 4090 plans and pricesWhat it costs to run
| Server | 1 hour | 8 hours |
|---|---|---|
| 1× RTX 3090Cheapest that fits | $0.4912 | $3.9296 |
| 1× RTX 4090Faster option | $0.9772 | $7.8176 |
Hourly price today with the launch disk included, times 1 and 8. It is an estimate: you pay for the time the server runs and see the exact price before you deploy. Stop the server when you are done.
GPU types that fit
- RTX 2070 SUPER
- RTX 2070
- GTX 1080 Ti
- RTX 3060
- RTX 3060 Ti
- RTX A4000
- RTX 5060
- RTX 5060 Ti
- RTX 4060 Ti
- RTX 3080
- RTX 5070
- RTX 3070
- RTX 3080 Ti
- RTX 4070 Ti SUPER
- RTX 3090
- RTX A5000
- RTX 5070 Ti
- Tesla V100
- RTX 5080
- RTX 4080 SUPER
- RTX 4090
- A40
- A100 PCIe
- RTX PRO 4000
- RTX 5090
- RTX PRO 5000
- A100 SXM4
- RTX PRO 6000 Max-Q
- RTX PRO 6000 Server
- H200 NVL
- GTX 1070
- RTX 2060
- Quadro P4000
- RTX 4060
- RTX 2080 Ti
- Quadro RTX 6000
- Tesla P100
- RTX A4500
- Titan RTX
- RTX 4070 SUPER
- RTX 4080
- Quadro RTX 8000
- RTX 4070 Ti
- RTX 4070
- RTX 5000 Ada
- Tesla P40
- RTX 3090 Ti
- RTX 5880 Ada
- L4
- L40S
- RTX 6000 Ada
- RTX 6000D
- RTX PRO 6000 Workstation
- H200
- H100 NVL
- H100 SXM
- B300
- B200
- RTX 2060 SUPERnot in stock
- Quadro RTX 4000not in stock
- Tesla T4not in stock
- Quadro RTX 5000not in stock
- RTX 4000 Adanot in stock
- A10not in stock
- RTX PRO 4000 SFFnot in stock
- RTX PRO 4500not in stock
- RTX 4090Dnot in stock
- RTX 4500 Adanot in stock
- RTX A6000not in stock
- RTX 5090Dnot in stock
- A100Xnot in stock
- A800 PCIenot in stock
- H100 PCIenot in stock
What you get
An OpenAI-compatible chat API on your own server, locked with a key the server creates. Once it runs, send requests like this:
curl http://SERVER_ADDRESS/v1/chat/completions \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gemma2:27b", "messages": [{"role": "user", "content": "Hello!"}]}'from openai import OpenAI
client = OpenAI(base_url="http://SERVER_ADDRESS/v1", api_key="API_KEY")
reply = client.chat.completions.create(
model="gemma2:27b",
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)Replace SERVER_ADDRESS and API_KEY with the address and key shown on the server's Connect tab.
Launch settings
Deploy the Ollama template and set these variables at launch:
- OLLAMA_MODEL
- gemma2:27b
Questions
How much GPU memory does gemma2:27b need?
About 18 GB by our estimate: 14.6 GB of weights, 0.7 GB of cache for 2048 tokens and 1.2 GB of overhead. Servers are chosen with at least 18 GB.
Which GPU do I need for gemma2:27b?
Right now the cheapest of our servers that fits is 1× RTX 3090 with 24 GB of GPU memory.
How long until gemma2:27b answers?
About 15 minutes after launch by our estimate: the machine starts, 15.6 GB of model files and the serving software download, then the server sets itself up.
How do I use gemma2:27b once it runs?
Through an OpenAI-compatible chat API on your server, with a key the server creates.
Before you start
Two short guides that explain the numbers on this page and the steps to a working server for gemma2:27b.
- How much VRAM do you need?How weights, cache and precision add up to the memory a model asks for.
- Run an open LLM with vLLM on a rented GPUFrom an empty account to an OpenAI-compatible endpoint, step by step.
Ready to try gemma2:27b? Pick a server and start it with the model already set; stop it whenever you like.