Card × model estimate

Llama 3.1 405B on RTX 4090 Q4_K_M

too tight

On an RTX 4090 (24 GB), Llama 3.1 405B in Q4_K_M needs about 230,3 Go of video memory: too tight, part of the model would have to be offloaded to system memory (much slower).

Not measured yet: the figures below are estimates, computed from the models already measured on this card. Measure my card

—

Generation (estimated)

≥ 230,3 Go

Recommended VRAM (24 GB avail.)

—

Power (ref. model)

—

Electricity / M tokens · 0,25 €/kWh

No speed estimate: the model does not fit in video memory, part of it would spill into system memory and speed would collapse (often below 5 tok/s).

What about a longer context?

ContextKV cacheEstimated VRAMFits in 24 GB?Estimated speed
4 0962,0 Go231,3 Gono—
8 1923,9 Go233,3 Gono—
16 3847,9 Go237,2 Gono—
32 76815,8 Go245,1 Gono—
65 53631,5 Go260,8 Gono—
131 07263,0 Go292,3 Gono—

Estimated VRAM = file + KV cache (full-attention layers, f16) + ~0,5 Go of buffers, excluding memory used by the system — hence the slightly higher “recommended VRAM”, which keeps that margin. Speed ≈ estimated speed × weights read ÷ (weights read + added KV cache).

Llama 3.1 405B on other cards

too tight
Llama 3.1 405B pageRTX 4090 pageFeel the speed Download the GGUF (228,8 Go)

Estimates based on real measurements of other models on this card and on the model's public data (Meta Llama). As soon as a measurement exists, this page shows the real figures.