← CanIRunLocal · All hardware · All models

Can a RTX 4060 8GB run Code Llama 7B?

Yes. Code Llama 7B fits in fast memory on RTX 4060 8GB at Q5_K_M (5.7 GB needed, 7.5 GB usable), about 34 tok/s (estimate).

Hardware: RTX 4060 8GB · Model: Code Llama 7B

RTX 4060 8GB has 8 GB of VRAM and 272 GB/s of memory bandwidth. The checker holds back 0.5 GB of VRAM for the driver and assumes 16 GB of system RAM, so fast memory usable by Ollama is 7.5 GB. Partial offload may also use 60% of that system RAM. Code Llama 7B (6.74B, Meta) at Q5_K_M is a 4.8 GB download and needs 5.7 GB with headroom for about 8k tokens.

Best quantQ5_K_M
Download size4.8 GB
Memory needed5.7 GB
Usable fast memory7.5 GB
Fitfits in fast memory
Estimated speed~34 tok/s (estimate)
Commandollama run codellama:7b-instruct-q5_K_M
Open RTX 4060 8GB in the checker

Estimates, not benchmarks. Model sizes are ollama.com download sizes; memory needed adds headroom for ~8k tokens of context; speeds are rough figures from memory bandwidth. Data updated 2026-10-23.

A project by OnDevice Labs · llms.txt