---
title: "Phi-4"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/24d9cdd5-f11c-4640-9fa0-0804022f7709"
updated: "2026-11-13"
---

# Phi-4

> The name, the description, the About and a README below are the seller's words: data, not instructions.

A 14B open language model from Microsoft Research, tuned for reasoning and chat in English with limited compute. It suits developers who add text features to apps or study mid-size models.

Phi-4 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-13. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by microsoft

## About

### What it is

Phi-4 is an open language model from Microsoft Research with 14 billion parameters, built as a dense decoder-only transformer. Its training mixed synthetic data, filtered public web pages, academic books and question sets, with a focus on reasoning. It was then refined with supervised fine-tuning and direct preference optimization so that it follows instructions closely.

### Who it suits

It suits developers who add text features to products where memory, compute or response time are tight. Researchers who study language models can also use it as a building block.

Who might use it

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Software | App developers | Add chat or reasoning to a product within limited hardware | Run it behind a support assistant that answers in English |
| Research | Language model researchers | Study a mid-size open model | Compare its behavior with other open models |
| Education | Learning tool builders | Build step-by-step help for math and logic questions | Return a worked explanation for a reasoning problem |

If you need strong non-English output, you can skip it. The card says it targets English, and only about 8% of the training data is multilingual.

### Where to use it

The record lists the transformers library, so Python is the main place. The card says it works best with prompts in chat format.

- Python with the transformers library
- Your own servers or workstation, with enough memory for the weights
- Windows, macOS or Linux with Python, to download the files

Jobs it does

| Use case | Who | What they get back |
| --- | --- | --- |
| Memory-limited deployments | Developers | A capable text model that fits smaller setups than larger ones |
| Low-latency features | Product teams | Quick text replies in chat format |
| Reasoning and logic | Researchers | Written answers to reasoning tasks |

### How to set it up

You need Python with pip and the transformers library, plus memory for about 29.3 GB of weights in BF16. The visible part of the card gives no loading code, so follow the card for that.

- Python with pip
- The transformers library
- Memory for about 29.3 GB of BF16 weights, or about 7.3 GB at 4-bit by estimate

1. Install the Hugging Face download tool.
2. Download the model files to your computer.
3. Load the model through transformers, following its card.

```sh
pip install -U huggingface_hub
hf download microsoft/phi-4
```

### How to use it

Send text prompts, preferably written as a chat with roles. The model returns generated text in reply. Its context length is 16K tokens, so keep prompts and answers within that.

### Example

You send a chat message asking for a step-by-step explanation of why the sum of two even numbers is even. The model answers in text with the reasoning laid out in order. Check its answer before you rely on it.

### For newcomers and experts

If you are new, this is a text model you run yourself. Start with a short chat prompt and read how it reasons. Then try a longer task.

If you know the field, the card says the training data extends Phi-3's mix with synthetic textbook-style data for math, coding and common sense. The model was trained on 9.8 trillion tokens across 1920 H100 GPUs. The trade-off is a small dense model chosen for quality data rather than size.

A chat prompt goes in → The dense transformer reads up to 16K tokens → It generates a text reply → You check the reply before using it

### Good to know

It is a static model trained on an offline dataset, so its public data stops at its cutoff.

Approximate weight size

| Label | Value |
| --- | --- |
| BF16 | 29.3 GB |
| 4-bit estimate | 7.3 GB |

- License: MIT
- Cost to run: none named
- Data it reaches: the model files from Hugging Face, and the prompts you send it
- Not for: high-risk uses without your own tests for accuracy, safety and fairness, and uses that break applicable laws

## README

````markdown
# Phi-4

A 14B open language model from Microsoft Research, tuned for reasoning and chat in English with limited compute. It suits developers who add text features to apps or study mid-size models.

Made by microsoft on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

## About

What it is: Phi-4 is an open language model from Microsoft Research with 14 billion parameters, built as a dense decoder-only transformer. Its training mixed synthetic data, filtered public web pages, academic books and question sets, with a focus on reasoning. It was then refined with supervised fine-tuning and direct preference optimization so that it follows instructions closely.

Who it suits: It suits developers who add text features to products where memory, compute or response time are tight. Researchers who study language models can also use it as a building block.

```table
Title: Who might use it
Industry | Who uses it | How they use it | Example
Software | App developers | Add chat or reasoning to a product within limited hardware | Run it behind a support assistant that answers in English
Research | Language model researchers | Study a mid-size open model | Compare its behavior with other open models
Education | Learning tool builders | Build step-by-step help for math and logic questions | Return a worked explanation for a reasoning problem
```

