Microsoft·Phi 4·Phi3ForCausalLM

Phi 4 Mini Instruct — Hardware Requirements & GPU Compatibility

ChatCode

Microsoft Phi 4 Mini Instruct is a 3.8-billion parameter instruction-tuned model from Microsoft Research's Phi 4 family. It applies the Phi series' data-centric training philosophy to a compact model, delivering strong performance in coding, reasoning, and chat tasks relative to its small footprint. The model runs on consumer GPUs with as little as 4-6GB of VRAM when quantized, making it accessible on mainstream and even entry-level hardware. Released under the MIT license.

309.1K downloads 699 likesDec 2025131K context

Specifications

Publisher
Microsoft
Family
Phi 4
Parameters
3.8B
Architecture
Phi3ForCausalLM
Context Length
131,072 tokens
Vocabulary Size
200,064
Release Date
2025-12-10
License
MIT

Get Started

How Much VRAM Does Phi 4 Mini Instruct Need?

Select a quantization to see compatible GPUs below.

QuantizationBitsVRAM
Q2_K3.402.2 GB
Q3_K_M3.902.4 GB
Q4_K_M4.802.9 GB
Q5_K_M5.703.3 GB
Q6_K6.603.7 GB
Q8_08.004.4 GB

Which GPUs Can Run Phi 4 Mini Instruct?

Q4_K_M · 2.9 GB

Phi 4 Mini Instruct (Q4_K_M) requires 2.9 GB of VRAM to load the model weights. For comfortable inference with headroom for KV cache and system overhead, 4+ GB is recommended. Using the full 131K context window can add up to 16.9 GB, bringing total usage to 19.8 GB. 35 GPUs can run it, including NVIDIA GeForce RTX 5090, NVIDIA GeForce RTX 3090 Ti.

Which Devices Can Run Phi 4 Mini Instruct?

Q4_K_M · 2.9 GB

33 devices with unified memory can run Phi 4 Mini Instruct, including NVIDIA DGX H100, NVIDIA DGX A100 640GB.

Related Models

Derivatives (1)

Frequently Asked Questions

How much VRAM does Phi 4 Mini Instruct need?

Phi 4 Mini Instruct requires 2.9 GB of VRAM at Q4_K_M, or 4.4 GB at Q8_0. Full 131K context adds up to 16.9 GB (19.8 GB total).

VRAM = Weights + KV Cache + Overhead

Weights = 3.8B × 4.8 bits ÷ 8 = 2.3 GB

KV Cache + Overhead 0.6 GB (at 2K context + ~0.3 GB framework)

KV Cache + Overhead 17.5 GB (at full 131K context)

VRAM usage by quantization

2.9 GB
19.8 GB

Learn more about VRAM estimation →

What's the best quantization for Phi 4 Mini Instruct?

For Phi 4 Mini Instruct, Q4_K_M (2.9 GB) offers the best balance of quality and VRAM usage. Q5_K_M (3.3 GB) provides better quality if you have the VRAM. The smallest option is Q2_K at 2.2 GB.

VRAM requirement by quantization

Q2_K
2.2 GB
Q3_K_M
2.4 GB
Q4_K_M
2.9 GB
Q5_K_M
3.3 GB
Q6_K
3.7 GB
Q8_0
4.4 GB

★ Recommended — best balance of quality and VRAM usage.

Learn more about quantization →

Can I run Phi 4 Mini Instruct on a Mac?

Phi 4 Mini Instruct requires at least 2.2 GB at Q2_K, which exceeds the unified memory of most consumer Macs. You would need a Mac Studio or Mac Pro with a high-memory configuration.

Can I run Phi 4 Mini Instruct locally?

Yes — Phi 4 Mini Instruct can run locally on consumer hardware. At Q4_K_M quantization it needs 2.9 GB of VRAM. Popular tools include Ollama, LM Studio, and llama.cpp.

How fast is Phi 4 Mini Instruct?

At Q4_K_M, Phi 4 Mini Instruct can reach ~1023 tok/s on AMD Instinct MI300X. On NVIDIA GeForce RTX 4090: ~230 tok/s. Speed depends mainly on GPU memory bandwidth. Real-world results typically within ±20%.

tok/s = (bandwidth GB/s ÷ model GB) × efficiency

Example: AMD Instinct MI300X5300 ÷ 2.9 × 0.55 = ~1023 tok/s

Estimated speed at Q4_K_M (2.9 GB)

~1023 tok/s
~230 tok/s
~765 tok/s
~632 tok/s

Real-world results typically within ±20%. Speed depends on batch size, quantization kernel, and software stack.

Learn more about tok/s estimation →

What's the download size of Phi 4 Mini Instruct?

At Q4_K_M, the download is about 2.28 GB. The full-precision Q8_0 version is 3.80 GB. The smallest option (Q2_K) is 1.61 GB.