Mindket

Phi-4

Newversion 1 · updated

Overview

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 . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • 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
Runs in
  • 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
Start with
pip install -U huggingface_hub
hf download microsoft/phi-4

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

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
IndustryWho uses itHow they use itExample
SoftwareApp developersAdd chat or reasoning to a product within limited hardwareRun it behind a support assistant that answers in English
ResearchLanguage model researchersStudy a mid-size open modelCompare its behavior with other open models
EducationLearning tool buildersBuild step-by-step help for math and logic questionsReturn 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 caseWhoWhat they get back
Memory-limited deploymentsDevelopersA capable text model that fits smaller setups than larger ones
Low-latency featuresProduct teamsQuick text replies in chat format
Reasoning and logicResearchersWritten 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.
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.

  1. A chat prompt goes in
  2. The dense transformer reads up to 16K tokens
  3. It generates a text reply
  4. 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
BF1629.3 GB
4-bit estimate7.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 and files

README

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.

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
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.
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.

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

Get the model

Download its files with Hugging Face's command line:

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.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

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

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Phi-4 This page236,9722,34314.7Bmit
Phi-4-mini-instructShares phi3 · code · text-generation332,4578883.8Bmit
CherryPit-1.2-2BShares math · code · text-generation45162.5Bapache-2.0
officialmobai_Rostam-S1-4B-GGUFShares math · code · text-generation1,09124.1Bapache-2.0
Qwen2.5-Coder-14B-InstructShares chat · code · text-generation1,860,32721414.8Bapache-2.0
Qwen2.5-Coder-7B-InstructShares chat · code · text-generation1,505,9998727.6Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-14.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

codelionShow HN: AutoThink – Boosts local LLM performance with adaptive reasoningI 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…397 points · 68 repliesTokenMargin.DevMicrosoft 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 #BuildInPublic2 likes · 1 replymeetpateltechMicrosoft announces Phi-4-multimodal and Phi-4-mini48 points · 3 repliesTokenMargin.DevMicrosoft 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 #BuildInPublic2 likes · 1 replybrody_slade_aiMicrosoft debuts Phi-4, new generative AI model24 points · 1 replyTokenMargin.Dev3/ 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 #BuildInPublic1 likeexcsnMicrosoft Phi 4 with R1 Reasoning6 points · 2 repliesTokenMargin.Dev2/ 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)1 replydoomroot13Microsoft Releases Phi-4-multimodal [pdf]3 points · 1 replyTokenMargin.Dev1/ 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)1 replyemrahMicrosoft Phi-4 reasoning technical report [pdf]2 points · 1 reply@sm14yu.bsky.socialMicrosoft 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.1 like

Searched

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k