unsloth

phi 4

phi 4 is a 14.7B dense llama model from unsloth. Configured context length is 16,384 tokens. License: mit. Quant sizes are the GGUF file bytes published on Hugging Face when a file exists.

Parameters14.7B
Context16K
Attentiongqa
Licensemit

40 layers · 10 KV heads · head dim 128 · GGUF repo · config

Quant file sizes

QuantFile sizeSource
F1627.3 GBHugging Face file bytes
Q8_014.5 GBHugging Face file bytes
Q6_K11.2 GBHugging Face file bytes
Q5_K_M9.70 GBHugging Face file bytes
Q4_K_M8.28 GBHugging Face file bytes
Q3_K_M6.70 GBHugging Face file bytes
Q2_K10.6 GBHugging Face file bytes

On common machines

DeviceVerdictQuantSpeed
GeForce RTX 4060 Ti 8GBPartial offloadQ4_K_M10–14
GeForce RTX 3060 12GBTight fitQ4_K_M19–26
GeForce RTX 4060 Ti 16GBTight fitQ6_K12–16
GeForce RTX 4090RunsQ8_032–44
GeForce RTX 5090Tight fitF1633–45
Apple M4 ProTight fitQ8_08.7–12
Apple M5Tight fitQ4_K_M8.0–11
CPU only · DDR5-5600Runs on CPUQ8_02.9–3.9

Smallest devices that fit it fully

Run it

Commands for the GeForce RTX 4060 Ti 16GB estimate (Q6_K).

llama.cpp
llama-server -hf unsloth/phi-4-GGUF:Q6_K -c 8192 -ngl 40
Ollama
ollama run phi4
LM Studio
lms get unsloth/phi-4-GGUF
# Then load quant Q6_K