Phi-4 14B

14.7B parameters · 16k context · mit · released 2024-12-11

chatreasoning

In short

The cheapest hardware in Canada that runs Phi-4 14B fully in memory at 32k context is the AMD Radeon RX 7900 XT, $1,437 at Amazon, at about 24 tok/s (estimated).

Updated . Speeds are estimates; how they are worked out.

Cheapest way to run it in Canada today

AMD Radeon RX 7900 XT, new at Amazon

Runs Phi-4 14B at Q6_K fully in memory at 32k context, about 24 tok/sest.

$1,437

In stock, checked

What to run it on in Canada

Fully in memory at 32k context, priced at retailers today.

All hardware that runs it

Everything we price, best value first. Two cards split the model by layers.

HardwareQuantFitsDecodePricetok/s per 1,000
AMD Radeon RX 7900 XTQ6_Kfits24 tok/s$1,43716.3
AMD Radeon RX 7900 XTXQ8_0fits24 tok/s$2,04111.6
Intel Arc Pro B60Q8_0fits10 tok/s$2,0794.9
NVIDIA GeForce RTX 3090 TiQ8_0fits28 tok/s$2,50011.2
NVIDIA RTX PRO 4000 BlackwellQ8_0fits19 tok/s$2,8106.7
AMD Radeon AI PRO R9700Q8_0fits16 tok/s$2,8695.5
NVIDIA GeForce RTX 3090Q8_0fits26 tok/s$3,3007.9
Intel Arc Pro B70Q8_0fits14 tok/s$4,0883.3
AMD Radeon PRO W7900Q8_0fits21 tok/s$4,9004.3
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ8_0fits6 tok/s$5,2891.2
NVIDIA RTX PRO 4500 BlackwellQ8_0fits25 tok/s$6,5993.8
ASUS Ascent GX10 128GBQ8_0fits8 tok/s$8,5000.9
NVIDIA GeForce RTX 4090Q8_0fits28 tok/s$9,1603.1
NVIDIA DGX Spark 128GBQ8_0fits8 tok/s$11,1500.7
NVIDIA RTX A6000Q8_0fits21 tok/s$11,4781.9
NVIDIA GeForce RTX 5090Q8_0fits50 tok/s$12,3004.0
NVIDIA RTX PRO 5000 Blackwell 48GBQ8_0fits37 tok/s$13,4372.8
NVIDIA RTX 6000 Ada GenerationQ8_0fits27 tok/s$15,1361.8
NVIDIA RTX PRO 5000 Blackwell 72GBQ8_0fits37 tok/s$20,6501.8
Mac Studio M3 Ultra 512GBQ8_0fits24 tok/s$28,0000.9
Mac Studio M4 Max 128GBQ8_0fits16 tok/s––
Mac mini M4 Pro 64GBQ8_0fits8 tok/s––
Framework Desktop Ryzen AI Max+ 395 128GBQ8_0fits6 tok/s––
Mac Studio M3 Ultra 256GBQ8_0fits24 tok/s––
Mac mini M4 Pro 48GBQ8_0fits8 tok/s––
Mac Studio M4 Max 64GBQ8_0fits16 tok/s––
Mac Studio M3 Ultra 96GBQ8_0fits24 tok/s––
NVIDIA RTX PRO 6000 BlackwellQ8_0fits50 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ8_0fits6 tok/s––
Mac mini M4 32GBQ6_Kfits4 tok/s––
NVIDIA Tesla P40Q8_0fits10 tok/s––
NVIDIA RTX PRO 4000 Blackwell SFF EditionQ8_0fits12 tok/s––
Minisforum MS-S1 Max Ryzen AI Max+ 395 128GBQ8_0fits6 tok/s––
Lenovo ThinkStation PGX GB10 128GBQ8_0fits8 tok/s––
Dell Pro Max with GB10 128GBQ8_0fits8 tok/s––
Beelink GTR9 Pro Ryzen AI Max+ 395 128GBQ8_0fits6 tok/s––
NVIDIA GeForce RTX 3060 12GBQ4_K_Moffload8 tok/s$56313.5
NVIDIA GeForce RTX 5050Q4_K_Moffload5 tok/s$5708.9
NVIDIA GeForce RTX 5060 Ti 8GBQ4_K_Moffload5 tok/s$5909.2
NVIDIA GeForce RTX 5060Q4_K_Moffload5 tok/s$6088.9
NVIDIA GeForce RTX 4060Q4_K_Moffload5 tok/s$6757.4
Intel Arc B570Q4_K_Moffload6 tok/s$8017.2
NVIDIA GeForce RTX 3080 10GBQ4_K_Moffload7 tok/s$8608.4
NVIDIA GeForce RTX 4060 Ti 8GBQ4_K_Moffload5 tok/s$8645.8
AMD Radeon RX 9060 XT 16GBQ4_K_Moffload11 tok/s$87012.3
NVIDIA GeForce RTX 5060 Ti 16GBQ4_K_Moffload18 tok/s$1,13015.7
NVIDIA RTX PRO 2000 BlackwellQ4_K_Moffload11 tok/s$1,1499.9
AMD Radeon RX 9070Q4_K_Moffload20 tok/s$1,20016.8
NVIDIA GeForce RTX 5070Q4_K_Moffload9 tok/s$1,2067.7
AMD Radeon RX 9070 XTQ4_K_Moffload20 tok/s$1,28515.6
NVIDIA GeForce RTX 4070Q4_K_Moffload9 tok/s$1,3006.6
AMD Radeon RX 7800 XTQ4_K_Moffload20 tok/s$1,42213.9
AMD Radeon RX 7600 XTQ4_K_Moffload10 tok/s$1,4456.7
NVIDIA GeForce RTX 5070 TiQ4_K_Moffload35 tok/s$1,89018.6
NVIDIA GeForce RTX 4070 SuperQ4_K_Moffload9 tok/s$2,0964.1
NVIDIA GeForce RTX 4080 SuperQ4_K_Moffload29 tok/s$2,50011.6
NVIDIA GeForce RTX 5080Q4_K_Moffload38 tok/s$2,99912.6
NVIDIA GeForce RTX 4060 Ti 16GBQ4_K_Moffload11 tok/s––
NVIDIA GeForce RTX 4070 Ti SuperQ4_K_Moffload27 tok/s––
Intel Arc B580Q4_K_Moffload7 tok/s––
Intel Arc A770 16GBQ4_K_Moffload16 tok/s––
Intel Arc Pro B50Q4_K_Moffload7 tok/s––

