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…
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.
pip install -U huggingface_hub hf download microsoft/phi-4
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.
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.
| 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.
The record lists the transformers library, so Python is the main place. The card says it works best with prompts in chat format.
| 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 |
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.
pip install -U huggingface_hub hf download microsoft/phi-4
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.
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.
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.
It is a static model trained on an offline dataset, so its public data stops at its cutoff.
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.
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.
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.
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
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.
README.md 5 KB
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 | |
| Phi-4-mini-instructShares phi3 · code · text-generation | 332,457 | 888 | 3.8B | mit | |
| CherryPit-1.2-2BShares math · code · text-generation | 451 | 6 | 2.5B | apache-2.0 | |
| officialmobai_Rostam-S1-4B-GGUFShares math · code · text-generation | 1,091 | 2 | 4.1B | apache-2.0 | |
| Qwen2.5-Coder-14B-InstructShares chat · code · text-generation | 1,860,327 | 214 | 14.8B | apache-2.0 | |
| Qwen2.5-Coder-7B-InstructShares chat · code · text-generation | 1,505,999 | 872 | 7.6B | apache-2.0 |
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.
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…
Qwen · Kit
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…
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…
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…
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…
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.