meta-llama · text

Llama-3.1-70B

meta-llama/Llama-3.1-70B

Llama-3.1-70B at Q4_K_M is exactly 42,520,392,992 bytes (39.60 GiB / 42.52 GB) — an effective 4.821 bits per weight, not the nominal 4. Its KV cache at 32K is 10.00 GiB.

From the file· summed from 1 file(s)From the file· KV from mirror (mirror:unsloth/Llama-3.1-70B)
Parameters
70.6B
Architecture
llama
80 layers
Context
131,072
native (config.json)
License
llama3

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S14.29 GiB15,343,483,2961.740mradermacher
IQ1_S14.29 GiB15,343,487,9681.740ThomasBaruzier
I1-IQ1_M15.60 GiB16,751,196,5761.899mradermacher
IQ1_M15.60 GiB16,751,201,2481.899ThomasBaruzier
I1-IQ2_XXS17.79 GiB19,097,385,3762.165mradermacher
IQ2_XXS17.79 GiB19,097,390,0482.165ThomasBaruzier
I1-IQ2_XS19.69 GiB21,142,108,5762.397mradermacher
IQ2_XS19.69 GiB21,142,113,2482.397ThomasBaruzier
I1-IQ2_S20.71 GiB22,242,343,3282.522mradermacher
IQ2_S20.71 GiB22,242,348,0002.522ThomasBaruzier
I1-IQ2_M22.46 GiB24,119,294,3682.735mradermacher
IQ2_M22.46 GiB24,119,299,0402.735ThomasBaruzier
Q2_K_S22.79 GiB24,471,948,2562.775ThomasBaruzier
I1-Q2_K24.56 GiB26,375,109,0242.991mradermacher
Q2_K24.56 GiB26,375,113,6962.991ThomasBaruzier
I1-IQ3_XXS25.58 GiB27,469,494,6883.115mradermacher
IQ3_XXS25.58 GiB27,469,499,3603.115ThomasBaruzier
I1-IQ3_XS27.29 GiB29,307,730,3363.323mradermacher
IQ3_XS27.29 GiB29,307,735,0083.323ThomasBaruzier
Q3_K_S28.79 GiB30,912,050,4643.505NousResearch
I1-Q3_K_S28.79 GiB30,912,051,6163.505mradermacher
I1-IQ3_S28.79 GiB30,912,051,6163.505mradermacher
IQ3_S28.79 GiB30,912,056,2883.505ThomasBaruzier
Q3_K_S28.79 GiB30,912,056,2883.505ThomasBaruzier
I1-IQ3_M29.74 GiB31,937,034,6563.621mradermacher
IQ3_M29.74 GiB31,937,039,3283.621ThomasBaruzier
Q3_K_M31.91 GiB34,267,493,6643.885NousResearch
I1-Q3_K_M31.91 GiB34,267,494,8163.886mradermacher
Q3_K_M31.91 GiB34,267,499,4883.886ThomasBaruzier
Q3_K_L34.59 GiB37,140,591,9044.211NousResearch
I1-Q3_K_L34.59 GiB37,140,593,0564.211mradermacher
Q3_K_L34.59 GiB37,140,597,7284.211ThomasBaruzier
I1-IQ4_XS35.30 GiB37,902,662,0484.298mradermacher
IQ4_XS35.30 GiB37,902,666,7204.298ThomasBaruzier
IQ4_NL37.30 GiB40,053,623,7764.542ThomasBaruzier
I1-Q4_037.36 GiB40,116,533,6644.549mradermacher
Q4_037.36 GiB40,116,538,3364.549ThomasBaruzier
Q4_K_S37.58 GiB40,347,219,2324.575NousResearch
I1-Q4_K_S37.58 GiB40,347,220,3844.575mradermacher
Q4_K_S37.58 GiB40,347,225,0564.575ThomasBaruzier

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0961.25 GiB1.25 GiB80 / 0 / 0
8,1922.50 GiB2.50 GiB80 / 0 / 0
16,3845.00 GiB5.00 GiB80 / 0 / 0
32,76810.00 GiB10.00 GiB80 / 0 / 0
65,53620.00 GiB20.00 GiB80 / 0 / 0
131,07240.00 GiB40.00 GiB80 / 0 / 0

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 36.96 GiB. The real file is 39.60 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from mirror:unsloth/Llama-3.1-70B
Layers
80
Attention heads
64
KV heads
8
Head dim
128
Hidden size
8192
Vocab
128,256
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Llama-3.1-70B need?
Q4_K_M is exactly 42,520,392,992 bytes (39.60 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Llama-3.1-70B's KV cache?
10.00 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of Llama-3.1-70B should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.