Model reference · open weights

Phi-4-mini-reasoning

LLMs microsoft Text gen 1 build Open weights 59k dl/mo

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.

  • Phi-4-mini-reasoning is a 3.8B parameter text-generation model developed by Microsoft for mathematical reasoning tasks.
  • It supports a 128K token context length and is trained exclusively on English data.
  • The model is released under the MIT license.

Summary of the microsoft/Phi-4-mini-reasoning model card, 2026-10-01

What it is

Released bymicrosoft
Released2025-04-29
Parameters3.8B
VRAM7.7 GB for the weights

What it runs on

Memory and cards for Phi-4-mini-reasoning (BF16)

7.7 GBweights, file size
131 MBcache per 1K tokens
752 MBruntime overhead, at least
131,072 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB223K11.6 GB
RTX 4060 Ti 16 GB6152K15.4 GB
RTX 3090 24 GB133111K23.4 GB
RTX 4090 24 GB133111K23.4 GB
RTX 5090 32 GB215all 128K31.0 GB
L40S 48 GB338all 128K44.0 GB
A100 80 GB6416all 128K78.2 GB
H100 80 GB6015all 128K78.1 GB
RTX PRO 6000 Blackwell 96 GB7518all 128K93.8 GB
DGX Spark (GB10) 128 GB unified8721all 128K107 GB
H200 141 GB11629all 128K138 GB
B200 180 GB15137all 128K176 GB
2× RTX 3060 12 GB
tensor parallel
133104K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
205all 128K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
19.5 GB12.7 GB
513.8 GB29.9 GB
817.0 GB42.8 GB
1625.6 GB77.1 GB
3242.8 GB146 GB
6477.1 GB283 GB

One card, with vLLM's small-card settings.

From the model card

What microsoft says about Phi-4-mini-reasoning

Read the model card

Model Summary

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]

Intended Uses

Primary Use Cases

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.

Use Case Considerations

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.

Release Notes

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

Model Quality

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:

ModelAIMEMATH-500GPQA Diamond
o1-mini*63.690.060.0
DeepSeek-R1-Distill-Qwen-7B53.391.449.5
DeepSeek-R1-Distill-Llama-8B43.386.947.3
Bespoke-Stratos-7B*20.082.037.8
OpenThinker-7B*31.383.042.4
Llama-3.2-3B-Instruct6.744.425.3
Phi-4-Mini (base model, 3.8B)10.071.836.9
Phi-4-mini-reasoning (3.8B)57.594.652.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.

Usage

Tokenizer

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.

Input Formats

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:

Chat format

This format is used for general conversation and instructions:

Inference with transformers

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.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms