Phi-4-mini Instruct

Microsoft · open-weight model

3.84BCommercial use OKLaptop (16 GB)

Microsoft's small model trained on high-quality, reasoning-heavy data. Made for memory- and latency-constrained apps, with a 128K context and function calling.

What computer do you need?

At 4-bit (Q4_K_M, the usual choice for home use), Phi-4-mini Instruct needs about 3.1 GB of memory: 8 GB GPU (e.g. RTX 4060) or Mac, 16 GB.

FormatWeightsMemory needed*Fits on
BF16 / FP16
Full precision, as published. Best quality, biggest.
about 7.7 GBabout 8.9 GB12 GB GPU (e.g. RTX 3060 12 GB) or Mac, 16 GB; CPU only: Laptop/PC, 16 GB RAM (slow)
Q8_0
8-bit. Practically the same quality as full precision.
about 4.1 GBabout 5.0 GB8 GB GPU (e.g. RTX 4060) or Mac, 16 GB; CPU only: Laptop/PC, 8 GB RAM (slow)
Q6_K
6-bit. Very close to full quality.
about 3.2 GBabout 4.0 GB8 GB GPU (e.g. RTX 4060) or Mac, 16 GB; CPU only: Laptop/PC, 8 GB RAM (slow)
Q5_K_M
5-bit. Small quality loss, good balance.
about 2.7 GBabout 3.5 GB8 GB GPU (e.g. RTX 4060) or Mac, 16 GB; CPU only: Laptop/PC, 8 GB RAM (slow)
Q4_K_M
4-bit. The usual default for running at home; noticeable but small loss.
about 2.3 GBabout 3.1 GB8 GB GPU (e.g. RTX 4060) or Mac, 16 GB; CPU only: Laptop/PC, 8 GB RAM (slow)

* Estimate = parameters × bits ÷ 8, plus about 10% overhead and about 0.5 GB for an 8K-token conversation. Longer contexts need more. CPU-only means it runs from normal RAM without a graphics card, which works but is much slower. How we calculate this.

Key facts

Made byMicrosoft
Hugging Facemicrosoft/Phi-4-mini-instruct
GitHubmicrosoft/PhiCookBook
Hugging Face repo createdFebruary 19, 2025
LicenseMIT: Very permissive: free for personal and commercial use, modification and redistribution. Keep the copyright notice.
Parameters3.84B total
ArchitectureDense (all parameters used for every token)
Context length131,072 tokens
InputText → text output
Languages23 languages, best in English
Reasoning / thinking modeNo (answers directly)
Popularity308,347 downloads in the last month, 896 likes (Hugging Face, November 25, 2026)
Works withOllama, vLLM, Transformers

Compare

Which hardware runs Phi-4-mini Instruct?

How to run Phi-4-mini Instruct

With Ollama (easiest)

  1. Install Ollama from ollama.com/download (Windows, Mac, Linux).
  2. Open a terminal and download + start the model:
ollama run phi4-mini

Ollama picks a ready-made quantized version (usually 4-bit). Library page: ollama.com/library/phi4-mini.

With LM Studio (no terminal)

  1. Install LM Studio.
  2. Open the search (Discover) tab and search for Phi-4-mini Instruct; pick a GGUF or MLX version that fits your memory (see the table above).
  3. Click Download, then Load and start chatting.

On a GPU server with vLLM

pip install -U vllm
vllm serve microsoft/Phi-4-mini-instruct

This gives you an OpenAI-compatible API on port 8000. Big models need several GPUs (add --tensor-parallel-size N) and the exact flags from the model card.

Can I run Phi-4-mini Instruct?

Can I run Phi-4-mini Instruct on laptop or PC with 16 GB RAM?

Yes. By our estimate it fits at BF16 / FP16 (about 8.9 GB) in the roughly 11 GB a Laptop or PC with 16 GB RAM can use. Without a graphics card it runs on the processor, so answers come slowly.

Can I run Phi-4-mini Instruct on an RTX 3060 12 GB?

Yes. By our estimate it fits at BF16 / FP16 (about 8.9 GB) in the roughly 11.5 GB an RTX 3060 12 GB can use.

Can I run Phi-4-mini Instruct on an RTX 4090?

Yes. By our estimate it fits at BF16 / FP16 (about 8.9 GB) in the roughly 23.5 GB an RTX 4090 can use.

Can I run Phi-4-mini Instruct on a Mac with 32 GB?

Yes. By our estimate it fits at BF16 / FP16 (about 8.9 GB) in the roughly 23 GB a Mac with 32 GB can use.

What is the minimum hardware for Phi-4-mini Instruct?

At 4-bit it needs about 3.1 GB of memory: 8 GB GPU (e.g. RTX 4060) or Mac, 16 GB. These are estimates; longer conversations need more.

Sources

Similar-size models

← All open-source models