MODEL ARCHITECTURE SPEC • MICROSOFT14.7B Dense

Microsoft Phi-4 14B VRAM & inference speed

14.7B Total ParamsDense Architecture40 Layers • 10 KV Heads16K Default Ctx (Max 128K)Ollama: phi4:14b

Accurate memory requirements, KV cache footprint, and tokens/sec generation benchmarks for running Microsoft Phi-4 14B across local GPUs, Apple Silicon Macs, and cloud instances.

⚡ TIGHT FIT13.24 GB (95%)~7 t/s

Target Hardware & Model

interactive
High-accuracy mathematical and scientific reasoning on 16GB GPUs
Microsoft Phi-4 14B on Apple MacBook Pro/Air (16GB Unified Memory)

⚡ Tight Fit — Runs 100% on GPU (Low Headroom)

⚡ TIGHT FIT
Required VRAM
13.24 GB
95% of hardware capacity (14 GB)
Est. Decode Speed
~7 tok/s
Dense model @ 100 GB/s
Available Headroom
+0.76 GB
Tight margin — close background apps
Memory Allocation & Headroom
13.24 GB allocated of 14 GB capacity
95% utilized
Weights: 8.82 GB
KV: (32K): 3.36 GB
Overhead: 1.06 GB
Free Headroom: +0.76 GB
⚡ Architecture & Throughput Transparency: Single-user decode speed (~7 tok/s) is memory-bandwidth bound at batch size = 1 on Apple MacBook Pro/Air (16GB Unified Memory) (100 GB/s). Prompt prefill / TTFT (~102 tok/s) is compute-bound and utilizes GPU Tensor cores. Actual latency varies with FlashAttention-2 and runtime engine (Ollama/vLLM/llama.cpp).

Quantization Precision Matrix

32K ctx • KV: Q8_0
QuantizationWeightsKV CacheTotal VRAMEst. SpeedFit Status
FP1616 bpw29.4 GB3.36 GB34.54 GB (247%)0 t/sOOM
Q8_08.5 bpw15.58 GB3.36 GB20.24 GB (145%)0 t/sOOM
Q6_K6.56 bpw12.05 GB3.36 GB16.58 GB (118%)~1 t/sPARTIAL
Q5_K_M5.68 bpw10.44 GB3.36 GB14.92 GB (107%)~1 t/sPARTIAL
Q4_K_M4.8 bpw8.82 GB3.36 GB13.24 GB (95%)~7 t/sFITS
FP44.25 bpw7.79 GB3.36 GB12.17 GB (87%)~7 t/sFITS
IQ3_XS3.3 bpw6.03 GB3.36 GB10.35 GB (74%)~9 t/sFITS

Export Full Architecture & Infrastructure Spec

Get an executive-ready PDF report with exact memory math, hardware benchmarks, and cost comparisons.

Hardware Compatibility Matrix for Microsoft Phi-4 14B

Standard Q4_K_M precision with 32K context window and Q8_0 KV cache

20 Systems Benchmarked
Hardware SystemVRAM EnvelopeRequired VRAMHeadroomEst. Decode SpeedCompatibilityTest Fit
NVIDIA GeForce RTX 5090 (32GB GDDR7)
Consumer GPU • 1792 GB/s
32 GB13.24 GB+18.76 GB~126 tok/s✓ FITSTest Fit →
NVIDIA GeForce RTX 4090 (24GB GDDR6X)
Consumer GPU • 1008 GB/s
24 GB13.24 GB+10.76 GB~71 tok/s✓ FITSTest Fit →
2x NVIDIA RTX 3090 Dual Rig (48GB Total VRAM)
Multi-GPU Rig • 936 GB/s
48 GB13.24 GB+34.76 GB~60 tok/s✓ FITSTest Fit →
NVIDIA GeForce RTX 5080 (16GB GDDR7)
Consumer GPU • 960 GB/s
16 GB13.24 GB+2.76 GB~68 tok/s✓ FITSTest Fit →
NVIDIA RTX 4070 Ti Super (16GB)
Consumer GPU • 672 GB/s
16 GB13.24 GB+2.76 GB~47 tok/s✓ FITSTest Fit →
NVIDIA GeForce RTX 3060 (12GB)
Consumer GPU • 360 GB/s
12 GB13.24 GB-1.24 GB~5 tok/s⚡ PARTIALTest Fit →
Apple MacBook Pro/Air M1 (8GB Unified Memory)
Apple Silicon • 68 GB/s
7 GB13.24 GB-6.24 GB0 (OOM)✕ OOMTest Fit →
Apple MacBook Pro/Air (16GB Unified Memory)
Apple Silicon • 100 GB/s
14 GB13.24 GB+0.76 GB~7 tok/s⚡ TIGHT FITTest Fit →
Apple Mac Mini M4 Pro (64GB Unified Memory)
Apple Silicon • 273 GB/s
54 GB13.24 GB+40.76 GB~18 tok/s✓ FITSTest Fit →
Apple Mac Studio M4 Max (128GB Unified Memory)
Apple Silicon • 546 GB/s
112 GB13.24 GB+98.76 GB~36 tok/s✓ FITSTest Fit →
Apple Mac Studio M5 Ultra (256GB Unified Memory)
Apple Silicon • 890 GB/s
236 GB13.24 GB+222.76 GB~59 tok/s✓ FITSTest Fit →
AMD Strix Halo Mini-PC (Ryzen AI Max+ 395 128GB)
Unified APU / Mini-PC • 256 GB/s
110 GB13.24 GB+96.76 GB~15 tok/s✓ FITSTest Fit →
NVIDIA DGX Spark (128GB Grace-Blackwell Unified)
AI Appliance • 273 GB/s
118 GB13.24 GB+104.76 GB~19 tok/s✓ FITSTest Fit →
NVIDIA H100 SXM (80GB HBM3 Cloud GPU)
Datacenter Cloud GPU • 3350 GB/s
80 GB13.24 GB+66.76 GB~250 tok/s✓ FITSTest Fit →
NVIDIA GeForce RTX 5070 Ti (16GB GDDR7)
Consumer GPU • 896 GB/s
16 GB13.24 GB+2.76 GB~63 tok/s✓ FITSTest Fit →
NVIDIA GeForce RTX 5070 (12GB GDDR7)
Consumer GPU • 672 GB/s
12 GB13.24 GB-1.24 GB~10 tok/s⚡ PARTIALTest Fit →
NVIDIA GeForce RTX 4080 Super (16GB GDDR6X)
Consumer GPU • 736 GB/s
16 GB13.24 GB+2.76 GB~52 tok/s✓ FITSTest Fit →
AMD Radeon RX 7900 XTX (24GB GDDR6)
Consumer GPU • 960 GB/s
24 GB13.24 GB+10.76 GB~58 tok/s✓ FITSTest Fit →
AMD Radeon RX 7900 XT (20GB GDDR6)
Consumer GPU • 800 GB/s
20 GB13.24 GB+6.76 GB~48 tok/s✓ FITSTest Fit →
Apple Mac Studio M2 Ultra (192GB Unified Memory)
Apple Silicon Workstation • 800 GB/s
144 GB13.24 GB+130.76 GB~54 tok/s✓ FITSTest Fit →