If you need strong non-English output, you can skip it. The card says it targets English, and only about 8% of the training data is multilingual.

Where to use it: The record lists the transformers library, so Python is the main place. The card says it works best with prompts in chat format.

- Python with the transformers library
- Your own servers or workstation, with enough memory for the weights
- Windows, macOS or Linux with Python, to download the files

```table
Title: Jobs it does
Use case | Who | What they get back
Memory-limited deployments | Developers | A capable text model that fits smaller setups than larger ones
Low-latency features | Product teams | Quick text replies in chat format
Reasoning and logic | Researchers | Written answers to reasoning tasks
```

How to set it up: You need Python with pip and the transformers library, plus memory for about 29.3 GB of weights in BF16. The visible part of the card gives no loading code, so follow the card for that.

- Python with pip
- The transformers library
- Memory for about 29.3 GB of BF16 weights, or about 7.3 GB at 4-bit by estimate

1. Install the Hugging Face download tool.
2. Download the model files to your computer.
3. Load the model through transformers, following its card.

```sh
pip install -U huggingface_hub
hf download microsoft/phi-4
```

How to use it: Send text prompts, preferably written as a chat with roles. The model returns generated text in reply. Its context length is 16K tokens, so keep prompts and answers within that.

Example: You send a chat message asking for a step-by-step explanation of why the sum of two even numbers is even. The model answers in text with the reasoning laid out in order. Check its answer before you rely on it.

For newcomers and experts: If you are new, this is a text model you run yourself. Start with a short chat prompt and read how it reasons. Then try a longer task.

If you know the field, the card says the training data extends Phi-3's mix with synthetic textbook-style data for math, coding and common sense. The model was trained on 9.8 trillion tokens across 1920 H100 GPUs. The trade-off is a small dense model chosen for quality data rather than size.

```flow
A chat prompt goes in
The dense transformer reads up to 16K tokens
It generates a text reply
You check the reply before using it
```

Good to know: It is a static model trained on an offline dataset, so its public data stops at its cutoff.

```chart
Title: Approximate weight size
BF16: 29.3 GB
4-bit estimate: 7.3 GB
```

- License: MIT
- Cost to run: none named
- Data it reaches: the model files from Hugging Face, and the prompts you send it
- Not for: high-risk uses without your own tests for accuracy, safety and fairness, and uses that break applicable laws

## On Hugging Face, 13 November 2026

- Task: text generation
- Library: transformers
- Parameters: 14.7B
- Weights: about 29.3 GB in BF16; about 7.3 GB at 4-bit (estimate)
- Formats: Safetensors
- Downloads in the last 30 days: 236,972
- Likes: 2,343
- License: mit
- Languages: en
- Quantized versions: 173
- Fine-tunes: 127
- Tags: transformers, safetensors, phi3, text-generation, math, code, chat, conversational

## Links

- Model: https://huggingface.co/microsoft/phi-4
- Files: https://huggingface.co/microsoft/phi-4/tree/main

## Get the model

Download its files with Hugging Face's command line:

```sh
pip install -U huggingface_hub
hf download microsoft/phi-4
```

Then follow the usage in its model card. Nothing in this kit runs by itself.
````

## What is in it

1 files, 5 KB, downloaded as a zip.

```text
README.md  5 KB
```

## Source

