Skip to content
Local AI Wizard
Your machine
Theme

Phi-4 mini

Microsoft · microsoft/Phi-4-mini-instruct

Text & chat

Q4 file 2.5 GB (Q4_K_M) · runs well from 8 GB · Weights license: MIT

Hub downloads · 30 days342.8KPopularity, not quality · read 2026-10-25
Memory needed~3 GBQ4 weights + working room, before the machine's reserve
Parameters3.8 Bmanufacturer specification
Context131,072 tokensPublished for this model

Quality

No result in LiveBench 2026-06-25, LMArena 2026-10-22 Not in LiveBench 2026-06-25 or LMArena 2026-10-22

Reported by the publisher

The card has 1 evaluation table, but none of their columns has been matched to this checkpoint yet (read 2026-10-25); no value is copied from another column. This stays an open gap. tables on the card, column not matched yet · read 2026-10-25

Run it

Run it

File Q4_K_M · 2.5 GB · unsloth/Phi-4-mini-instruct-GGUF · What is Q4?

ollama run hf.co/unsloth/Phi-4-mini-instruct-GGUF:Q4_K_M
  1. Install Ollama
  2. Run the command above
  3. Ask: Explain what a context window is, in two sentences.

Runs on

Fast memory holds it 118

The planning estimate fits the memory the model can use quickly: graphics card VRAM, or unified memory within the macOS GPU share.

Show all 118

Within memory, outside the fast part 1

Within the machine's memory, outside its fast part: on a graphics card the layers that do not fit run on the CPU from PC RAM (the listed RAM, or 32 GB assumed); on a Mac, above the macOS default GPU share. Not a speed figure.

Phi-4 mini is a text model from Microsoft with 3.8B parameters. It reads up to 131,072 tokens of context. Its Q4 weights plus working room come to about 3 GB before the machine's reserve; the smallest reference machines whose fast memory holds that are Mac mini M2 · 8 GB unified (~5 GB with its reserve) and RTX 4060 · 8 GB VRAM (~5 GB with its reserve). We collected 11 downloadable GGUF and MLX files from 2 publisher sources; the most downloaded GGUF source is unsloth's. It has no result in LiveBench 2026-06-25, so no quality score is shown.

Hardware profiles grouped by the Q4 planning estimate on each machine (dedicated GPUs reserve 2 GB; unified and system memory 25%, 2 to 8 GB): the fast memory holds it, it is within memory but outside the fast part (layers offloaded to PC RAM, or above the macOS GPU share), or the machine is one memory tier short. Each card opens its hardware profile. Not a measured fit or speed.

On the reference machines

Phi-4 mini on the reference machines
Where Q4 sits
Mac mini M2 · 8 GB unifiedFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB8,192 tokens~5 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB8,192 tokens
Mac mini M4 · 16 GB unifiedFast memory holds itQ8_0GGUF · 4.1 GB · needs ~10 GB32,768 tokens~7 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~10 GB32,768 tokens
Mac mini M4 · 24 GB unifiedFast memory holds itQ8_0GGUF · 4.1 GB · needs ~12 GB65,536 tokens~9 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~12 GB65,536 tokens
Mac mini M4 · 32 GB unifiedFast memory holds itQ8_0GGUF · 4.1 GB · needs ~14 GB131,072 tokens~11 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~14 GB131,072 tokens
Mac mini M5 Pro · 64 GB unifiedFast memory holds itQ8_0GGUF · 4.1 GB · needs ~14 GB131,072 tokens~11 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~14 GB131,072 tokens
Mac Studio M5 Max · 128 GB unifiedFast memory holds itQ8_0GGUF · 4.1 GB · needs ~14 GB131,072 tokens~11 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~14 GB131,072 tokens
Mac Studio · M5 Ultra · 36-core CPU / 80-core GPU · 512 GB unifiedFast memory holds itQ8_0GGUF · 4.1 GB · needs ~14 GB131,072 tokens~11 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~14 GB131,072 tokens
RTX 4060 · 8 GB VRAMFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB8,192 tokens~5 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB8,192 tokens
RTX 3060 · 12 GB VRAMFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB32,768 tokens~5 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB32,768 tokens
RTX 5080 · 16 GB VRAMFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB65,536 tokens~5 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB65,536 tokens
RTX 4090 · 24 GB VRAMFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB65,536 tokens~5 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB65,536 tokens
RTX 5090 · 32 GB VRAMFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB131,072 tokens~5 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~8 GB131,072 tokens
DGX H100 · 8 × 80 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~22 GB131,072 tokens~19 GBFast memory holds itQ8_0GGUF · 4.1 GB · needs ~22 GB131,072 tokens

The file column uses the site's quant ladder (Q8_0 to Q3_K_M, MLX 8 to 4-bit on a Mac): the largest collected file whose size × 1.2 plus the context cache and the machine's reserve fits the fast memory. Planning estimates, not measured runs.

