Cost to run Llama 3.1 8B on H100 SXM
LLM model · 8B parameters · prices as of 2026-11-16
VRAM needed · 4-bit
4.8 GB
VRAM needed · 16-bit
19.2 GB
Cards needed · 4-bit
1
Cost per hour · 4-bit
$1.73–$1.93
Llama 3.1 8B fits on a single H100 SXM (80 GB) at 4-bit and at full 16-bit precision.
Cheapest option we track: 1 × RTX 3090 at $0.20/hr median.
Monthly cost by usage (4-bit)
| Usage | Lowest price | Median price |
|---|---|---|
| 10 hrs/month | $17 | $19 |
| 50 hrs/month | $87 | $97 |
| 160 hrs/month | $277 | $309 |
| 730 hrs/month (24/7) | $1,263 | $1,409 |
Cheapest GPUs for Llama 3.1 8B
| GPU | Cards (4-bit) | Lowest/hr | Median/hr |
|---|---|---|---|
| RTX 3090 | 1 | $0.09 | $0.20 |
| L4 | 1 | $0.10 | $0.33 |
| RTX 4090 | 1 | $0.27 | $0.50 |
| RTX 5090 | 1 | $0.37 | $0.63 |
| L40S | 1 | $0.47 | $0.80 |
| A100 SXM4 80GB | 1 | $0.35 | $0.84 |
Rent or buy?
Running this more than a few hours a day? Use the calculator to find the point where owning a H100 SXM beats renting one, including your electricity rate.
VRAM estimate: params (billions) x bytes per parameter x 1.2 overhead. Estimate only; real usage varies with context length, batch size and framework. Multi-GPU counts assume the model can be split across cards. Prices: Vast.ai marketplace pricing page, read Nov 16, 2026 (via markaicode.com/pricing/vast-ai-pricing).