Model reference · open weights
Phi-4-mini-reasoning is an open-weight language model from microsoft. Phi-4-mini-reasoning (BF16) weighs 7.7 GB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the microsoft/Phi-4-mini-reasoning model card, 2026-10-01
What it is
| Released by | microsoft |
|---|---|
| Released | 2025-04-29 |
| Parameters | 3.8B |
| VRAM | 7.7 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | 2 | 23K | 11.6 GB | |
| RTX 4060 Ti 16 GB | 6 | 1 | 52K | 15.4 GB |
| RTX 3090 24 GB | 13 | 3 | 111K | 23.4 GB |
| RTX 4090 24 GB | 13 | 3 | 111K | 23.4 GB |
| RTX 5090 32 GB | 21 | 5 | all 128K | 31.0 GB |
| L40S 48 GB | 33 | 8 | all 128K | 44.0 GB |
| A100 80 GB | 64 | 16 | all 128K | 78.2 GB |
| H100 80 GB | 60 | 15 | all 128K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 75 | 18 | all 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 87 | 21 | all 128K | 107 GB |
| H200 141 GB | 116 | 29 | all 128K | 138 GB |
| B200 180 GB | 151 | 37 | all 128K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 13 | 3 | 104K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 20 | 5 | all 128K | 15.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 9.5 GB | 12.7 GB |
| 5 | 13.8 GB | 29.9 GB |
| 8 | 17.0 GB | 42.8 GB |
| 16 | 25.6 GB | 77.1 GB |
| 32 | 42.8 GB | 146 GB |
| 64 | 77.1 GB | 283 GB |
One card, with vLLM's small-card settings.
From the model card
Phi-4-mini-reasoning is a lightweight open model built upon synthetic data with a focus on high-quality, reasoning dense data further finetuned for more advanced math reasoning capabilities. The model belongs to the Phi-4 model family and supports 128K token context length.
📰 Phi-4-mini-reasoning Blog, and Developer Article 📖 Phi-4-mini-reasoning Technical Report | HF paper 👩🍳 Phi Cookbook 🏡 Phi Portal 🖥️ Try It Azure
🎉Phi-4 models: [Phi-4-reasoning] | [multimodal-instruct | onnx]; [mini-instruct | onnx]
Phi-4-mini-reasoning is designed for multi-step, logic-intensive mathematical problem-solving tasks under memory/compute constrained environments and latency bound scenarios. Some of the use cases include formal proof generation, symbolic computation, advanced word problems, and a wide range of mathematical reasoning scenarios. These models excel at maintaining context across steps, applying structured logic, and delivering accurate, reliable solutions in domains that require deep analytical thinking.
This model is designed and tested for math reasoning only. It is not specifically designed or evaluated for all downstream purposes. Developers should consider common limitations of language models, as well as performance difference across languages, as they select use cases, and evaluate and mitigate for accuracy, safety, and fairness before using within a specific downstream use case, particularly for high-risk scenarios. Developers should be aware of and adhere to applicable laws or regulations (including but not limited to privacy, trade compliance laws, etc.) that are relevant to their use case.
Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.
This release of Phi-4-mini-reasoning addresses user feedback and market demand for a compact reasoning model. It is a compact transformer-based language model optimized for mathematical reasoning, built to deliver high-quality, step-by-step problem solving in environments where computing or latency is constrained. The model is fine-tuned with synthetic math data from a more capable model (much larger, smarter, more accurate, and better at following instructions), which has resulted in enhanced reasoning performance. Phi-4-mini-reasoning balances reasoning ability with efficiency, making it potentially suitable for educational applications, embedded tutoring, and lightweight deployment on edge or mobile systems. If a critical issue is identified with Phi-4-mini-reasoning, it should be promptly reported through the MSRC Researcher Portal or secure@microsoft.com
To understand the capabilities, the 3.8B parameters Phi-4-mini-reasoning model was compared with a set of models over a variety of reasoning benchmarks. A high-level overview of the model quality is as follows:
| Model | AIME | MATH-500 | GPQA Diamond |
|---|---|---|---|
| o1-mini* | 63.6 | 90.0 | 60.0 |
| DeepSeek-R1-Distill-Qwen-7B | 53.3 | 91.4 | 49.5 |
| DeepSeek-R1-Distill-Llama-8B | 43.3 | 86.9 | 47.3 |
| Bespoke-Stratos-7B* | 20.0 | 82.0 | 37.8 |
| OpenThinker-7B* | 31.3 | 83.0 | 42.4 |
| Llama-3.2-3B-Instruct | 6.7 | 44.4 | 25.3 |
| Phi-4-Mini (base model, 3.8B) | 10.0 | 71.8 | 36.9 |
| Phi-4-mini-reasoning (3.8B) | 57.5 | 94.6 | 52.0 |
Overall, the model with only 3.8B-param achieves a similar level of multilingual language understanding and reasoning ability as much larger models. However, it is still fundamentally limited by its size for certain tasks. The model simply does not have the capacity to store too much factual knowledge, therefore, users may experience factual incorrectness. However, it may be possible to resolve such weakness by augmenting Phi-4 with a search engine, particularly when using the model under RAG settings.
Phi-4-mini-reasoning supports a vocabulary size of up to 200064 tokens. The tokenizer files already provide placeholder tokens that can be used for downstream fine-tuning, but they can also be extended up to the model's vocabulary size.
Given the nature of the training data, the Phi-4-mini-instruct model is best suited for prompts using specific formats. Below are the two primary formats:
This format is used for general conversation and instructions:
Phi-4-mini-reasoning has been integrated in the 4.51.3 version of transformers. The current transformers version can be verified with: pip list | grep transformers.
Python 3.8 and 3.10 will work best.
List of required packages:
flash_attn==2.7.4.post1
torch==2.5.1
transformers==4.51.3
accelerate==1.3.0
Phi-4-mini-reasoning is also available in [Azure AI Studio](ht
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.