Phi-4 14B VRAM requirements

한국어

Phi-4 14B has 14.66B parameters, 40 layers and 10 KV heads. Here is the VRAM it needs by quant and context length.

This is an estimate. Real usage will differ.

Weights and KV cache come from formulas. Runtime overhead is a flat 1 GiB guess. Actual use depends on your runtime and version. If it says tight, load it and check.

Model values checked 2026-11-11

VRAM (GiB) by quant and context length

QuantWeights2,0488,192
FP1627.328.729.9
Q8_014.515.917.1
Q6_K11.212.613.8
Q5_K_M9.711.112.3
Q4_K_M8.49.710.9
Q3_K_M6.88.29.4
Q2_K5.46.88.0

This is an estimate. Real usage depends on your runtime and version.

VRAM calculator

Result

Phi-4 14B Q4_K_M, 8,192 context: about 10.9 GiB needed.

Tight on the GeForce RTX 4070 (12 GB). Only about 1.1 GiB left.

  • Weights 8.4 GiB
  • KV cache 1.6 GiB
  • Runtime overhead 1.0 GiB (estimate)
  • With this model and quant, the GeForce RTX 4070 holds about 7,424 tokens of context.
  • At this context, the highest quant that fits the GeForce RTX 4070 is Q3_K_M.
  • Offloading some layers to CPU can make it run, but slower.

This is an estimate. Real usage depends on your runtime and version.

GPUs that fit Phi-4 14B Q4_K_M at 8,192 context

Model values used

Parameters
14,659,507,200
Layers
40
Attention heads
40
KV heads
10
Head dim
128 (Not in config, so it is hidden_size divided by the head count.)
Max context (config)
16,384
Read from
microsoft/phi-4

See this model per GPU