Skip to content
Inference Academy

Phi-3 mini 3.8B hardware requirements

Phi-3 mini 3.8B (3.8B parameters) needs about 5.9 GiB of memory at 4-bit (Q4_K_M) and 10.9 GiB unquantised (F16), with a 8,192-token context. It runs fully in memory on 26 of the 26 devices we track. The smallest is NVIDIA RTX 3060 12GB with Q8_0.

Maximum context 4,096 tokens.

VRAM by quantization (8,192-token context)

QuantizationMemoryQuality
F1610.9 GiBUnquantized reference
Q8_07.5 GiBNear-lossless
Q6_K6.7 GiBVery close to F16
Q5_K_M6.3 GiBGreat quality/size
Q4_K_M5.9 GiBBest default for most
IQ4_XS5.6 GiBSmaller 4-bit (imatrix)
Q3_K_M5.5 GiBNoticeable loss
Q2_K5.2 GiBLast resort; big loss

Which GPUs and Macs can run Phi-3 mini 3.8B?

The best quantization that fits each device, with an estimated single-stream speed. Open a device for the full breakdown.

DeviceBest fitEst. speed
NVIDIA RTX 3060 12GBGPU · 12 GiB · 360 GB/sQ8_0 (fits)~32 tok/s
Intel Arc B580 12GBGPU · 12 GiB · 456 GB/sQ8_0 (fits)~41 tok/s
NVIDIA RTX 4070 12GBGPU · 12 GiB · 504 GB/sQ8_0 (fits)~45 tok/s
NVIDIA RTX 5070 12GBGPU · 12 GiB · 672 GB/sQ8_0 (fits)~60 tok/s
CPU only, dual-channel DDR4 (16GB)CPU only · 16 GiB · 45 GB/sF16 (fits)~3 tok/s
Apple M2 (16GB)Mac · 16 GiB · 100 GB/sQ8_0 (fits)~9 tok/s
Apple M4 (16GB)Mac · 16 GiB · 120 GB/sQ8_0 (fits)~11 tok/s
NVIDIA RTX 4060 Ti 16GBGPU · 16 GiB · 288 GB/sF16 (fits)~17 tok/s
NVIDIA RTX 5060 Ti 16GBGPU · 16 GiB · 448 GB/sF16 (fits)~27 tok/s
NVIDIA RTX 5070 Ti 16GBGPU · 16 GiB · 896 GB/sF16 (fits)~54 tok/s
NVIDIA RTX 5080 16GBGPU · 16 GiB · 960 GB/sF16 (fits)~57 tok/s
Apple M5 (24GB)Mac · 24 GiB · 153 GB/sF16 (fits)~9 tok/s
NVIDIA RTX 3090 24GBGPU · 24 GiB · 936 GB/sF16 (fits)~56 tok/s
AMD RX 7900 XTX 24GBGPU · 24 GiB · 960 GB/sF16 (fits)~57 tok/s
NVIDIA RTX 4090 24GBGPU · 24 GiB · 1008 GB/sF16 (fits)~60 tok/s
CPU only, dual-channel DDR5 (32GB)CPU only · 32 GiB · 80 GB/sF16 (fits)~5 tok/s
NVIDIA RTX 5090 32GBGPU · 32 GiB · 1792 GB/sF16 (fits)~107 tok/s
Apple M3 Pro (36GB)Mac · 36 GiB · 150 GB/sF16 (fits)~9 tok/s
Apple M4 Pro (48GB)Mac · 48 GiB · 273 GB/sF16 (fits)~16 tok/s
Apple M3 Max (64GB)Mac · 64 GiB · 400 GB/sF16 (fits)~24 tok/s
NVIDIA RTX PRO 6000 Blackwell 96GBGPU · 96 GiB · 1792 GB/sF16 (fits)~107 tok/s
AMD Ryzen AI Max+ 395 (128GB)Unified memory · 128 GiB · 256 GB/sF16 (fits)~15 tok/s
NVIDIA DGX Spark (128GB)Unified memory · 128 GiB · 273 GB/sF16 (fits)~16 tok/s
Apple M4 Max (128GB)Mac · 128 GiB · 546 GB/sF16 (fits)~33 tok/s
Apple M3 Ultra (192GB)Mac · 192 GiB · 819 GB/sF16 (fits)~49 tok/s
Apple M3 Ultra (512GB)Mac · 512 GiB · 819 GB/sF16 (fits)~49 tok/s

Free lessons · no sign-up

Get Phi-3 mini 3.8B running, and running fast

Free email course

Why your LLM runs at the speed it does

One short email a day for five days, each built on a free lesson, then the occasional new lesson or offer. Unsubscribe in one click.

Questions

How much VRAM does Phi-3 mini 3.8B need?
About 5.9 GiB at Q4_K_M, 7.5 GiB at Q8_0 and 10.9 GiB at F16, including a 8,192-token KV cache. The smallest common quant, Q2_K, needs about 5.2 GiB.
What is the smallest GPU or Mac that runs Phi-3 mini 3.8B?
NVIDIA RTX 3060 12GB, with Q8_0 at roughly 32 tokens/s.
Can Phi-3 mini 3.8B run on a Mac?
Yes. The smallest Mac we track that holds it is Apple M2 (16GB), with Q8_0 at roughly 9 tokens/s.
How fast does Phi-3 mini 3.8B run?
Speed depends mostly on memory bandwidth. Among the devices we track, the fastest single-stream estimate is about 107 tokens/s on NVIDIA RTX 5090 32GB with F16. These are bandwidth-based estimates; measure on your own machine.

How this is calculated

Memory is the weights (parameters × bits per weight ÷ 8) plus the KV cache for a 8,192-token context and runtime overhead. Speed is a bandwidth-bound estimate at 65% efficiency; real results vary by runtime, drivers and settings. Learn the maths in VRAM math and memory bandwidth, or set your own context and quant in the VRAM calculator.