Phi 4 mini 3.8B
Microsoft · MIT · Updated 2025-02-19
- Parameters
- 3.8B
- Context
- 131K
Capability
Compact peers
Current modelArtificial Analysis ↗ · 2026-11-06
Sources & evaluation settings
Checkpoint-level results; quantized artifacts are not individually evaluated. Missing scores are unknown, not zero. The highest published reasoning-effort configuration is selected for each checkpoint; exact settings are listed below. Peer groups prioritize model role, then total parameter scale. Closed models are reference anchors.
- AA Intelligence: Artificial Analysis Intelligence Index v5.0.1 · points
- Terminal-Bench 4.0: Artificial Analysis Terminal-Bench 4.0 · %
- HLE-Diamond: Artificial Analysis HLE-Diamond · %
| Model / configuration | AA Intelligence | Terminal-Bench 4.0 | HLE-Diamond |
|---|---|---|---|
| Phi-4 Mini Instruct ↗ · Current | — | — | — |
| Nanbeige4.3-33B ↗ | 20.4 | 29.8 | 6.9 |
| Nemotron 3.5 Bolt E4B 4GB (Reasoning) ↗ | — | — | — |
| Gemini 3.8 Flash (High) ↗ · Closed | 30.8 | 19.7 | 33.1 |
| GPT-6 Luna (Max) ↗ · Closed | 27.9 | 12.6 | 22.2 |
Available artifacts
Memory estimateRun locally
Microsoft
Memory estimate · 25 GB
- vLLM
vllm serve microsoft/Phi-4-mini-instructServes an OpenAI-compatible API on port 8000. vLLM reserves most GPU memory for KV cache by default. - SGLang
python -m sglang.launch_server --model-path microsoft/Phi-4-mini-instructServes an OpenAI-compatible API on port 30000.
Unsloth
Memory estimate · 25 GB
- vLLM
vllm serve unsloth/Phi-4-mini-instructServes an OpenAI-compatible API on port 8000. vLLM reserves most GPU memory for KV cache by default. - SGLang
python -m sglang.launch_server --model-path unsloth/Phi-4-mini-instructServes an OpenAI-compatible API on port 30000.
Unsloth
Memory estimate · 20 GB
- Ollama
ollama run hf.co/unsloth/Phi-4-mini-instruct-GGUFPulls the Q4_K_M file when the repository has one; append :Q8_0 or another file tag to choose a quantization. - llama.cpp
llama-server -hf unsloth/Phi-4-mini-instruct-GGUFDownloads the Q4_K_M file when present (append :QUANT to choose) and serves an OpenAI-compatible API on port 8080. - LM StudioOpen in LM StudioOpens the repository in LM Studio, where you choose a file to download.
Runtime recipes
Official vLLM recipe · Phi-4
- Minimum runtime
- 0.7.0
- Recipe revision
- b8bec4f47
- Maintainer
- Microsoft
Upstream hardware
Verified on H100
Recipe capabilities
text · multimodal · encoder_parallel · text_only
Material history
RSS feed of changes to Phi 4 mini 3.8B- Official vLLM recipe updatedPhi-4 is listed by the official vLLM recipe source.vLLM recipes
- GGUF artifact addedunsloth/Phi-4-mini-instruct-GGUF is now linked as a GGUF artifact.Hugging Face
- BF16 artifact addedunsloth/Phi-4-mini-instruct is now linked as a BF16 artifact.Hugging Face
- Model weights publishedmicrosoft/Phi-4-mini-instruct entered the catalog from structured Hugging Face metadata.Hugging Face