Best GPU for Llama 3.1 8B Instruct

The smallest memory budget in our catalog that runs Llama 3.1 8B Instruct cleanly at 8,192 tokens is 22 GiB net, with BF16 (16.6 GiB–18.5 GiB total). Cards at that budget: GeForce RTX 3090 24GB, GeForce RTX 4090 24GB, Radeon RX 7900 XTX 24GB. The largest file, BF16, is comfortable from 30 GiB net: GeForce RTX 5090 32GB.

Which card, by net memory

Devices grouped by net memory budget, with the best Llama 3.1 8B Instruct file each can run at 8,192 tokens
Net budgetDevicesBest file that runsTotal at 8,192ResultSame file at 32,768
18 GiBRadeon RX 7900 XT 20GBBF1616.6 GiB–18.5 GiBTightNo
22 GiBGeForce RTX 3090 24GB, GeForce RTX 4090 24GB, Radeon RX 7900 XTX 24GBBF1616.6 GiB–18.5 GiBFitsTight
30 GiBGeForce RTX 5090 32GBBF1616.6 GiB–18.5 GiBComfortableFits

Rows start at the first budget where the smallest official file is at least tight and stop at the first where the largest file is comfortable. Devices in one row have the same net budget (capacity minus the catalog's default reserve), so they get the same verdict; choose between them on bandwidth, software support and price, which this page does not rank. llama.cpp, one sequence, fp16 KV cache, typical extras. Unified-memory devices use the reserve in their catalog record. "n/a" in the last column means the model's native window is shorter than 32,768 tokens.

Files this ranking uses

Official or catalog files for Llama 3.1 8B Instruct
FileWeightsSource repository
BF1614.96 GiB (16,060,556,376 bytes)meta-llama/Llama-3.1-8B-Instruct

Byte counts come from the repository file listings recorded on the model page. Memory estimates are formulas, not measurements on these cards. No speed figure is given: none was measured here.

Data sources

Related pages