Skip to main content

Model guide

Phi-4 Mini Reasoning

Phi-4 Mini Reasoning is a small model specifically trained and evaluated for mathematical reasoning. Try a problem with a known solution rather than choosing it as an all-purpose writing assistant. Its generated working can be long, so leave output room and check both the final value and the assumptions used.

3.8BReasoning131,072 token contextView the model card →

At a glance

Parameters
3.8B
Accepts
Text
Returns
Text
Published context limit
131,072 tokens
Model format
safetensors · GGUF
Software and download hosts
Ollama · MLX. Follow the exact setup below; this list does not establish support for every format, input type or software version.
Suggested compression
Q4_K_M
Model-weight download
Q4_K_M weights · 2.49 GBbartowski (community conversion)microsoft_Phi-4-mini-reasoning-Q4_K_M.gguf
Languages
Unknown
License
MIT

Will it fit?

Phi-4 Mini Reasoning · Q4_K_M download. Fit depends on your computer, the app you run it in and the conversation length you need.

Check on your computer

Best for

  • Try an English math problem with a checkable final result. Repeat it with one condition changed and score the new result.

Choose something else when

  • Use Phi-4 Mini Instruct if the job is general assistant chat rather than a math problem.

First setup

After loading this reasoning model with the setup below, ask: Solve 2*x + 3 = 11. Give the final value and verify it by substitution. Use the publisher’s sampling settings for this checkpoint, a 4,096-token context and an initial 1,024-token output cap. A checkable final answer is x = 4, because 2*4 + 3 = 11. If the output cap stops reasoning before a final answer, treat that as an interrupted answer; increase the output allowance only within the available context and memory. A correct answer to this small example does not establish general reasoning accuracy. Change the constant to 5. Verify x=3 by substitution. See the publisher guidance.

Other models for this task