LocalLLMBench

Can you run Llama 70B on a 24 GB graphics card?

By Local AI Math. Updated 1 December 2026.

Short answer. Not at a normal quantization. The Q4_K_M file of Llama 3.3 70B is 42.52 GB, close to twice what an RTX 4090 or RTX 3090 holds. Only the 2-bit files fit entirely on a 24 GB card: IQ2_XXS (19.10 GB) with about 4,000 to 8,000 tokens of context, or IQ2_XS (21.14 GB) with about 4,000, and both are tight. Run Q4_K_M with part of it in system RAM instead and the speed ceiling falls to under 4 tokens per second.

Every figure below comes from the same arithmetic as the VRAM calculator, checked by hand, using the real file sizes of the GGUF downloads. The steps to reproduce each one in the calculator are given as we go.

What the 24 GB has to hold

Three things share the card: the weights, the key/value cache for your context, and the runtime's own working memory. The weights are the file. One widely used set of Llama 3.3 70B GGUF files lists these sizes (checked 30 November 2026):

LevelFile sizeBits per weight
IQ2_XXS19.10 GB2.18
IQ2_XS21.14 GB2.42
IQ2_S22.24 GB2.54
IQ2_M24.12 GB2.76
Q2_K26.38 GB3.01
Q3_K_M34.27 GB3.92
Q4_K_M42.52 GB4.86

The bits per weight column is the file size × 8 ÷ 70, the number to type into the calculator's bits-per-weight field. Llama 3.1 70B and 3.3 70B share the same layout in Meta's reference list: 80 layers, 64 attention heads, 8 key/value heads, hidden size 8,192. So the file sizes and the cache figures here apply to either.

That layout sets the cache at 2 × 80 × 8 × 128 × 2 = 327,680 bytes per token with a 16-bit cache. In round numbers:

Add 1 GB for the runtime and keep 0.5 GB free for the desktop, which leaves 23.5 GB for the model. If the same card drives two or three monitors, the desktop may take more than that; a card with no display attached gets closest to the full 24 GB.

Which files fit entirely on the card

At 4,096 tokens of context with a 16-bit cache:

LevelTotalAgainst 23.5 GB
IQ2_XXS21.44 GBtight
IQ2_XS23.48 GBtight, 0.02 GB spare
IQ2_S24.58 GBdoes not fit
IQ2_M26.46 GBdoes not fit
Q2_K28.72 GBdoes not fit
Q3_K_M36.61 GBdoes not fit
Q4_K_M44.86 GBdoes not fit

"Tight" means it fits, but with less than 10% of usable memory spare. IQ2_XS at 4,096 tokens is tight in the most literal sense: 20 MB to spare is inside the error of any estimate, so treat it as a coin toss until you load it.

A lower-precision cache buys a little room. With an 8-bit cache, which llama.cpp offers through its --cache-type-k and --cache-type-v options, the cache halves:

So the practical ceiling for a 70B model fully on one 24 GB card is about 8,000 tokens of context at roughly 2.2 bits per weight. That is short. A long document or a chat that runs for an hour will not fit in it.

Try it in the calculator: pick "Llama 3.1 70B" in the model list (this sets 70 billion parameters and the exact cache cost of 0.33 GB per 1,000 tokens), type 2.18 into bits per weight, set the context to 4,096 tokens, choose "Graphics card VRAM" and 24 GB. It shows 21.4 GB of 23.5 GB: tight. Change bits per weight to 4.86 and the context to 8,192 tokens, and it reports that the model does not fit and that about 46% of the weights would.

What 2 bits per weight costs you

At about 2.2 bits per weight each parameter keeps far less of its original value than at 4.85, and the output drifts further from the full model. How much that matters depends on the task: short factual answers often hold up better than careful reasoning or code. There is no single quality score that answers this for your use, so compare it yourself. A fair comparison is a smaller model at a normal level on the same card. Qwen2.5 32B at Q4_K_M with 8,192 tokens needs about 22.85 GB, which is tight on 24 GB, and Qwen2.5 14B at Q5_K_M leaves plenty of room. Ask all three the same ten questions from your own work before you settle on the 2-bit 70B.

Offloading Q4_K_M: how fast is it?

The other route is to load a better quantization and leave the layers that do not fit in system RAM. llama.cpp and the tools built on it do this with the --n-gpu-layers setting. With Q4_K_M at 8,192 tokens, 23.5 − 2.68 − 1 = 19.82 GB is left on the card for weights, so 19.82 of 42.52 GB, about 47%, sits in VRAM and the remaining 22.70 GB in RAM.

Generating a token means reading every weight once, and for a single user that reading speed sets the ceiling. The RTX 4090's memory bandwidth is 1,008 GB/s according to NVIDIA's Ada architecture paper. Dual-channel DDR5-5600 system memory moves at most 5,600 million transfers per second × 8 bytes × 2 channels = 89.6 GB/s.

Card: 19.82 GB ÷ 1,008 GB/s19.7 ms
RAM: 22.70 GB ÷ 89.6 GB/s253.3 ms
Per token, best case273.0 ms, 3.7 tokens/s

That is a ceiling. Real systems reach only part of their theoretical bandwidth, so expect less. With dual-channel DDR4-3200 (51.2 GB/s) the same split gives at most 2.2 tokens per second. Q3_K_M improves things only a little: 58% fits on the card and the ceiling rises to about 5.5 tokens per second. The RAM half dominates in every case, which is why the offload maths deserves its own page: how much slower a local LLM runs with CPU offload.

For comparison, IQ2_XS read entirely from VRAM has a ceiling of 1,008 ÷ 21.14 = about 48 tokens per second. That is the trade on one 24 GB card: about 13 times the speed ceiling for a much rougher quantization.

Routes that run 70B at Q4_K_M properly

Two 24 GB cards

Two cards give 48 GB, about 47 GB usable. Q4_K_M at 8,192 tokens needs 46.20 GB: tight. Each card also needs its own runtime buffers, so the margin is thinner than the sum suggests. Q3_K_M at 8,192 tokens needs 37.95 GB and fits comfortably. Enter 48 GB in the calculator to check your own combination.

A Mac with 64 GB or more of unified memory

Apple silicon lets the GPU use most, but not all, of the Mac's memory. On a 64 GB Mac the default limit is about 48 GiB, roughly 51.5 GB, and Q4_K_M at 8,192 tokens (46.20 GB) fits under it. Speed follows the chip's bandwidth: Apple lists 307 GB/s for the current M5 Pro and 614 GB/s for the 40-core M5 Max (checked 30 November 2026), which puts the ceiling for a 42.52 GB file at about 7 and 14 tokens per second. The details, including how to raise the limit, are in how much of a Mac's unified memory a local LLM can use.

A shorter context is not the fix

Cutting the context from 8,192 to 2,048 tokens saves 2 GB. At that length Q4_K_M is still about 21 GB over. Context matters when you are close to the line, as the 2-bit rows show, but it cannot close a gap of this size. For what longer contexts cost, see how much VRAM a 128K context uses.

The verdict for one 24 GB card

If you want 70B weights and can live with about 2 bits per weight and a few thousand tokens of context, IQ2_XXS runs fully on the card at usable speed. If you want Q4_K_M quality, one 24 GB card plus system RAM runs it at single-digit tokens per second at best, which is fine for a batch job overnight and slow for chat. Everything here is an estimate from file sizes and published specs, not a benchmark; your runtime version and settings move the numbers. Put your own figures into the calculator, and record what you measure in its benchmark log.