Model · Microsoft
Phi-4-mini-instruct
- 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| File | Bytes |
|---|---|
| microsoft_Phi-4-mini-instruct-Q4_K_M.gguf | 2,491,874,688 |
GGUF Q8_0
4.1 GB| File | Bytes |
|---|---|
| microsoft_Phi-4-mini-instruct-Q8_0.gguf | 4,084,611,456 |
MLX 4-bit
2.2 GB| File | Bytes |
|---|---|
| model.safetensors | 2,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.
llama.cpp Q4_K_M docs (opens in a new tab)
llama cli -hf bartowski/microsoft_Phi-4-mini-instruct-GGUF:Q4_K_MLM Studio Q4_K_M docs (opens in a new tab)
Open in LM Studio and search for bartowski/microsoft_Phi-4-mini-instruct-GGUF. Select Q4_K_M.
llama.cpp Q8_0 docs (opens in a new tab)
llama cli -hf bartowski/microsoft_Phi-4-mini-instruct-GGUF:Q8_0LM Studio Q8_0 docs (opens in a new tab)
Open in LM Studio and search for bartowski/microsoft_Phi-4-mini-instruct-GGUF. Select Q8_0.
MLX 4-bit docs (opens in a new tab)
mlx_lm.generate --model mlx-community/Phi-4-mini-instruct-4bit --prompt "Hello"LM Studio 4-bit docs (opens in a new tab)
Open in LM Studio and search for mlx-community/Phi-4-mini-instruct-4bit.
Ollama Q4_K_M docs (opens in a new tab)
ollama run phi4-mini:3.8b-q4_K_M
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.
- Sources
- huggingface.co/api/models/microsoft/Phi-4-mini-instruct/revision/cfbefacb99257ffa30c83adab238a50856ac3083 (opens in a new tab) retrieved huggingface.co/microsoft/Phi-4-mini-instruct/raw/cfbefacb99257ffa30c83adab238a50856ac3083/config.json (opens in a new tab) retrieved huggingface.co/api/models/bartowski/microsoft_Phi-4-mini-instruct-GGUF/tree/7ff82c2aaa4dde30121698a973765f39be5288c0?recursive=true (opens in a new tab) retrieved huggingface.co/api/models/mlx-community/Phi-4-mini-instruct-4bit/tree/ac1c269cb4222a4e136a3d09edad301056c1f36a?recursive=true (opens in a new tab) retrieved huggingface.co/mlx-community/Phi-4-mini-instruct-4bit/blob/ac1c269cb4222a4e136a3d09edad301056c1f36a/README.md (opens in a new tab) retrieved huggingface.co/microsoft/Phi-4-mini-instruct/blob/cfbefacb99257ffa30c83adab238a50856ac3083/README.md (opens in a new tab) retrieved huggingface.co/microsoft/Phi-4-mini-instruct/blob/cfbefacb99257ffa30c83adab238a50856ac3083/LICENSE (opens in a new tab) retrieved
- Verified on