Phi-4 14B

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

chatreasoning

In short

Phi-4 14B is an open model from Microsoft with 14.7B parameters. At Q4_K_M, Phi-4 14B needs about 11 GB of memory at 8k context and 11 GB at 8k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in Germany that runs Phi-4 14B fully in memory at 8k context is the NVIDIA GeForce RTX 3060 12GB, 415 € at Amazon, at about 21 tok/s (estimated).

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

Cheapest way to run it in Germany today

NVIDIA GeForce RTX 3060 12GB, used at eBay

Runs Phi-4 14B at Q4_K_M fully in memory at 8k context, about 21 tok/sest.

389 €

In stock, checked

What to run it on in Germany

Fully in memory at 8k 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
NVIDIA Tesla P40Q8_0fits12 tok/s389 €31.9
NVIDIA GeForce RTX 3060 12GBQ4_K_Mfits21 tok/s415 €50.8
Intel Arc B580Q4_K_Mfits22 tok/s498 €43.4
NVIDIA GeForce RTX 4060 Ti 16GBQ6_Kfits13 tok/s625 €20.8
Intel Arc Pro B50Q6_Kfits8 tok/s648 €12.7
AMD Radeon RX 9060 XT 16GBQ6_Kfits13 tok/s650 €19.7
Mac mini M4 16GBQ4_K_Mfits7 tok/s690 €10.7
NVIDIA GeForce RTX 4070 SuperQ4_K_Mfits30 tok/s700 €42.3
Intel Arc A770 16GBQ6_Kfits20 tok/s787 €25.9
NVIDIA GeForce RTX 5060 Ti 16GBQ6_Kfits20 tok/s799 €25.4
AMD Radeon RX 9070Q6_Kfits26 tok/s807 €31.8
AMD Radeon RX 7600 XTQ6_Kfits12 tok/s833 €13.9
NVIDIA GeForce RTX 4070Q4_K_Mfits30 tok/s843 €35.1
NVIDIA GeForce RTX 5070Q4_K_Mfits39 tok/s877 €44.9
NVIDIA RTX PRO 2000 BlackwellQ6_Kfits13 tok/s880 €14.8
AMD Radeon RX 9070 XTQ6_Kfits26 tok/s903 €28.5
AMD Radeon RX 7900 XTQ8_0fits26 tok/s999 €25.5
AMD Radeon RX 7800 XTQ6_Kfits25 tok/s1.069 €23.4
Intel Arc Pro B60Q8_0fits13 tok/s1.184 €11.1
Mac mini M4 32GBQ8_0fits5 tok/s1.330 €3.4
NVIDIA GeForce RTX 5070 TiQ6_Kfits41 tok/s1.389 €29.2
NVIDIA GeForce RTX 4070 Ti SuperQ6_Kfits30 tok/s1.500 €20.3
AMD Radeon RX 7900 XTXQ8_0fits31 tok/s1.555 €19.7
Intel Arc Pro B70Q8_0fits18 tok/s1.749 €10.1
NVIDIA GeForce RTX 5080Q6_Kfits43 tok/s1.889 €23.0
AMD Radeon AI PRO R9700Q8_0fits20 tok/s2.300 €8.9
Mac mini M4 Pro 48GBQ8_0fits10 tok/s2.549 €4.0
NVIDIA GeForce RTX 3090Q8_0fits34 tok/s2.790 €12.0
Mac mini M4 Pro 64GBQ8_0fits10 tok/s2.934 €3.5
NVIDIA GeForce RTX 4080 SuperQ6_Kfits33 tok/s3.263 €10.2
NVIDIA RTX PRO 4000 BlackwellQ8_0fits24 tok/s3.339 €7.2
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ8_0fits8 tok/s3.850 €2.1
NVIDIA GeForce RTX 3090 TiQ8_0fits36 tok/s4.284 €8.5
Mac Studio M4 Max 64GBQ8_0fits21 tok/s4.299 €4.8
NVIDIA GeForce RTX 4090Q8_0fits36 tok/s4.790 €7.6
NVIDIA RTX PRO 4500 BlackwellQ8_0fits32 tok/s4.878 €6.6
Mac Studio M4 Max 128GBQ8_0fits21 tok/s5.499 €3.7
Mac Studio M3 Ultra 96GBQ8_0fits31 tok/s5.999 €5.1
NVIDIA GeForce RTX 5090Q8_0fits64 tok/s6.888 €9.3
ASUS Ascent GX10 128GBQ8_0fits10 tok/s7.306 €1.3
Dell Pro Max with GB10 128GBQ8_0fits10 tok/s8.063 €1.2
NVIDIA RTX PRO 5000 Blackwell 48GBQ8_0fits48 tok/s8.866 €5.4
NVIDIA DGX Spark 128GBQ8_0fits10 tok/s9.091 €1.1
Mac Studio M3 Ultra 256GBQ8_0fits31 tok/s15.555 €2.0
Mac Studio M3 Ultra 512GBQ8_0fits31 tok/s17.995 €1.7
NVIDIA RTX PRO 6000 BlackwellQ8_0fits64 tok/s18.327 €3.5
Framework Desktop Ryzen AI Max+ 395 128GBQ8_0fits8 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ8_0fits8 tok/s––
NVIDIA RTX PRO 4000 Blackwell SFF EditionQ8_0fits16 tok/s––
Minisforum MS-S1 Max Ryzen AI Max+ 395 128GBQ8_0fits8 tok/s––
NVIDIA RTX 6000 Ada GenerationQ8_0fits35 tok/s––
NVIDIA RTX A6000Q8_0fits28 tok/s––
Lenovo ThinkStation PGX GB10 128GBQ8_0fits10 tok/s––
NVIDIA RTX PRO 5000 Blackwell 72GBQ8_0fits48 tok/s––
AMD Radeon PRO W7900Q8_0fits28 tok/s––
Beelink GTR9 Pro Ryzen AI Max+ 395 128GBQ8_0fits8 tok/s––
Intel Arc B570Q4_K_Moffload13 tok/s282 €46.1
NVIDIA GeForce RTX 5050Q4_K_Moffload10 tok/s428 €23.4
NVIDIA GeForce RTX 5060Q4_K_Moffload11 tok/s469 €23.9
NVIDIA GeForce RTX 3080 10GBQ4_K_Moffload23 tok/s518 €44.4
NVIDIA GeForce RTX 5060 Ti 8GBQ4_K_Moffload11 tok/s520 €21.5
NVIDIA GeForce RTX 4060Q4_K_Moffload9 tok/s556 €16.9
NVIDIA GeForce RTX 4060 Ti 8GBQ4_K_Moffload10 tok/s878 €10.9

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

How much VRAM does Phi-4 14B need?
At Q4_K_M, Phi-4 14B needs about 11 GB of memory at 8k context and 11 GB at 8k, counting the weights, the KV cache and runtime buffers.
What is the best GPU for running Phi-4 14B locally?
The cheapest hardware in Germany that runs Phi-4 14B fully in memory at 8k context is the NVIDIA GeForce RTX 3060 12GB, 415 € at Amazon, at about 21 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 64 tok/s.
What is the cheapest way to run Phi-4 14B in Germany today?
The NVIDIA GeForce RTX 3060 12GB, 389 € used at eBay, in stock: it runs Phi-4 14B at Q4_K_M fully in memory at 8k context, at about 21 tok/s (estimated).
Can I run Phi-4 14B on a 16 GB GPU?
Yes: at Q6_K it fits fully in 16 GB at 8k context. On the NVIDIA GeForce RTX 5080 it runs at about 43 tok/s (estimated).
Can I run Phi-4 14B on a 24 GB GPU?
Yes: at Q8_0 it fits fully in 24 GB at 8k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 36 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