Models › Llama 2 7B

Llama 2 7B: VRAM needs and speed by GPU

At Q4_K_M, Llama 2 7B needs about 5.1 GB of VRAM. We have 491 measured speed results for it.

6.74B parameters · license: llama2 · GGUF files on Hugging Face

Measured speeds

HardwareGenerate
tok/s
Prompt
tok/s
QuantBackendTestSource
NVIDIA RTX 509030014,970Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 509029014,073Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX PRO 6000 Blackwell28116,619Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA H100 SXM28111,263Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX PRO 6000 Blackwell27414,855Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 509027411,796Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA H100 SXM2689,918Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 509026410,382Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Instinct MI300X23311,476Q4_0ROCm FA offtg128llama.cpp #15021 details
AMD Instinct MI300X21911,946Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA A100 80GB PCIe2015,286Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 50801928,055Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 4090 D19212,507Q4_0CUDA FA ontg128llama.cpp #15013 details
AMD Radeon RX 7900 XTX1913,890Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA A100 80GB PCIe1914,850Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 409019010,830Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 4090 D18910,294Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 409018914,771Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 40901889,452Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 409018611,993Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 50801857,445Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 50801859,488Q4_0CUDA FA ontg128llama.cpp #15013 details
AMD Radeon RX 7900 XTX1833,727Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 5070 Ti1828,420Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 50801828,297Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 6000 Ada17910,577Q4_0CUDA FA ontg128llama.cpp #15013 details
Apple M5 Ultra (80-core GPU)1794,945Q4_0Metal FA offtg128llama.cpp #4167 details
NVIDIA RTX 5070 Ti1776,952Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 5070 Ti1767,568Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 6000 Ada1769,229Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 3090 Ti1726,924Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 30901725,201Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 3090 Ti1716,567Q4_0CUDA FA offtg128llama.cpp #15013 details
Nvidia A1001717,064Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon RX 7900 XTX1703,874Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA RTX PRO 4500 Blackwell1697,252Q4_0CUDA FA ontg128llama.cpp #15013 details
AMD Radeon RX 7900 XTX1673,552Q4_0ROCm FA offtg128llama.cpp #15021 details
NVIDIA RTX 30901644,666Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 30901625,560Q4_0CUDA FA ontg128llama.cpp #15013 details
Nvidia A1001616,390Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 30901585,175Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 5090 Laptop1587,642Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 5090 Laptop1566,667Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 5090 Laptop1546,011Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA L4015410,098Q4_0CUDA FA ontg128llama.cpp #15013 details
AMD Radeon AI PRO R97001535,908Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA L401528,870Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 4080 SUPER1508,007Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 5090 Laptop1495,546Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 4080 SUPER1488,125Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 4080 SUPER1479,439Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 4080 SUPER1477,101Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 30801464,914Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon AI PRO R97001465,610Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX A60001455,662Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 40801439,206Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 40801428,032Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA Tesla V100 32GB1421,411Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX A50001404,071Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 30801405,570Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX A50001403,642Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 30801405,014Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 30801394,287Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX A60001394,914Q4_0CUDA FA offtg128llama.cpp #15013 details
AMD Radeon RX 9070 XT1375,036Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX PRO 4000 Blackwell1365,674Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX A50001364,552Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 4070 Ti SUPER1366,801Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 5070 Ti1366,214Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA Tesla V100 32GB1352,974Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 4070 Ti SUPER1337,612Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 4070 Ti SUPER1326,925Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA A301323,069Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX PRO 4000 Blackwell1324,993Q4_0CUDA FA offtg128llama.cpp #15013 details
AMD Radeon RX 9070 XT1325,048Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Instinct MI2101302,572Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA RTX A50001304,028Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA Tesla V100 32GB1301,391Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 4070 Ti SUPER1296,099Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA Tesla V100 32GB1293,043Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 50701285,783Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX 50701285,185Q4_0CUDA FA offtg128llama.cpp #15013 details
AMD Radeon Pro W79001273,473Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA A401265,256Q4_0CUDA FA ontg128llama.cpp #15013 details
AMD Radeon RX 7800 XT1252,197Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA A301252,767Q4_0CUDA FA offtg128llama.cpp #15013 details
AMD Instinct MI2101252,486Q4_0ROCm FA offtg128llama.cpp #15021 details
NVIDIA A401244,609Q4_0CUDA FA offtg128llama.cpp #15013 details
AMD Radeon RX 7900 XT1232,942Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Radeon Pro W79001213,213Q4_0ROCm FA offtg128llama.cpp #15021 details
AMD Radeon RX 7900 XT1212,701Q4_0Vulkan FA ontg128llama.cpp #10879 details
Apple M5 Max (40-core GPU)1203,220Q4_0Metal FA offtg128llama.cpp #4167 details
AMD Radeon RX 90701203,164Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Radeon RX 90701202,860Q4_0Vulkan FA ontg128llama.cpp #10879 details
Apple M5 Ultra (80-core GPU)1194,911Q8_0Metal FA offtg128llama.cpp #4167 details
AMD Radeon RX 7800 XT1182,017Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Instinct MI501181,127Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA A301173,158Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon RX 7900 XT1163,098Q4_0ROCm FA offtg128llama.cpp #15021 details
AMD Radeon RX 7900 GRE1162,336Q4_0Vulkan FA offtg128llama.cpp #10879 details
Apple M3 Ultra1161,117Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Radeon RX 90701152,453Q4_0ROCm FA ontg128llama.cpp #15021 details
AMD Radeon RX 90701142,382Q4_0ROCm FA offtg128llama.cpp #15021 details
Intel Arc Pro B701143,151Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 4070 Ti1145,515Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon RX 7900 XT1123,262Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA TITAN V1122,481Q4_0CUDA FA ontg128llama.cpp #15013 details
Intel Arc Pro B701123,379Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 4070 SUPER1125,199Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA A301113,291Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Radeon VII1111,007Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 4070 Ti1114,981Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Radeon RX 7900 GRE1102,251Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Instinct MI1001102,733Q4_0ROCm FA offtg128llama.cpp #15021 details
NVIDIA TITAN V109793Q4_0Vulkan FA ontg128llama.cpp #10879 details
NVIDIA RTX 2080 Ti1093,108Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA TITAN V1092,617Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA RTX 4070 SUPER1094,608Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Instinct MI501091,120Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Radeon Pro VII108784Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon RX 6900 XT1081,901Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 2080 Ti1082,891Q4_0CUDA FA offtg128llama.cpp #15013 details
AMD Radeon RX 68001061,598Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon RX 6900 XT1061,762Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon Pro VII106912Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Instinct MI501061,129Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA TITAN V105796Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Instinct MI1001052,755Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA Quadro RTX 60001043,054Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA Quadro RTX 80001043,052Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA RTX A45001033,453Q4_0CUDA FA ontg128llama.cpp #15013 details
NVIDIA Quadro RTX 60001032,751Q4_0CUDA FA offtg128llama.cpp #15013 details
NVIDIA Quadro RTX 80001032,710Q4_0CUDA FA offtg128llama.cpp #15013 details
AMD Radeon RX 68001011,594Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Radeon RX 9070 XT1015,055Q4_0ROCm FA offtg128llama.cpp #15021 details
AMD Radeon VII1011,059Q4_0Vulkan FA offtg128llama.cpp #10879 details
NVIDIA RTX 2080 Ti1011,936Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon RX 7800 XT1012,152Q4_0ROCm FA offtg128llama.cpp #15021 details
AMD Radeon RX 6800 XT1001,705Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon RX 6800 XT1001,753Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Radeon Pro W6800X Duo100795Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Instinct MI5099.01,057Q4_0ROCm FA offtg128llama.cpp #15021 details
AMD Radeon AI PRO R970098.04,773Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA RTX 2080 Ti97.61,888Q4_0Vulkan FA offtg128llama.cpp #10879 details
AMD Radeon RX 7900 GRE97.51,599Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA RTX A450097.32,827Q4_0CUDA FA offtg128llama.cpp #15013 details
AMD Radeon RX 9070 XT97.34,904Q4_0ROCm FA ontg128llama.cpp #15021 details
NVIDIA RTX 5060 Ti97.03,913Q4_0Vulkan FA ontg128llama.cpp #10879 details
AMD Radeon RX 7900 GRE96.11,457Q4_0ROCm FA offtg128llama.cpp #15021 details
AMD Radeon RX 7800 XT96.02,305Q4_0ROCm FA ontg128llama.cpp #15021 details

