# Gemma 3 27B on NVIDIA L4 (24 GB)

**Fits comfortably.** 3.4 GB headroom left for a longer context or other apps.

- Runtime: Ollama, Q4_K_M, 16K context
- Memory: 19.4 GB of 22.8 GB usable (85%)
  - Weights: 16.2 GB (published file size, gemma3:27b)
  - KV cache: 1.7 GB (exact)
  - Overhead: 1.5 GB
- Speed: 12.5–21 tok/s for one request (estimated)
- Largest context that fits: 32K

## Run it

```sh
ollama run gemma3:27b
```

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

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

| Path | $/1M tokens | Detail |
| --- | --- | --- |
| Local | $17.88 | $0.14 power only; $9,580 hardware over 36 months |
| Cloud GPU | $0.50 | 1x RTX 3090 (24 GB) on Vast.ai, $0.18/hr (provider API, 2026-11-30) |
| API | $0.10 | OpenRouter `google/gemma-3-27b-it`: $0.08 in / $0.16 out |

Assumes 75% input and 25% output tokens, one request at a time, $0.18/kWh, hardware written off over 36 months.

## Links

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

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