unsloth

Phi 4 mini instruct

Phi 4 mini instruct 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
Q8_03.80 GBHugging Face file bytes
Q6_K2.94 GBHugging Face file bytes
Q5_K_M2.65 GBHugging Face file bytes
Q4_K_M2.32 GBHugging Face file bytes
Q3_K_M1.97 GBHugging Face file bytes
Q2_K3.13 GBHugging Face file bytes

On common machines

DeviceVerdictQuantSpeed
GeForce RTX 4060 Ti 8GBRunsQ8_031–42
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-instruct-GGUF:BF16 -c 8192 -ngl 32
Ollama
ollama run phi
LM Studio
lms get unsloth/Phi-4-mini-instruct-GGUF
# Then load quant BF16