# Gemma 2 27B on NVIDIA GeForce RTX 3090 (24 GB)

**Tight fit.** Uses 87% of usable memory. Close other GPU-heavy apps or switch to an 8-bit KV cache.

- Runtime: Ollama, Q4_K_M, 8K context
- Memory: 19.8 GB of 22.8 GB usable (87%)
  - Weights: 15.5 GB (published file size, gemma2:27b-text-q4_K_M)
  - KV cache: 2.9 GB (exact)
  - Overhead: 1.4 GB
- Speed: 34–45 tok/s for one request (calibrated)
- Largest context that fits: 8K

## Run it

```sh
ollama run gemma2:27b-text-q4_K_M
```

Setup guide: https://llmsizing.com/guides/ollama

## Cost per 1M tokens at 500K tokens/day

| Path | $/1M tokens | Detail |
| --- | --- | --- |
| Local | $4.40 | $0.15 power only; $2,300 hardware over 36 months |
| Cloud GPU | $0.47 | 1x RTX 3090 (24 GB) on Vast.ai, $0.18/hr (provider API, 2026-11-30) |
| API | $0.65 | OpenRouter `google/gemma-2-27b-it`: $0.65 in / $0.65 out |

Assumes 75% input and 25% output tokens, one request at a time, $0.18/kWh, hardware written off over 36 months. Local beats the API above 4.2M tokens/day.

## Links

- [Check prices for NVIDIA GeForce RTX 3090 (24 GB) on Amazon](https://www.amazon.com/s?k=NVIDIA%20RTX%203090%2024GB)
- [Rent 1x RTX 3090 (24 GB) on Vast.ai](https://cloud.vast.ai/create/)
- [Gemma 2 27B on OpenRouter](https://openrouter.ai/google/gemma-2-27b-it)
- [Open in the calculator](https://llmsizing.com/?m=gemma-2-27b&hw=rtx-3090-24gb&q=q4_k_m&ctx=8192)
- [Full page](https://llmsizing.com/models/gemma-2-27b/on/rtx-3090-24gb)

Source: [llmsizing.com](https://llmsizing.com/models/gemma-2-27b/on/rtx-3090-24gb), data synced 2026-11-30.
