Skip to main content

Can the RTX 4090 Run Llama 3.1 8B?

Runs

Yes. Llama 3.1 8B at Q4_K_M is a 4.9 GB download (Hugging Face file listing for bartowski/Meta-Llama-3.1-8B-Instruct-GGUF), and the RTX 4090 has 24 GB of VRAM, leaving about 19.1 GB for the KV cache and runtime. Published runs put generation at a median of 126 tokens per second across 6 cited measurements. Fastest cited run: llama.cpp GitHub.

Model file4.9 GBQ4_K_M
VRAM24 GBRTX 4090
Headroom19.1 GBafter weights
Median speed126 tok/s6 cited runs
Bandwidth ceiling~205 tok/s1008 GB/s ÷ 4.9 GB

Published runs for Llama 3.1 8B on the RTX 4090

GenerationQuantRuntimeContextSourceDate
165 tok/s Q4_K_M llama.cpp llama.cpp GitHublabelled "Llama 3.1 8B" 2024-08-22
131 tok/s Q4_K_XL llama.cpp 4K Hardware Cornerlabelled "llama3.1:8b" 2025-11-06
128 tok/s q4_K_M llama.cpp 1K XiongjieDai/GPU-Benchmarks-on-LLM-Inference (GitHub)labelled "llama3.1:8b" 2024-05-01
125 tok/s q4_K_M llama.cpp 4K MyAIHardwarelabelled "llama3.1:8b" 2025-05-01
113 tok/s q4_K_M llama.cpp 8K Awesome Agents LLM Leaderboardlabelled "llama3.1:8b" 2025-06-01
95.5 tok/s Q4_K_M ollama DatabaseMartlabelled "llama3.1:8b" 2025-01-01

More about this pair

How much VRAM does Llama 3.1 8B need?

The Q4_K_M file is 4.9 GB. Add roughly 1.5 GB for the runtime and an ~8K-token context, so about 6.4 GB of VRAM holds it comfortably. Longer contexts grow the KV cache and need more.

What is the fastest Llama 3.1 8B can generate on the RTX 4090?

Generation reads every weight once per token, so the RTX 4090's 1008 GB/s of memory bandwidth divided by the 4.9 GB file sets a ceiling near 205 tokens per second. Real runs land below it; SpecPicks rejects any published figure above it.

Check another pair

See the full matrix → · All RTX 4090 benchmarks →

Llama 3.1 8B on other GPUs

Other models on the RTX 4090

How the checks work

The fit is the Q4_K_M file size against the card's VRAM, with 1.5 GB kept for the runtime and an ~8K context. A published run counts only if the pair fits, the run is Q4-class, its source does not call it an estimate, it is under the bandwidth ceiling above, and it is not one figure pasted across many cards. The whole matrix is downloadable as a CSV under CC BY 4.0.

As an Amazon Associate, SpecPicks earns from qualifying purchases.

This page is editorial synthesis based on publicly available information. No independent first-party benchmarking is reported.