CheckerWhat fits my GPU?ModelsWhat to buyEmbeddingsData & methodSubmitAPISponsor

Can I run Llama 2 7B locally?

Llama 2 7B has 6.74 billion parameters (Hugging Face). At the popular Q4_K_M quantization it needs roughly 7.0 GB of GPU memory ESTIMATE. It has been on Hugging Face since 2023-07-13. This is an older model; see the current list for newer options.

Memory needed by quantization

QuantWeightsTotal needed (est.)
IQ1_S1.3 GB4.1 GB
IQ2_XXS1.7 GB4.6 GB
IQ2_M2.3 GB5.1 GB
Q2_K2.7 GB5.6 GB
IQ3_XXS2.6 GB5.5 GB
Q3_K_S3.1 GB6.0 GB
IQ3_M3.1 GB6.0 GB
Q3_K_M3.4 GB6.3 GB
IQ4_XS3.6 GB6.5 GB
Q4_03.8 GB6.7 GB
Q4_K_M4.1 GB7.0 GB
MXFP43.9 GB6.8 GB
Q5_K_M4.8 GB7.8 GB
Q6_K5.5 GB8.5 GB
Q8_07.2 GB10.3 GB
F1613.5 GB16.9 GB

KV cache by context length ESTIMATE

Contextf16q8_0q4_0
4k2.15 GB1.14 GB0.60 GB

From config.json: 32 KV-caching attention layers, 32 KV heads × 128 head dim. Max context 4k. The tables above assume 4k context.

Which GPUs and Macs can run it?

