Phi-4 Mini
PhiMITtext

Phi-4 Mini

Updated Oct 19, 2026
Parameters
3B
Context
16,384
License
MIT
Q4 GGUF
2.49 GB
Updated
Oct 19, 2026

Q4 GGUF download: unsloth/Phi-4-mini-instruct-GGUF - 2.49 GB on disk, read 2026-10-17. VRAM figures above are estimates; this is the actual file size.

Intelligence benchmarks

Artificial Analysis indexes - compared with the best open and proprietary models

Intelligence

6.3

AA Index

Coding

3.8

AA Index

Intelligence Index - Phi-4 Mini vs. the field

Best open-weight models (you can run locally) and leading proprietary models for context.

Claude Opus 5.5
57.6
closed
Claude Sonnet 5.5
56
closed
Muse Wonder Full
55.8
closed
Claude Fable 5.1
53.4
closed
GPT-6 Astra
52.7
closed
MiMo-V2.6-Pro
46.3
open
GLM-5.3
44.8
open
Phi-4 Mini
6.3
open

Coding Index comparison

Claude Fable 5.1
81.6
closed
Gemini 3.8 Flash
76.3
closed
Kimi K3
76.2
open
Qwen3.8 Max
76.2
closed
GLM-5.3
74.8
open
GLM-5.3-Flash
71.5
open
Qwen3.8 27B
68.1
open
Phi-4 Mini
3.8
open

Benchmark data from Artificial Analysis · updated 2026-10-19.

Hosted API cost & speed

What it costs to rent this model instead of running it locally

MetricValue
Input (per 1M tokens)$0.08
Output (per 1M tokens)$0.30
Median speed (hosted API)44 tok/s

Median across hosted providers, measured by Artificial Analysis - updated 2026-10-19. Local llama.cpp speed depends on your hardware — see the hardware pages for estimates.

Standard benchmarks

Performance across standard evaluations

BenchmarkScore
MMLU64
HumanEval65
MT-Bench7.5
GSM8K78
MMLU-Pro46.5
GPQA Diamond33.1
AIME6.7
HLE4.5
LiveCodeBench12.6
IFBench21.1
Terminal-Bench0

Source: Artificial Analysis component evals - updated 2026-10-19. Other scores are carried over from the site's initial dataset - no source on record, not re-verified.

Will it run on your hardware?

Pick your GPU memory - see which quantizations fit, and the cheapest card for the rest

Runs on your 24 GB - best at FP16
4 of 4 quantizations fit Phi-4 Mini with real runtime overhead.
Q4_K_M
2.5 GB
Q5_K_M
3 GB
Q8_0
4.5 GB
FP16
6 GB
fits tight too big

Need an exact figure for your context length? Use the VRAM calculator.

Run it locally

Copy-paste - running in under a minute

Ollamaeasiest
ollama run phi-4-mini:3b
vLLMOpenAI-compatible API
vllm serve microsoft/Phi-4-mini-instruct

New to this? Start with Ollama · serve to many users with vLLM.

Deep dive

Notes, sources, and the full write-up

Phi-4 Mini

Phi-4 Mini brings Microsoft's synthetic-data training approach to a 3.8-billion-parameter model. It targets edge deployment with strong coding performance for its size.

Key features

  1. Synthetic data training - inherits Phi-4's approach
  2. 64 MMLU - strong for 3.8B
  3. 65 HumanEval - best-in-class coding for sub-4B
  4. MIT license - fully open

How to run

ollama run phi-4-mini:3b

From the community

What users are saying

“Yes it seems likely that most of these tools are ignoring the 0.75 scaling, thanks for pointing that out @ykim362 ! Will investigate”

“try downgrading trl and transformers I think LossKwargs removed from transformers==4.54.0 https://github.com/sgl-project/sglang/issues/8004issuecomment-3148397838”

“Hi , when i try to deploy the model via a HF Inference Endpoint i get this : [Server Message] Endpoint Failed to Start. With the following details : Exit code: 1.”

Frequently asked

Quick answers to common questions

How much VRAM does Phi-4 Mini need?

Phi-4 Mini with 3B parameters needs approximately 2.5 GB at Q4_K_M quantization. Use our VRAM calculator for an exact estimate.

Is Phi-4 Mini better than other Phi models?

Phi-4 Mini scores 64 on MMLU and 65 on HumanEval. It has 3B parameters with 16,384 context - a strong choice for edge, mobile, chatbots.

What license is Phi-4 Mini under?

Phi-4 Mini is released under the MIT license, making it suitable for most commercial and personal projects.

What hardware runs Phi-4 Mini well?

With 3B parameters, Phi-4 Mini requires adequate VRAM. High-end GPUs like the RTX 4090 (24GB), RTX 5090 (32GB), or Mac Studio with unified memory are good options. Check our hardware directory for specific recommendations.

What is the best quantization for Phi-4 Mini?

Q4_K_M is the recommended sweet spot - ~98% of FP16 quality at ~27% of the size. Q5_K_M (~3 GB) is an option if you have spare VRAM. Use our VRAM calculator to compare.

What models compete with Phi-4 Mini?

Phi-4 Mini competes with other models in its class. Browse our model directory for comparisons, benchmarks, and community reviews to find the best fit.

Compare & pair with

Similar models and recommended hardware

Recommended hardware

Nearby options

Similar models and compatible hardware by spec