# MedGemma 27B on MacBook Air M5 (32 GB)

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

- Runtime: Ollama, Q4_K_M, 16K context
- Memory: 19.3 GB of 24.0 GB usable (81%)
  - Weights: 16.2 GB (published file size, medgemma:27b)
  - KV cache: 1.7 GB (exact)
  - Overhead: 1.5 GB
- Speed: 6.8–9.1 tok/s for one request (calibrated)
- Largest context that fits: 64K

## Run it

```sh
ollama run medgemma:27b
```

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

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

| Path | $/1M tokens | Detail |
| --- | --- | --- |
| Local | — | $0.05 power only |
| Cloud GPU | $0.50 | 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 MacBook Air M5 (32 GB) on Amazon](https://www.amazon.com/s?k=MacBook%20Air%20M5%2032GB)
- [Rent 1x RTX 3090 (24 GB) on Vast.ai](https://cloud.vast.ai/create/)
- [Open in the calculator](https://llmsizing.com/?m=medgemma-27b&hw=macbook-air-m5-32gb&q=q4_k_m&ctx=16384)
- [Full page](https://llmsizing.com/models/medgemma-27b/on/macbook-air-m5-32gb)

Source: [llmsizing.com](https://llmsizing.com/models/medgemma-27b/on/macbook-air-m5-32gb), data synced 2026-11-30.
