Can It Run?
Home โ€บ Phi-4 14B โ€บ M3 Ultra 256GB

Can an M3 Ultra 256GB Mac run Phi-4 14B?

M3 Ultra ยท 256 GB unified memory ยท 819 GB/s ยท Mac Studio (M3 Ultra)

Yes โ€” Phi-4 14B runs on an M3 Ultra 256GB Mac.

At Q4_K_M it needs about 11.2 GiB, leaving 228.8 GiB spare out of the ~240.0 GiB macOS will let you use. Expect roughly 73 tokens/sec โ€” faster than you can read.

Weights
8.4 GiB
14.7B params @ Q4_K_M
KV cache
1.6 GiB
8K context, FP16
Overhead
1.2 GiB
runtime + activations
Total needed
11.2 GiB
of ~240.0 GiB usable
Est. speed
73 tok/s
819 GB/s bandwidth
Max context
16K tokens
at Q4_K_M

Where the memory goes

Three things occupy memory when a model is loaded: the weights themselves, the KV cache that holds the conversation, and the runtime's own working buffers. Only the first is fixed โ€” the KV cache grows with every token in your context.

QuantisationWeightsTotalTok/sFits?
FP1627.4 GiB31.1 GiB22Yes, comfortably
Q8_014.5 GiB17.6 GiB42Yes, comfortably
Q6_K11.3 GiB14.2 GiB54Yes, comfortably
Q5_K_M9.8 GiB12.6 GiB63Yes, comfortably
Q4_K_M8.4 GiB11.2 GiB73Yes, comfortably
Q3_K_M6.7 GiB9.4 GiB91Yes, comfortably
Q2_K5.1 GiB7.8 GiB119Yes, comfortably

The default. Best quality-per-gigabyte for most people.

How long a context fits

The KV cache is often what breaks a setup that looked fine at load time. Quantising it to 8-bit roughly halves its footprint with little measurable quality cost.

ContextKV cacheTotalFP16 KVQ8 KV
2K0.4 GiB9.8 GiBYes, comfortablyYes, comfortably
4K0.8 GiB10.2 GiBYes, comfortablyYes, comfortably
8K1.6 GiB11.2 GiBYes, comfortablyYes, comfortably
16K3.1 GiB13.0 GiBYes, comfortablyYes, comfortably

How to run it

Ollama is the shortest path. It picks a quantisation automatically โ€” usually Q4_K_M, which is what the numbers above assume.

brew install ollama
ollama serve &
ollama run phi4

For MLX โ€” Apple's own array framework, typically a little faster than llama.cpp on Apple Silicon:

pip install mlx-lm
mlx_lm.generate --model mlx-community/Phi-4-14B-4bit --prompt "Hello"

Macs that run Phi-4 14B comfortably

The smallest configuration that handles it is the M3 Pro 18GB (MacBook Pro 14" (M3 Pro)).

MacMemoryBandwidthTok/s
M3 Pro 18GB18 GB150 GB/s13
M2 24GB24 GB100 GB/s9
M4 24GB24 GB120 GB/s11
M4 Pro 24GB24 GB273 GB/s24
M1 Max 32GB32 GB400 GB/s36
M2 Max 32GB32 GB400 GB/s36
M4 32GB32 GB120 GB/s11
M3 Max 36GB36 GB300 GB/s27
M4 Max 36GB36 GB410 GB/s36
M4 Pro 48GB48 GB273 GB/s24
M4 Max 48GB48 GB546 GB/s49
M1 Max 64GB64 GB400 GB/s36

Common questions

Can an M3 Ultra 256GB Mac run Phi-4 14B?
Yes. At Q4_K_M it needs about 11.2 GiB of the roughly 240.0 GiB available, generating around 73 tokens per second.
How fast is Phi-4 14B on an Mac?
Around 73 tokens per second. Token generation on Apple Silicon is limited by memory bandwidth, and this machine has 819 GB/s.
How much memory does Phi-4 14B need?
8.4 GiB for the weights at Q4_K_M, plus 1.6 GiB for an 8K-token KV cache and about 1.2 GiB of runtime overhead โ€” 11.2 GiB in total.