Memory needed per quantization

QuantFile sizeNeeds (estimate)Smallest card it fits
Q2_K2.8 GB3.8 GB8 GB cards
Q3_K_S2.9 GB3.9 GB8 GB cards
Q3_K_M3.3 GB4.3 GB8 GB cards
Q3_K_L3.6 GB4.6 GB8 GB cards
Q4_03.8 GB4.8 GB8 GB cards
Q4_K_S3.9 GB4.8 GB8 GB cards
Q4_K_M4.1 GB5.1 GB8 GB cards
Q5_04.7 GB5.6 GB8 GB cards
Q5_K_S4.7 GB5.6 GB8 GB cards
Q5_K_M4.8 GB5.8 GB8 GB cards
Q6_K5.5 GB6.5 GB8 GB cards
Q8_07.2 GB8.1 GB12 GB cards
F1613.5 GB14.4 GB16 GB cards

Expected speed on popular hardware

HardwareBest quant that fitsExpected tok/s
NVIDIA RTX 3060Q8_043.0 estimate
NVIDIA RTX 4060 TiQ6_K44.3 estimate
NVIDIA RTX 3090Q8_091.6 estimate
NVIDIA RTX 4090Q8_0101 estimate
NVIDIA RTX 5090Q8_0160 estimate
AMD Radeon RX 7900 XTXQ8_0102 estimate
Apple M4 Pro (20-core GPU) (64 GB)Q8_032.3 estimate
Apple M3 Max (40-core GPU) (64 GB)Q8_047.2 estimate
AMD Ryzen AI Max+ 395 (Radeon 8060S)Q8_029.0 estimate

Check your own card

Too big for your card?

Run Llama 2 7B on a rented 24-80 GB GPU by the hour.

Rent a bigger GPU on RunPod

Affiliate link: if you sign up, RigBench may earn a referral credit. It never affects rankings or numbers.