HardwareMemoryQ4_K_MQ8_0F16
RTX 509032 GB✅✅✅
RTX 508016 GB✅✅❌
RTX 5070 Ti16 GB✅✅❌
RTX 507012 GB✅✅❌
RTX 5060 Ti 16GB16 GB✅✅❌
RTX 5060 Ti 8GB8 GB✅❌❌
RTX 50608 GB✅❌❌
RTX 50508 GB✅❌❌
RTX 409024 GB✅✅✅
RTX 4080 Super16 GB✅✅❌
RTX 408016 GB✅✅❌
RTX 4070 Ti Super16 GB✅✅❌
RTX 4070 Ti12 GB✅✅❌
RTX 4070 Super12 GB✅✅❌
RTX 407012 GB✅✅❌
RTX 4060 Ti 16GB16 GB✅✅❌
RTX 4060 Ti 8GB8 GB✅❌❌
RTX 40608 GB✅❌❌
RTX 3090 Ti24 GB✅✅✅
RTX 309024 GB✅✅✅
RTX 3080 Ti12 GB✅✅❌
RTX 3080 12GB12 GB✅✅❌
RTX 3080 10GB10 GB✅❌❌
RTX 3070 Ti8 GB✅❌❌
RTX 30708 GB✅❌❌
RTX 3060 Ti8 GB✅❌❌
RTX 3060 12GB12 GB✅✅❌
RTX 3060 8GB8 GB✅❌❌
RTX 3050 8GB8 GB✅❌❌
RTX 3050 6GB6 GB❌❌❌
RTX 2080 Ti11 GB✅⚠️ tight❌
RTX 2080 Super8 GB✅❌❌
RTX 20808 GB✅❌❌
RTX 2070 Super8 GB✅❌❌
RTX 20708 GB✅❌❌
RTX 2060 Super8 GB✅❌❌
RTX 2060 6GB6 GB❌❌❌
RTX 2060 12GB12 GB✅✅❌
GTX 1080 Ti11 GB✅⚠️ tight❌
GTX 1660 Super6 GB❌❌❌
RTX 5090 Laptop24 GB✅✅✅
RTX 4090 Laptop16 GB✅✅❌
RTX PRO 6000 Blackwell96 GB✅✅✅
RTX 6000 Ada48 GB✅✅✅
RTX A600048 GB✅✅✅
RTX A500024 GB✅✅✅
RTX A400016 GB✅✅❌
Tesla P4024 GB✅✅✅
DGX Spark (GB10)128 GB✅✅✅
Radeon RX 9070 XT16 GB✅✅❌
Radeon RX 907016 GB✅✅❌
Radeon RX 9060 XT 16GB16 GB✅✅❌
Radeon RX 9060 XT 8GB8 GB✅❌❌
Radeon RX 7900 XTX24 GB✅✅✅
Radeon RX 7900 XT20 GB✅✅✅
Radeon RX 7900 GRE16 GB✅✅❌
Radeon RX 7800 XT16 GB✅✅❌
Radeon RX 7700 XT12 GB✅✅❌
Radeon RX 7600 XT16 GB✅✅❌
Radeon RX 76008 GB✅❌❌
Radeon RX 6950 XT16 GB✅✅❌
Radeon RX 6900 XT16 GB✅✅❌
Radeon RX 6800 XT16 GB✅✅❌
Radeon RX 680016 GB✅✅❌
Radeon RX 6750 XT12 GB✅✅❌
Radeon RX 6700 XT12 GB✅✅❌
Radeon RX 6650 XT8 GB✅❌❌
Radeon RX 6600 XT8 GB✅❌❌
Radeon RX 66008 GB✅❌❌
Radeon AI Pro R970032 GB✅✅✅
Intel Arc B58012 GB✅✅❌
Intel Arc B57010 GB✅❌❌
Intel Arc A770 16GB16 GB✅✅❌
Intel Arc A770 8GB8 GB✅❌❌
Intel Arc A7508 GB✅❌❌
Intel Arc Pro B6024 GB✅✅✅
GTX 16504 GB❌❌❌
GTX 1650 Super4 GB❌❌❌
GTX 1650 Laptop4 GB❌❌❌
GTX 1050 Ti4 GB❌❌❌
RTX 3050 Laptop 4GB4 GB❌❌❌
RTX 2050 Laptop4 GB❌❌❌
Quadro T10004 GB❌❌❌
RX 6500 XT 4GB4 GB❌❌❌
RX 64004 GB❌❌❌
Intel Arc A3806 GB❌❌❌
Apple M1 (16 GB)16 GB✅⚠️ tight❌
Apple M1 Pro (16 GB)16 GB✅⚠️ tight❌
Apple M1 Pro (32 GB)32 GB✅✅✅
Apple M1 Max (32 GB)32 GB✅✅✅
Apple M1 Max (64 GB)64 GB✅✅✅
Apple M1 Ultra (64 GB)64 GB✅✅✅
Apple M1 Ultra (128 GB)128 GB✅✅✅
Apple M2 (16 GB)16 GB✅⚠️ tight❌
Apple M2 (24 GB)24 GB✅✅❌
Apple M2 Pro (16 GB)16 GB✅⚠️ tight❌
Apple M2 Pro (32 GB)32 GB✅✅✅
Apple M2 Max (32 GB)32 GB✅✅✅
Apple M2 Max (64 GB)64 GB✅✅✅
Apple M2 Max (96 GB)96 GB✅✅✅
Apple M2 Ultra (64 GB)64 GB✅✅✅
Apple M2 Ultra (128 GB)128 GB✅✅✅
Apple M2 Ultra (192 GB)192 GB✅✅✅
Apple M3 (16 GB)16 GB✅⚠️ tight❌
Apple M3 (24 GB)24 GB✅✅❌
Apple M3 Pro (36 GB)36 GB✅✅✅
Apple M3 Max (36 GB)36 GB✅✅✅
Apple M3 Max (48 GB)48 GB✅✅✅
Apple M3 Max (64 GB)64 GB✅✅✅
Apple M3 Max (96 GB)96 GB✅✅✅
Apple M3 Max (128 GB)128 GB✅✅✅
Apple M3 Ultra (96 GB)96 GB✅✅✅
Apple M3 Ultra (256 GB)256 GB✅✅✅
Apple M3 Ultra (512 GB)512 GB✅✅✅
Apple M4 (16 GB)16 GB✅⚠️ tight❌
Apple M4 (24 GB)24 GB✅✅❌
Apple M4 (32 GB)32 GB✅✅✅
Apple M4 Pro (24 GB)24 GB✅✅❌
Apple M4 Pro (48 GB)48 GB✅✅✅
Apple M4 Pro (64 GB)64 GB✅✅✅
Apple M4 Max (36 GB)36 GB✅✅✅
Apple M4 Max (48 GB)48 GB✅✅✅
Apple M4 Max (64 GB)64 GB✅✅✅
Apple M4 Max (128 GB)128 GB✅✅✅
Apple M5 (16 GB)16 GB✅⚠️ tight❌
Apple M5 (24 GB)24 GB✅✅❌
Apple M5 (32 GB)32 GB✅✅✅
Apple M5 Pro (24 GB)24 GB✅✅❌
Apple M5 Pro (48 GB)48 GB✅✅✅
Apple M5 Pro (64 GB)64 GB✅✅✅
Apple M5 Max (36 GB)36 GB✅✅✅
Apple M5 Max (48 GB)48 GB✅✅✅
Apple M5 Max (64 GB)64 GB✅✅✅
Apple M5 Max (128 GB)128 GB✅✅✅
AMD Ryzen AI Max+ 395 Strix Halo 32GB (Linux, ~24 GB for GPU) · Radeon 8060S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a24 GB✅✅✅
AMD Ryzen AI Max+ 395 Strix Halo 32GB (Windows, ~24 GB for GPU) · Radeon 8060S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a24 GB✅✅✅
AMD Ryzen AI Max+ 395 Strix Halo 64GB (Linux, ~56 GB for GPU) · Radeon 8060S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a56 GB✅✅✅
AMD Ryzen AI Max+ 395 Strix Halo 64GB (Windows, ~48 GB for GPU) · Radeon 8060S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a48 GB✅✅✅
AMD Ryzen AI Max+ 395 Strix Halo 96GB (Linux, ~88 GB for GPU) · Radeon 8060S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a88 GB✅✅✅
AMD Ryzen AI Max+ 395 Strix Halo 96GB (Windows, ~72 GB for GPU) · Radeon 8060S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a72 GB✅✅✅
AMD Ryzen AI Max+ 395 Strix Halo 128GB (Linux, ~120 GB for GPU) · Radeon 8060S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a120 GB✅✅✅
AMD Ryzen AI Max+ 395 Strix Halo 128GB (Windows, ~96 GB for GPU) · Radeon 8060S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a96 GB✅✅✅
AMD Ryzen AI Max 390/385 Strix Halo 32GB (Linux, ~24 GB for GPU) · Radeon 8050S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a24 GB✅✅✅
AMD Ryzen AI Max 390/385 Strix Halo 32GB (Windows, ~24 GB for GPU) · Radeon 8050S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a24 GB✅✅✅
AMD Ryzen AI Max 390/385 Strix Halo 64GB (Linux, ~56 GB for GPU) · Radeon 8050S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a56 GB✅✅✅
AMD Ryzen AI Max 390/385 Strix Halo 64GB (Windows, ~48 GB for GPU) · Radeon 8050S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a48 GB✅✅✅
AMD Ryzen AI Max 390/385 Strix Halo 128GB (Linux, ~120 GB for GPU) · Radeon 8050S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a120 GB✅✅✅
AMD Ryzen AI Max 390/385 Strix Halo 128GB (Windows, ~96 GB for GPU) · Radeon 8050S · Framework Desktop / GMKtec EVO-X2 / HP Z2 Mini G1a96 GB✅✅✅

✅ fits · ⚠️ fits with little headroom · ❌ doesn't fit on this one device (multiple GPUs or RAM offload may work; check your setup). Apple Silicon assumes macOS lets the GPU use ~67–75% of unified memory. All fit verdicts are estimates.

Get the weekly "new models & what it takes to run them" email

Free. One email a week. Unsubscribe anytime.