Phi-4 14B VRAM Requirements

Phi-4 14B needs about 10.6 GB of VRAM at Q4_K_M with an 8K context: 8.3 GB for weights, 1.6 GB for the KV cache and 0.8 GB of runtime overhead. At Q8_0 it needs 16.9 GB and at full FP16 precision 29.7 GB. The smallest GPU that runs it fully is the Apple M4 16GB.

By Microsoft · Updated October 14, 2026 · Values from config.json on Hugging Face

10.6 GB VRAM

Phi-4 14B at Q4_K_M with 8K context and the KV cache in FP16.

  • Weights 8.3 GB
  • KV cache 1.6 GB
  • Runtime overhead 0.8 GB

Which GPUs can run it

Phi-4 14B VRAM by quantization

Total memory with an FP16 KV cache. "Smallest tier" is the smallest standard VRAM size with a 6% safety margin at 8K.

QuantizationBits/weightWeightsTotal at 8KTotal at 16KSmallest tier
Q4_K_M4.858.3 GB10.6 GB12.2 GB12 GB
Q5_K_M5.699.7 GB12.1 GB13.6 GB16 GB
Q6_K6.5911.3 GB13.6 GB15.2 GB16 GB
Q8_08.5014.5 GB16.9 GB18.4 GB20 GB
FP16 / BF1616.0027.4 GB29.7 GB31.3 GB32 GB
Q3_K_M3.916.7 GB9.0 GB10.6 GB10 GB
Q2_K3.005.1 GB7.5 GB9.0 GB8 GB

VRAM by context length

At Q4_K_M. The KV cache grows linearly with context: 0.20 GB per 1,000 tokens in FP16.

ContextKV cache (FP16)KV cache (Q8_0)Total, FP16 cacheTotal, Q8_0 cache
4K tokens0.8 GB0.4 GB9.9 GB9.5 GB
8K tokens1.6 GB0.8 GB10.6 GB9.9 GB
16K tokens3.1 GB1.7 GB12.2 GB10.7 GB

GPUs that can run Phi-4 14B

At Q4_K_M with 8K context. "Best quant" is the highest-quality format that fits fully; "max context" is at Q4_K_M.

GPUUsable memoryStatusBest quantMax contextSpeed
Apple M4 16GB10.7 GBTight fitIQ4_XS5K~8.0 tok/s
RTX 2080 Ti 11GB11.0 GBTight fitIQ4_XS6K~40 tok/s
RTX 2060 12GB12.0 GBFitsQ4_K_M11K~22 tok/s
RTX 3060 12GB12.0 GBFitsQ4_K_M11K~24 tok/s
Radeon RX 6700 XT 12GB12.0 GBFitsQ4_K_M11K~21 tok/s
Radeon RX 7700 XT 12GB12.0 GBFitsQ4_K_M11K~24 tok/s
Intel Arc B580 12GB12.0 GBFitsQ4_K_M11K~23 tok/s
RTX 4070 12GB12.0 GBFitsQ4_K_M11K~33 tok/s
RTX 4070 Super 12GB12.0 GBFitsQ4_K_M11K~33 tok/s
RTX 4070 Ti 12GB12.0 GBFitsQ4_K_M11K~33 tok/s
RTX 5070 12GB12.0 GBFitsQ4_K_M11K~44 tok/s
RTX 3080 12GB12.0 GBFitsQ4_K_M11K~59 tok/s
Apple M4 Pro 24GB16.0 GBFitsQ6_K16K~18 tok/s
RTX 4060 Ti 16GB16.0 GBFitsQ6_K16K~19 tok/s
RTX 3080 10GB10.0 GB88% on GPUQ3_K_M1K~22 tok/s
Intel Arc B570 10GB10.0 GB88% on GPUQ3_K_M1K~14 tok/s
RTX 3050 8GB8.0 GB71% on GPUQ2_K–~8.6 tok/s
RTX 3060 Ti 8GB8.0 GB71% on GPUQ2_K–~11 tok/s
RTX 3070 8GB8.0 GB71% on GPUQ2_K–~11 tok/s
RTX 3070 Ti 8GB8.0 GB71% on GPUQ2_K–~12 tok/s

About Phi-4 14B

A 14B dense model focused on reasoning and maths. Its 16K context limit keeps total memory predictable: Q4_K_M at full context needs about 12.2 GB, or 10.7 GB with a Q8_0 KV cache.

SpecValue
Parameters14.7B
Layers40
Hidden size5120
Attention heads / KV heads40 / 10
Head dimension128
Vocabulary100,352
Max context (used here)16K tokens
KV cache per token (FP16)200 KB
Released2024-12
LicenseMIT

Phi-4 14B VRAM: common questions

Does Phi-4 fit on a 12GB GPU?

Yes with a little tuning. At Q4_K_M it needs about 12.2 GB at its full 16K context, so on 12 GB use a Q8_0 KV cache (about 10.7 GB) or keep the context near 8K.

How much VRAM does Phi-4 14B need?

About 10.6 GB at Q4_K_M with an 8K context, 16.9 GB at Q8_0 and 29.7 GB at FP16. Longer contexts add 0.20 GB per 1,000 tokens with an FP16 cache.

What is the cheapest GPU that can run Phi-4 14B?

The smallest listed device that fits it fully at Q4_K_M with 8K context is the Apple M4 16GB (10.7 GB usable).

Related