PerGB

Cheapest GPUs to run Llama 3.1 405B locally

Llama 3.1 405B needs about 250 GB of VRAM at Q4 with an 8K-token context (435 GB at Q8). The cheapest way to hold it right now: 4 × A16 for $9,171, about 1.6–2.4 tokens/s.

The cheapest setups right now

Live on eBay
SetupVRAMSpeed (est.)Price nowPowerSoftware
4 × A16256 GB1.7 GB spare1.6–2.4 tokens/s$9,171the 4 cheapest listings1,000 WCUDA 11.1 and newer
4 × Instinct MI210256 GB1.7 GB spare2.3–4.0 tokens/s$15,249the 4 cheapest listings1,200 WROCm (on AMD's support list)
4 × RTX PRO 5000 Blackwell 72 GB288 GB33.7 GB spare2.7–4.1 tokens/s$37,244the 4 cheapest listings1,200 WCUDA 12.8 and newer
3 × RTX PRO 6000 Blackwell288 GB34.7 GB spare3.6–5.5 tokens/s$43,480the 3 cheapest listings1,800 Wover a 15 A circuitCUDA 12.8 and newer
4 × A100 PCIe 80 GB320 GB65.7 GB spare3.9–5.9 tokens/s$55,498the 4 cheapest listings1,200 WCUDA 11.0 and newer
2 × H200 NVL282 GB29.7 GB spare9.8–15 tokens/s$92,300the 2 cheapest listings1,200 WCUDA 11.8 and newer
3 × H100 NVL282 GB28.7 GB spare7.9–12 tokens/s$107,599the 3 cheapest listings1,200 WCUDA 11.8 and newer
4 × H100 PCIe320 GB65.7 GB spare4.1–6.1 tokens/s$156,612the 4 cheapest listings1,400 Wover a 15 A circuitCUDA 11.8 and newer

A set of cards is priced at that many of the cheapest live listings, shipping included. Speed: an estimate from memory bandwidth for one user chatting, within a third either way.

How it works

The memory a model needs is its weights at the quantisation you pick, plus the attention cache for the context and a little for working buffers. Q4 is what most people run at home, close to full quality at a third of the size. Each card keeps about 1 GB for itself, so two 24 GB cards hold 46 GB.

Writing each token reads every active weight once, so the speed is about the memory bandwidth divided by the model's size, times what the software gets out of the card (less off CUDA). Cards sharing a model layer by layer take turns, so a set runs about as fast as one card would. Treat it as a rough figure for one person chatting; a long prompt takes longer to read in.

Power is the cards' rated power. Over about 1,440 W with the rest of the PC, a set needs more than one 15 A circuit (or a 240 V one), and older cards often need a power cable adapter, which each card's page mentions.