// Model Hardware Sizing Benchmark

Phi-4 14B Reasoning GPU VRAM & Cluster Sizing Guide

First-principles GPU memory breakdown for Phi-4 14B Reasoning (Dense Transformer (14.7B parameters), 40 layers, Grouped-Query Attention (10 KV heads × 128d), up to 16K context)—covering weight quantization, KV-cache concurrency math, and GPU topology fit. All figures are estimates from public model-card parameters.

Customize Phi-4 14B Reasoning in Interactive Calculator → Local GGUF & Apple Silicon Sizer

32K Context Peak VRAM Summary (1 Active Sequence)

FP8 E4M3 Recommended 20.4 GB 1x RTX 4090 (24GB)
INT4 AWQ / GPTQ 12.6 GB 1x RTX 4090 (24GB)
BF16 / FP16 Unquantized 38.9 GB 1x NVIDIA L40S (48GB)
FP8 KV-Cache per 1K Tokens 100.0 MB 40 layers × 10 KV heads × 128d (per sequence)
Phi-4 14B Reasoning VRAM Allocation Across Precision, Context & Concurrency (Click column headers to sort)
Minimum Cloud GPU
INT4 AWQ / GPTQ @ 8K (1x)7.7 GB0.78 GB10.3 GB1x RTX 4090 (24GB)$542/mo
INT4 AWQ / GPTQ @ 32K (4x)7.7 GB12.50 GB22.0 GB1x RTX 4090 (24GB)$542/mo
FP8 E4M3 (Production) @ 8K (1x)15.4 GB0.78 GB18.0 GB1x RTX 4090 (24GB)$542/mo
FP8 E4M3 (Production) @ 32K (4x)15.4 GB12.50 GB29.7 GB1x RTX 5090 (32GB)$717/mo
FP8 E4M3 (Long Context) @ 16K (8x)15.4 GB12.50 GB29.7 GB1x RTX 5090 (32GB)$717/mo
BF16 / FP16 (Unquantized) @ 8K (1x)30.9 GB1.56 GB34.2 GB1x NVIDIA L40S (48GB)$915/mo
BF16 / FP16 (Production) @ 32K (4x)30.9 GB25.00 GB57.7 GB1x NVIDIA A100 (80GB)$1,383/mo

Production vLLM Deployment Command (Phi-4 14B Reasoning FP8)

The baseline configuration below launches microsoft/phi-4 across 1x RTX 4090 (24GB) (TP=1) with chunked prefill enabled to bound Time-To-First-Token (TTFT) spikes under concurrent load:

Bash • vLLM OpenAI-Compatible Server Export SGLang / Docker / K8s →
python3 -m vllm.entrypoints.openai.api_server \
  --model microsoft/phi-4 \
  --tensor-parallel-size 1 \
  --max-model-len 16384 \
  --quantization fp8 \
  --gpu-memory-utilization 0.93 \
  --enable-chunked-prefill \
  --port 8000

Architectural Sizing Notes & FAQ

How is KV-Cache calculated for Phi-4 14B Reasoning?

Phi-4 14B Reasoning uses 40 transformer layers with Grouped-Query Attention (10 KV heads × 128d). In FP8 (1 byte/element) at 32,768 tokens for a single sequence, weights occupy 15.4 GB, the KV-cache consumes 3.12 GB, and CUDA runtime workspace reserves 1.8 GB—totaling 20.4 GB.

Can Phi-4 14B Reasoning run on a single GPU?

At a 32K context with one sequence, INT4 AWQ/GPTQ weights bring the estimate down to 12.6 GB, which maps to 1x RTX 4090 (24GB). FP8 needs 20.4 GB (1x RTX 4090 (24GB)). Each additional concurrent 32K sequence adds about 3.12 GB of FP8 KV-cache. The GPU hourly rates used for the monthly column are illustrative on-demand figures, not quotes.

Explore Other Open-Weights Hardware Guides

DeepGen Command Palette

Copied!