1 other card or machine we price cannot hold it at this context.

Memory needed

Weights, KV cache and runtime buffers at each context length (KV cache at fp16).

QuantFile@8k
Q4_K_Mgguf8.3 GB10.6 GB
mlx-4bitmlx7.7 GB10.0 GB
Q5_K_Mgguf9.7 GB12.0 GB
Q6_Kgguf11.2 GB13.5 GB
mlx-8bitmlx14.5 GB16.8 GB
Q8_0gguf14.5 GB16.8 GB

Run it

Copy a command for the runtime you use.

  • Q4_K_M
    • Ollamaollama run hf.co/unsloth/phi-4-GGUF:Q4_K_M
    • LM Studiolms get unsloth/phi-4-GGUF@q4_k_m
    • llama.cppllama-server -hf unsloth/phi-4-GGUF:Q4_K_M
  • mlx-4bit
    • LM Studiolms get mlx-community/phi-4-4bit
    • MLXmlx_lm.server --model mlx-community/phi-4-4bit
  • Q5_K_M
    • Ollamaollama run hf.co/unsloth/phi-4-GGUF:Q5_K_M
    • LM Studiolms get unsloth/phi-4-GGUF@q5_k_m
    • llama.cppllama-server -hf unsloth/phi-4-GGUF:Q5_K_M
  • Q6_K
    • Ollamaollama run hf.co/unsloth/phi-4-GGUF:Q6_K
    • LM Studiolms get unsloth/phi-4-GGUF@q6_k
    • llama.cppllama-server -hf unsloth/phi-4-GGUF:Q6_K
  • mlx-8bit
    • LM Studiolms get mlx-community/phi-4-8bit
    • MLXmlx_lm.server --model mlx-community/phi-4-8bit
  • Q8_0
    • Ollamaollama run hf.co/unsloth/phi-4-GGUF:Q8_0
    • LM Studiolms get unsloth/phi-4-GGUF@q8_0
    • llama.cppllama-server -hf unsloth/phi-4-GGUF:Q8_0

Questions

What is the best GPU for running Phi-4 14B locally?
The cheapest hardware in Canada that runs Phi-4 14B fully in memory at 32k context is the AMD Radeon RX 7900 XT, $1,437 at Amazon, at about 24 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 50 tok/s.
What is the cheapest way to run Phi-4 14B in Canada today?
The AMD Radeon RX 7900 XT, $1,437 new at Amazon, in stock: it runs Phi-4 14B at Q6_K fully in memory at 32k context, at about 24 tok/s (estimated).
Can I run Phi-4 14B on a 16 GB GPU?
Only partly: at 32k context it does not fit in 16 GB, so part of it runs from system RAM and it slows to about 11 tok/s on the AMD Radeon RX 9060 XT 16GB (estimated).
Can I run Phi-4 14B on a 24 GB GPU?
Yes: at Q8_0 it fits fully in 24 GB at 32k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 28 tok/s (estimated).
How do I run Phi-4 14B locally?
With Ollama: ollama run hf.co/unsloth/phi-4-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
What licence is Phi-4 14B released under?
mit, which allows commercial use.

More hardware for local AI