Skip to main content

Lab · LLM VRAM · Phi

Computed

Phi-4 14B memory requirements

14.7B parameters — 27.3 GiB of weights at FP16, 8.4 GiB at Q4_K_M, and 200.0 KiB of KV cache per token on top. Solved against 22 real accelerators; 21 of them can hold it.

Parameters

14.7B

14,659,507,200 exactly

Weights, Q4_K_M

8.4 GiB

27.3 GiB unquantized

KV cache

200.0 KiB

per token · 40L × 10 KV × 128

Smallest card (Q4)

12 GB

GeForce RTX 3060 12GB

Weights at each precision

PrecisionBits/weightWeightsSourceNotes
FP16 / BF1616.0027.3 GiBmeasured fileUnquantized. Two bytes per parameter, exactly.
Q8_08.5014.5 GiBmeasured fileEffectively lossless; the usual reference point for quantized quality.
Q6_K6.5711.2 GiBmeasured fileQuality loss is hard to measure on most benchmarks.
Q5_K_M5.799.9 GiBmeasured fileA middle point when Q4 fits with too little room for context.
Q4_K_M4.948.4 GiBmeasured fileThe default choice for local inference — the best size/quality knee.
Q3_K_M4.026.9 GiBmeasured fileMeasurable quality loss. Worth it only to make a model fit at all.

Every accelerator

Largest quant that fits with at least 4k of context, the context it leaves, and the bandwidth ceiling on decode speed. Each row links to the worked page for that pairing.

AcceleratorMemoryBandwidthBest quantMax contextCeiling
Apple M3 Ultra (512GB)512 GB819 GB/sFP16 / BF1616,38426 tok/s
H200 141GB (SXM)141 GB4800 GB/sFP16 / BF1616,384155 tok/s
Apple M4 Max (128GB)128 GB546 GB/sFP16 / BF1616,38418 tok/s
H100 80GB (SXM5)80 GB3350 GB/sFP16 / BF1616,384108 tok/s
A100 80GB (SXM)80 GB2039 GB/sFP16 / BF1616,38466 tok/s
Jetson AGX Orin (64GB)64 GB204.8 GB/sFP16 / BF1616,3847 tok/s
RTX 6000 Ada Generation48 GB960 GB/sFP16 / BF1616,38431 tok/s
L40S48 GB864 GB/sFP16 / BF1616,38428 tok/s
Apple M4 Pro (48GB)48 GB273 GB/sFP16 / BF1616,3849 tok/s
A100 40GB (SXM)40 GB1555 GB/sFP16 / BF1616,38450 tok/s
GeForce RTX 509032 GB1792 GB/sFP16 / BF1611,19058 tok/s
GeForce RTX 409024 GB1008 GB/sQ8_016,38458 tok/s
Radeon RX 7900 XTX24 GB960 GB/sQ8_016,38456 tok/s
GeForce RTX 309024 GB936 GB/sQ8_016,38454 tok/s
Apple M4 (24GB)24 GB120 GB/sQ8_016,3847 tok/s
GeForce RTX 508016 GB960 GB/sQ6_K16,38470 tok/s
GeForce RTX 5070 Ti16 GB896 GB/sQ6_K16,38465 tok/s
GeForce RTX 4080 SUPER16 GB736 GB/sQ6_K16,38454 tok/s
GeForce RTX 4070 Ti SUPER16 GB672 GB/sQ6_K16,38449 tok/s
GeForce RTX 4060 Ti 16GB16 GB288 GB/sQ6_K16,38421 tok/s
GeForce RTX 3060 12GB12 GB360 GB/sQ5_K_M6,10330 tok/s
Jetson Orin Nano Super (8GB)8 GB102 GB/sno fit

Questions about this model

How much VRAM does Phi-4 14B need?

27.3 GiB for the weights at FP16 and 8.4 GiB at Q4_K_M, from an exact count of 14,659,507,200 parameters. On top of that, the KV cache costs 200.0 KiB per token of context — 1.6 GiB at 8k and 6.3 GiB at 32k.

What is the smallest GPU that runs Phi-4 14B?

Of the 22 accelerators here, the smallest that holds Q4_K_M weights is the GeForce RTX 3060 12GB at 12 GB — 8.4 GiB of weights against 11.0 GiB usable, leaving room for 13k tokens. For unquantized weights you need at least a GeForce RTX 5090.

Why is the KV cache for Phi-4 14B the size it is?

Because it stores one key and one value vector per token, per layer: 40 layers × 10 KV heads × 128 dimensions × 2 (K and V) × 2 bytes = 200.0 KiB per token. Grouped-query attention shares those 10 KV heads across 40 query heads, cutting the cache by 4× against multi-head attention. None of this can be read off the parameter count.

Compare with

Method and limits. The parameter count and every architecture figure on this page are read from the model's own published config and the Hub's index over its tensor shapes, fetched 2026-08-07 — nothing here is recalled from a model's name. Weight bytes are the size of a real published file wherever one exists and the parameter count times the published llama.cpp bits-per-weight where it does not; every row says which. Speed figures are roofline bounds — memory bandwidth divided by bytes read per token — not benchmarks. Nothing on this page is written by a language model.