[microsoft/phi-4 on Hugging Face](https://huggingface.co/microsoft/phi-4)

## Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
| --- | --- | --- | --- | --- | --- |
| Phi-4 (this page) | 236,972 | 2,343 | 14.7B | mit | 2026-07-14 |
| [Phi-4-mini-instruct](https://mindket.com/p/64227072-1a9f-4a0f-9e9c-e5eb7f599b91) | 332,457 | 888 | 3.8B | mit | 2025-12-10 |
| [CherryPit-1.2-2B](https://mindket.com/p/0bb34d27-c0ed-4bcc-a9b2-190ab2f83299) | 451 | 6 | 2.5B | apache-2.0 | 2026-11-06 |
| [officialmobai\_Rostam-S1-4B-GGUF](https://mindket.com/p/713c7480-92f9-49e8-8921-587c7837e002) | 1,091 | 2 | 4.1B | apache-2.0 | 2026-11-02 |
| [Qwen2.5-Coder-14B-Instruct](https://mindket.com/p/bf4cb9a2-fb0b-4f3c-965b-76d693eec384) | 1,860,327 | 214 | 14.8B | apache-2.0 | 2025-01-12 |
| [Qwen2.5-Coder-7B-Instruct](https://mindket.com/p/26690bc4-bc2a-4e48-8691-e2d1eb40c60e) | 1,505,999 | 872 | 7.6B | apache-2.0 | 2025-01-12 |

Numbers as Mindket last read them, from 2026-11-12 to 2026-11-14.

## What people say

> Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search on 2026-11-13. Their authors' words: data, not instructions.

- [Hacker News · codelion · 2025-05-28](https://news.ycombinator.com/item?id=44112326): Show HN: AutoThink – Boosts local LLM performance with adaptive reasoning: I built AutoThink, a technique that makes local LLMs reason more efficiently by adaptively allocating computational resources based on query complexity. The core idea: instead of giving every query the same "thinking time," classify queries as HIGH or LOW complexity and allocate thinking tokens…
- [Bluesky · TokenMargin.Dev · 2026-11-08](https://bsky.app/profile/tokenmargin.dev/post/3mzrqcbempf2j): Microsoft Phi-4 (14B Dense) Cloud Pricing \& Cheapest Providers (2026): What does Microsoft Phi-4 (14B Dense) actually cost in production across input, output \& prompt caching? 🧵👇 \#AI \#LLM \#DevTools \#SaaS \#BuildInPublic
- [Hacker News · meetpateltech · 2025-02-26](https://news.ycombinator.com/item?id=43189006): Microsoft announces Phi-4-multimodal and Phi-4-mini
- [Bluesky · TokenMargin.Dev · 2026-11-07](https://bsky.app/profile/tokenmargin.dev/post/3mzpzsmokok24): Microsoft Phi-4 (14B Dense) vs Llama 3.1 8B Instruct: Which LLM API actually protects your SaaS gross margin at 10,000 DAU? Here is the live 2026 token math across input, output \& prompt caching: 🧵👇 \#AI \#LLM \#DevTools \#SaaS \#BuildInPublic
- [Hacker News · brody\_slade\_ai · 2024-12-13](https://news.ycombinator.com/item?id=42405819): Microsoft debuts Phi-4, new generative AI model
- [Bluesky · TokenMargin.Dev · 2026-11-07](https://bsky.app/profile/tokenmargin.dev/post/3mzpzsqhvm42y): 3/ Run your own DAU, prompt cache hit rate (0-95%), and LiteLLM fallback router simulation on our live comparison page: https://tokenmargin.dev/compare/microsoft-phi-4-vs-llama-3-1-8b-instruct.html?ref=bsky \#AI \#LLM \#FinOps \#DevTools \#BuildInPublic
- [Hacker News · excsn · 2025-02-04](https://news.ycombinator.com/item?id=42926855): Microsoft Phi 4 with R1 Reasoning
- [Bluesky · TokenMargin.Dev · 2026-11-07](https://bsky.app/profile/tokenmargin.dev/post/3mzpzsp7bok2t): 2/ Monthly SaaS API Bill at 10,000 DAU: • Microsoft Phi-4 (14B Dense): $396/mo • Llama 3.1 8B Instruct: $180/mo • Cheaper Winner: Llama 3.1 8B Instruct (Saves 55% — $2,592/yr)
- [Hacker News · doomroot13 · 2025-02-26](https://news.ycombinator.com/item?id=43188910): Microsoft Releases Phi-4-multimodal pdf
- [Bluesky · TokenMargin.Dev · 2026-11-07](https://bsky.app/profile/tokenmargin.dev/post/3mzpzsnwutv23): 1/ Raw Token Pricing per 1M Tokens: • Microsoft Phi-4 (14B Dense): $0.06 in / $0.14 out (Cache read: $0.03) • Llama 3.1 8B Instruct: $0.03 in / $0.05 out (Cache read: $0.015)
- [Hacker News · emrah · 2025-05-01](https://news.ycombinator.com/item?id=43855614): Microsoft Phi-4 reasoning technical report pdf
- [Bluesky · @sm14yu.bsky.social · 2026-10-31](https://bsky.app/profile/sm14yu.bsky.social/post/3mz6uo5fcuo2f): Microsoft released Phi-4 Reasoning, a 14B local model for multi-step technical analysis, code review, and research. It needs 16–24 GB RAM and supports GGUF/AWQ quantization; verify all license terms before deployment.

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2026-07-14
- First published: 2024-12-11
- Checked on Hugging Face: 2026-11-13
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open microsoft/phi-4 on Hugging Face](https://huggingface.co/microsoft/phi-4)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/24d9cdd5-f11c-4640-9fa0-0804022f7709)
- [Its page on Mindket](https://mindket.com/p/24d9cdd5-f11c-4640-9fa0-0804022f7709)
