# Codestral 22B on NVIDIA GeForce RTX 3090 (24 GB)

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

- Runtime: Ollama, Q4_K_M, 16K context
- Memory: 17.2 GB of 22.8 GB usable (76%)
  - Weights: 12.4 GB (estimate from parameter count)
  - KV cache: 3.5 GB (exact)
  - Overhead: 1.3 GB
- Speed: 43–59 tok/s for one request (calibrated)
- Largest context that fits: 32K

## Run it

```sh
ollama run codestral:22b
```

Ollama has no Q4_K_M build of this model; this pulls its default.

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

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

| Path | $/1M tokens | Detail |
| --- | --- | --- |
| Local | $4.37 | $0.11 power only; $2,300 hardware over 36 months |
| Cloud GPU | $0.40 | 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 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/)
- [Open in the calculator](https://llmsizing.com/?m=codestral-22b&hw=rtx-3090-24gb&q=q4_k_m&ctx=16384)
- [Full page](https://llmsizing.com/models/codestral-22b/on/rtx-3090-24gb)

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