Model · Microsoft

Phi-4-mini-instruct

chat
Parameters
3.8B
Context
131,072tokens at most
Smallest download
2.2 GBof 3 downloads
Licence
MITCommercial use allowed

01Downloads

Exact files, exact bytes.

GGUF Q4_K_M

2.5 GB

bartowski/microsoft_Phi-4-mini-instruct-GGUF @ 7ff82c2aaa4dde30121698a973765f39be5288c0

FileBytes
microsoft_Phi-4-mini-instruct-Q4_K_M.gguf2,491,874,688

GGUF Q8_0

4.1 GB

bartowski/microsoft_Phi-4-mini-instruct-GGUF @ 7ff82c2aaa4dde30121698a973765f39be5288c0

FileBytes
microsoft_Phi-4-mini-instruct-Q8_0.gguf4,084,611,456

MLX 4-bit

2.2 GB

mlx-community/Phi-4-mini-instruct-4bit @ ac1c269cb4222a4e136a3d09edad301056c1f36a

FileBytes
model.safetensors2,158,100,796

02Runtimes

How to run it.

Commands as the catalogue records them. The results page adds a context length that matches your estimate.

03Facts

Licence, layout and sources.

Licence
MIT (opens in a new tab)Commercial use allowed.
Weights repo
microsoft/Phi-4-mini-instruct @ cfbefacb99257ffa30c83adab238a50856ac3083
Layout
32 layers32 × full attention, 8 KV heads × 128 dim
Notes
Phi-4-mini-instruct is a 3.8B-parameter model for chat. It can read up to 131,072 tokens at once.The config’s 262,144-token sliding window is longer than the 131,072-token context, so every layer is recorded as full attention. Ollama downloads its own build of this quantisation. The listed artifact sizes are for the pinned Hugging Face files.
Verified on