# MedGemma 27B on MacBook Air M2 (24 GB)

**Over GPU memory limit.** 1.3 GB above macOS's default GPU memory limit. It only loads after raising iogpu.wired_limit_mb, and the system swaps under load.

- Runtime: Ollama, Q4_K_M, 16K context
- Memory: 19.3 GB of 18.0 GB usable (107%)
  - Weights: 16.2 GB (published file size, medgemma:27b)
  - KV cache: 1.7 GB (exact)
  - Overhead: 1.5 GB
- Speed: 1.5–3.5 tok/s for one request (estimated)

## 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 | — | does not fit |
| 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 M2 (24 GB) on Amazon](https://www.amazon.com/s?k=MacBook%20Air%20M2%2024GB)
- [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-m2-24gb&q=q4_k_m&ctx=16384)
- [Full page](https://llmsizing.com/models/medgemma-27b/on/macbook-air-m2-24gb)

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