← CanIRunLocal · All hardware · All models

Can a RTX 4090 24GB run Code Llama 7B?

Yes. Code Llama 7B fits in fast memory on RTX 4090 24GB at Q8_0 (8.1 GB needed, 23.5 GB usable), about 84 tok/s (estimate).

Hardware: RTX 4090 24GB · Model: Code Llama 7B

RTX 4090 24GB has 24 GB of VRAM and 1008 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 23.5 GB. Partial offload may also use 60% of that system RAM. Code Llama 7B (6.74B, Meta) at Q8_0 is a 7.2 GB download and needs 8.1 GB with headroom for about 8k tokens.

Best quantQ8_0
Download size7.2 GB
Memory needed8.1 GB
Usable fast memory23.5 GB
Fitfits in fast memory
Estimated speed~84 tok/s (estimate)
Commandollama run codellama:7b-instruct-q8_0
Open RTX 4090 24GB 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