# Gemma 4 12B on NVIDIA RTX A5000 (24 GB)

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

- Runtime: Ollama, Q4_K_M, 16K context
- Memory: 9.1 GB of 22.8 GB usable (40%)
  - Weights: 7.5 GB (published file size, gemma4:12b)
  - KV cache: 0.6 GB (approximate)
  - Overhead: 1.1 GB
- Speed: 59–79 tok/s for one request (calibrated)
- Largest context that fits: 256K

## Run it

```sh
ollama run gemma4:12b
```

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

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

| Path | $/1M tokens | Detail |
| --- | --- | --- |
| Local | — | $0.06 power only |
| Cloud GPU | $0.25 | 1x RTX 3090 (24 GB) on Vast.ai, $0.18/hr (provider API, 2026-11-30) |
| API | — | not on OpenRouter |

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 RTX A5000 (24 GB) on Amazon](https://www.amazon.com/s?k=NVIDIA%20RTX%20A5000%2024GB)
- [Rent 1x RTX 3090 (24 GB) on Vast.ai](https://cloud.vast.ai/create/)
- [Open in the calculator](https://llmsizing.com/?m=gemma-4-12b&hw=rtx-a5000-24gb&q=q4_k_m&ctx=16384)
- [Full page](https://llmsizing.com/models/gemma-4-12b/on/rtx-a5000-24gb)

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