Plan another quantization or context

Consider it for

Compare Phi-4 mini using its publisher card. No overall score appears in the LiveBench 2026-06-25 snapshot.

Check first

The Q4 weights plus working room come to about 3 GB from 3.8B stated parameters, before the machine's reserve (Runs on adds it per machine). It is not a measured minimum; context, batch size, runtime and quantization change actual memory use.

Versions to download

Files you can download for this checkpoint. The section opens on the most downloaded collected GGUF source, unsloth, at Q4_K_M. On a Mac it opens on the most downloaded MLX source. Sizes are the Hub's published bytes. What is Q4?

unsloth

unsloth/Phi-4-mini-instruct-GGUF · Phi-4-mini-instruct-Q4_K_M.gguf · 2.5 GB

Run this file

ollama run hf.co/unsloth/Phi-4-mini-instruct-GGUF:Q4_K_M
llama-server -hf unsloth/Phi-4-mini-instruct-GGUF:Q4_K_M
lms get https://huggingface.co/unsloth/Phi-4-mini-instruct-GGUF
  • mlx-lm: mlx-lm runs MLX repositories; pick the MLX version on a Mac

Quality scores on this page belong to the original checkpoint; these files are not scored or ranked. File sizes read 2026-10-23 · download counts read 2026-10-17 · commands: Hugging Face Hub docs: Use Ollama with any GGUF model · llama.cpp server README (-hf <user>/<model>[:quant]) · LM Studio docs: lms get with a Hugging Face URL · mlx-lm README (mlx_lm.generate --model)

Fine-tunes, adapters and other versions136 fine-tunes
Quantized versions
201
Fine-tunes
136
Adapters · merges
204 · 1

Browse them on the Hugging Face model tree · read 2026-10-23

Uncensored and abliterated versions4

Some community uploads remove the model's safety refusals. Quality may drop, the original publisher does not support them, claims about them are the uploader's, and the original license still applies. This site never recommends or ranks them.

4 derivative repositories have “uncensored” or “abliterated” in their name (read 2026-10-23).

Measured speed

No published measurement for this checkpoint

Tokens per second are shown only when a source publishes them with hardware, build and setup. They are never estimated.

How to run

The memory needed above is the Q4 load before a machine's reserve. Formula: parameters × 0.625 bytes, plus 20% working allowance; each machine then adds its system reserve: 25% of unified or system memory, 2 to 8 GB, or 2 GB per GPU on dedicated cards. This is neither measured VRAM nor checkpoint download size.

Q4 planning estimate only. Check checkpoint format, runtime support, KV cache, context, batch size and offload before choosing hardware.

Evidence level: Generic estimate only; no execution reproduced by this site.

Publisher sampling defaults
— generation_config.json states no sampling values for this checkpoint
Chat template markers
tool calls · no thinking markersmarkers found in the template, not a test of the feature · read 2026-10-23source
Before downloading
  1. Check the exact checkpoint and license linked here.
  2. Confirm a compatible runtime and precision or quantization for your platform.
  3. Allow for context, batch size and any extra media components beyond the weights.

Technical details

What the source and the catalog store for this checkpoint. Missing fields are left out, never zero.

Checkpoint / version
microsoft/Phi-4-mini-instruct
Task and modality
language and reasoning · text
Count and basis
3.8B · manufacturer specificationmicrosoft/Phi-4-mini-instruct model card (Hugging Face) · read 2026-10-17source
Context
131,072 tokens published for this modelmicrosoft/Phi-4-mini-instruct model card (Hugging Face) · read 2026-10-17source
Architecture
DensePhi-4-Mini Technical Report (arXiv 2503.01743) · read 2026-10-17source
Runtime and precision
No local execution verified.
Languages
ar, zh, cs, da, nl, en, fi, fr, de, he, hu, it, ja, ko, no, pl, pt, ru, es, sv, th, tr, ukModel card metadata · read 2026-10-25source
Commercial use
Allowed MIT license text (SPDX) · read 2026-10-18license text
Every stored field11 fields
Revision checked
cfbefacb99257ffa30c83adab238a50856ac3083
Architecture
Phi3ForCausalLM
Library
transformers
Hub task tag
text-generation
Formats
transformers, safetensors
Access
Open download
Publisher kind
Official
Repository created
2025-02-19creation is not the model's release
Repository updated
2025-12-10a commit is not a release date
Hub downloads (30 days) · likes
342,842 · 870this repository only · read 2026-10-25
Catalog state
Hub config or weights found; no inventory benchmark link

Sources

Identity and published specifications come from the checkpoint page. Benchmark scores belong to the named release and do not measure speed on your computer.

Catalog reviewed: 2026-10-17. Benchmark release: 2026-06-25; snapshot collected: 2026-10-18.