Yes. Llama 3.1 8B Instruct fits on the GeForce RTX 4090 at FP16: 19.3 GB needed against 22.8 GB of usable VRAM, so 3.5 GB to spare. FP16 is the top quant tracked here and it fits. With an FP16 KV cache, about 51,000 tokens of context fit beside the 16.1 GB of FP16 weights.
Can the GeForce RTX 4090 run Llama 3.1 8B Instruct?
Data updated . Last reviewed the same day, when this catalog snapshot was written.
Memory math
The GeForce RTX 4090 has 24.0 GB of dedicated VRAM on the card. The catalog counts 95% of it, 22.8 GB, as available for weights plus KV cache and leaves the other 1.2 GB out of the budget. A result under 2 GB of headroom is labeled tight.
Llama 3.1 8B Instruct stores 8.03B parameters. Against 22.8 GB usable, Q4 needs 6.0 GB (16.8 GB spare); Q8 needs 9.6 GB (13.2 GB spare); FP16 needs 19.3 GB (3.5 GB spare). FP16 is the highest of the three that fits. Q4 comes from Llama-3.1-8B-Instruct-Q4_K_M.gguf plus KV cache at 8K.
The Hub repo also has Q5_K_M (Llama-3.1-8B-Instruct-Q5_K_M.gguf, 6.8 GB with KV, 16.0 GB spare) and Q6_K (Llama-3.1-8B-Instruct-UD-Q6_K_XL.gguf, 8.4 GB with KV, 14.4 GB spare), between the catalog's Q4 and Q8 steps.
The GeForce RTX 4090
- NVIDIA GPU, released 2022. List price $1,599, about $70 per usable GB. NVIDIA launch MSRP.
- Memory bandwidth 1,008 GB/s: number 2 from the top of the 16 machines in the can-run list.
- Usable memory 22.8 GB: 5 of the 16 machines have more, and 2 others have exactly the same.
The eBay link is a search of used listings, not a price or a recommendation of a seller. RigFit may earn a commission from qualifying eBay purchases made through links on this site, at no extra cost to you. See the disclosure.
Llama 3.1 8B Instruct
- Llama family, dense, 8.03B parameters. License Llama 3.1 Community. The model card lists a 131,072-token context window. Hugging Face repo meta-llama/Llama-3.1-8B-Instruct.
- Sizes come from unsloth/Llama-3.1-8B-Instruct-GGUF: Q4_K_M Llama-3.1-8B-Instruct-Q4_K_M.gguf is 4.9 GB; Q5_K_M Llama-3.1-8B-Instruct-Q5_K_M.gguf is 5.7 GB; Q6_K Llama-3.1-8B-Instruct-UD-Q6_K_XL.gguf is 7.3 GB.
- The default local Llama. Q4 fits on 8GB. FP16 needs a 24GB card.
Quant ladder
| Quant | Estimate | Headroom | Est. tok/s | Verdict |
|---|---|---|---|---|
| Q4 | 6.0 GB | 16.8 GB | 205 tok/s | Yes |
| Q8 | 9.6 GB | 13.2 GB | 126 tok/s | Yes |
| FP16 | 19.3 GB | 3.5 GB | 62.8 tok/s | Yes |
- GGUF file size plus an FP16 KV-cache estimate at 8,192 tokens. The cache counts only the layers and heads named in the method on the About page.
- Formula estimate: parameter count × bytes per weight × 1.20. No GGUF file size is stored for this quant.
- Tokens/sec is an estimate, a bandwidth roofline: GB/s divided by active weight GB. It is not a measured generation speed, and it is blank for quants that do not fit.
Context length and KV cache
FP16 KV-cache estimate: 1.1 GB at 8,192 tokens and 4.3 GB at 32,768 tokens, about 131 KB per token (32 counted layers). GQA counts two tensors (K and V) for the stored KV heads and head dimension.
Context that fits in 22.8 GB usable VRAM, counting weights plus FP16 KV cache and nothing else (estimate: (usable - weight file) / KV per token, capped at the model's 131,072-token window): Q4: the model's full 131,072-token window; Q8: about 112,000 tokens; FP16: about 51,000 tokens.
Speed estimate
Llama 3.1 8B Instruct is dense: every one of its 8.03B parameters is used for each token, so the 16.1 GB of FP16 weights set both what must fit and what is read per token.
Estimate, not a benchmark and not from a cited run: 1,008 GB/s divided by 16.1 GB of weights read per token at FP16 is a ceiling of 62.8 tok/s. It ignores prompt processing, KV-cache reads, and software overhead, so real generation is slower.
Offload
The Q4 weights fit in usable VRAM, so this page does not assume a system-RAM offload.
Ollama
This command pulls the Q4_K_M file from unsloth/Llama-3.1-8B-Instruct-GGUF, the Hub repo whose file size is used above. It is not an official Ollama library tag.
ollama run hf.co/unsloth/Llama-3.1-8B-Instruct-GGUF:Q4_K_M
Nearby machines for Llama 3.1 8B Instruct
- Next machine up in memory: MacBook Pro 14-inch M4 Max 36GB (36.0 GB unified memory, 25.2 GB usable, 410 GB/s, list $3,199), 2.4 GB more usable than here. Yes at FP16, 5.9 GB spare. The best quant stays FP16.
- Next machine down in memory: GeForce RTX 4080 Super (16.0 GB VRAM, 15.2 GB usable, 736 GB/s, list $999), 7.6 GB less usable than here. Yes at Q8, 5.6 GB spare. The best quant drops from FP16 to Q8.
- Same 22.8 GB usable: GeForce RTX 3090 (24.0 GB VRAM, 22.8 GB usable, 936 GB/s, list $1,499). Yes at FP16, 3.5 GB spare; the fit is identical, so the difference is bandwidth, price, and platform. Its 936 GB/s against 1,008 GB/s here gives a bandwidth ceiling of 58.3 tok/s at FP16 versus 62.8 tok/s here (estimates).
- Same 22.8 GB usable: Radeon RX 7900 XTX (24.0 GB VRAM, 22.8 GB usable, 960 GB/s, list $999). Yes at FP16, 3.5 GB spare; the fit is identical, so the difference is bandwidth, price, and platform. Its 960 GB/s against 1,008 GB/s here gives a bandwidth ceiling of 59.8 tok/s at FP16 versus 62.8 tok/s here (estimates).
- Cheapest catalog device at Q4: GeForce RTX 5050 (7.6 GB usable, list $249).
Nearby models on the GeForce RTX 4090
- Next smaller model by Q4 size: SenseNova-Loop-9B (9.41B, Q4 5.6 GB) on the GeForce RTX 4090: Tight at FP16, 0.2 GB spare.
- Next larger model by Q4 size: Qwen3 8B (8.19B, Q4 6.2 GB) on the GeForce RTX 4090: Yes at FP16, 3.1 GB spare.
- Largest catalog model that still fits at Q4: Nanbeige4.3 33B (33.1B, Q4 22.5 GB): Tight at Q4, 0.3 GB spare.
All hardware for Llama 3.1 8B Instruct · All models for the GeForce RTX 4090
Questions
- How much memory does Llama 3.1 8B Instruct need at Q4?
- The Q4 figure used here is 6.0 GB, from Llama-3.1-8B-Instruct-Q4_K_M.gguf plus KV cache at 8K. GGUF file size plus an FP16 KV-cache estimate at 8,192 tokens. The cache counts only the layers and heads named in the method on the About page.
- Can the GeForce RTX 4090 run Llama 3.1 8B Instruct?
- Yes. Llama 3.1 8B Instruct fits on the GeForce RTX 4090 at FP16: 19.3 GB needed against 22.8 GB of usable VRAM, so 3.5 GB to spare. FP16 is the top quant tracked here and it fits. With an FP16 KV cache, about 51,000 tokens of context fit beside the 16.1 GB of FP16 weights.
- How much context fits when Llama 3.1 8B Instruct runs on the GeForce RTX 4090?
- Context that fits in 22.8 GB usable VRAM, counting weights plus FP16 KV cache and nothing else (estimate: (usable - weight file) / KV per token, capped at the model's 131,072-token window): Q4: the model's full 131,072-token window; Q8: about 112,000 tokens; FP16: about 51,000 tokens.
- How fast is Llama 3.1 8B Instruct on the GeForce RTX 4090, as a bandwidth estimate?
- Estimate, not a benchmark and not from a cited run: 1,008 GB/s divided by 16.1 GB of weights read per token at FP16 is a ceiling of 62.8 tok/s. It ignores prompt processing, KV-cache reads, and software overhead, so real generation is slower.
- What is the cheapest catalog device that runs Llama 3.1 8B Instruct at Q4?
- GeForce RTX 5050, list price $249, with 7.6 GB usable.
- What changes with the next machine up from the GeForce RTX 4090?
- MacBook Pro 14-inch M4 Max 36GB (36.0 GB unified memory, 25.2 GB usable, 410 GB/s, list $3,199), 2.4 GB more usable than here. Yes at FP16, 5.9 GB spare. The best quant stays FP16.