unsloth

Phi 4 mini reasoning

Phi 4 mini reasoning is a 3.84B dense phi3 model from unsloth. Configured context length is 131,072 tokens. License: mit. Quant sizes are the GGUF file bytes published on Hugging Face when a file exists.

Parameters3.8B
Context128K
Attentiongqa
Licensemit

32 layers · 8 KV heads · head dim 128 · GGUF repo · config

Quant file sizes

QuantFile sizeSource
BF167.15 GBHugging Face file bytes
UD-Q8_K_XL4.74 GBHugging Face file bytes
Q8_03.80 GBHugging Face file bytes
UD-Q6_K_XL3.30 GBHugging Face file bytes
Q6_K2.94 GBHugging Face file bytes
UD-Q5_K_XL2.59 GBHugging Face file bytes
Q5_K_M2.65 GBHugging Face file bytes
UD-Q4_K_XL2.29 GBHugging Face file bytes
Q4_K_M2.32 GBHugging Face file bytes
IQ4_NL2.17 GBHugging Face file bytes
IQ4_XS2.07 GBHugging Face file bytes
Q4_12.35 GBHugging Face file bytes
Q4_02.17 GBHugging Face file bytes
UD-Q3_K_XL1.95 GBHugging Face file bytes
Q3_K_M1.97 GBHugging Face file bytes
Q3_K_S1.77 GBHugging Face file bytes
UD-IQ3_XXS1.55 GBHugging Face file bytes
UD-Q2_K_XL1.60 GBHugging Face file bytes
Q2_K3.13 GBHugging Face file bytes
UD-IQ2_XXS1.20 GBHugging Face file bytes
UD-IQ1_M1.11 GBHugging Face file bytes
UD-IQ1_S1.06 GBHugging Face file bytes

On common machines

DeviceVerdictQuantSpeed
GeForce RTX 4060 Ti 8GBTight fitUD-Q8_K_XL26–35
GeForce RTX 3060 12GBRunsBF1623–31
GeForce RTX 4060 Ti 16GBRuns greatBF1618–25
GeForce RTX 4090Runs greatBF1663–86
GeForce RTX 5090Runs greatBF16113–154
Apple M4 ProRuns greatBF1617–23
Apple M5RunsBF169.6–13
CPU only · DDR5-5600Runs on CPUBF165.6–7.7

Smallest devices that fit it fully

Run it

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

llama.cpp
llama-server -hf unsloth/Phi-4-mini-reasoning-GGUF:BF16 -c 8192 -ngl 32
Ollama
ollama run phi
LM Studio
lms get unsloth/Phi-4-mini-reasoning-GGUF
# Then load quant BF16