# Code Llama 34B Instruct on NVIDIA H100 (80 GB SXM)

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

- Runtime: Ollama, Q4_K_M, 16K context
- Memory: 23.4 GB of 77.5 GB usable (30%)
  - Weights: 18.8 GB (published file size, codellama:34b-code-q4_K_M)
  - KV cache: 3.0 GB (exact)
  - Overhead: 1.6 GB
- Speed: 48–65 tok/s for one request (calibrated)
- Largest context that fits: 16K

## Run it

```sh
ollama run codellama:34b-code-q4_K_M
```

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

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

| Path | $/1M tokens | Detail |
| --- | --- | --- |
| Local | $70.92 | $0.18 power only; $38,200 hardware over 36 months |
| Cloud GPU | $1.19 | 1x RTX A6000 (48 GB) on RunPod, $0.33/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 H100 (80 GB SXM) on Amazon](https://www.amazon.com/s?k=NVIDIA%20H100%2080GB)
- [Rent 1x RTX A6000 (48 GB) on RunPod](https://www.runpod.io/console/gpu-cloud)
- [Open in the calculator](https://llmsizing.com/?m=codellama-34b&hw=nvidia-h100-80gb&q=q4_k_m&ctx=16384)
- [Full page](https://llmsizing.com/models/codellama-34b/on/nvidia-h100-80gb)

Source: [llmsizing.com](https://llmsizing.com/models/codellama-34b/on/nvidia-h100-80gb), data synced 2026-11-30.
