fireworks-ai · text

llama-3-firefunction-v2

fireworks-ai/llama-3-firefunction-v2

llama-3-firefunction-v2 at Q4_K_M is exactly 42,520,396,416 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 per layer
Parameters
70.6B
Architecture
llama
80 layers
Context
8,192
native (config.json)
License
llama3

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S14.29 GiB15,343,485,5681.740MaziyarPanahi
IQ1_M15.60 GiB16,751,198,8481.899MaziyarPanahi
IQ2_XS19.69 GiB21,142,110,8482.397MaziyarPanahi
Q2_K24.56 GiB26,375,111,2962.991MaziyarPanahi
IQ3_XS27.29 GiB29,307,732,6083.323MaziyarPanahi
Q3_K_S28.79 GiB30,912,053,8883.505MaziyarPanahi
Q3_K_M31.91 GiB34,267,497,0883.886723MaziyarPanahi
Q3_K_L34.59 GiB37,140,595,3284.211MaziyarPanahi
IQ4_XS35.30 GiB37,902,664,3204.298723MaziyarPanahi
Q4_K_S37.58 GiB40,347,222,6564.575MaziyarPanahi
Q4_K_M39.60 GiB42,520,396,4164.821723MaziyarPanahi
Q5_K_S45.32 GiB48,657,449,6005.517MaziyarPanahi
Q5_K_M46.52 GiB49,949,819,5205.664723MaziyarPanahi
Q6_K6 shards53.91 GiB57,888,146,7526.564MaziyarPanahi
Q8_06 shards69.83 GiB74,975,053,1208.501MaziyarPanahi

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 config.json
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-firefunction-v2 need?
Q4_K_M is exactly 42,520,396,416 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-firefunction-v2'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-firefunction-v2 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.