Skip to content
← Models
Open weightsMicrosoft/10 trustVerified
Phi-4 logo

Phi-4

14B open-weights SLM that punches above its weight on math and reasoning

Visit official page →

About

Microsoft's Phi-4 is a 14-billion-parameter dense decoder-only Transformer trained on ~9.8 trillion tokens of high-quality synthetic and curated organic data. It became a flagship example of the "small model, big reasoning" trend: strong STEM, math, and code performance from a model that runs on a single workstation GPU. Weights are fully open under the MIT license (verified on the Hugging Face repo), and it is supported by vLLM, llama.cpp, Ollama (ollama pull phi4), and Azure AI Foundry. Note: Phi-4 itself is text-only — multimodal variants (Phi-4-multimodal, Phi-4-mini) are separate releases.

Specs

Context window

16,384 tokens

Pricing

Weights free under MIT. No single official per-token price — hosted inference via Azure AI Foundry, OpenRouter, Together AI etc. with provider-dependent pricing. (No official rate card found; hosted prices conflict across providers.)

Free quota

No official free API tier verified; weights free to self-host (Ollama, LM Studio, vLLM).

API access

Azure AI Foundry serverless API; OpenRouter, Together AI and other inference hosts; self-host via vLLM / llama.cpp / Ollama / LM Studio / Hugging Face Transformers.

Weights

Open weights

Released

January 8, 2025

Benchmarks

Provider-reported (Phi-4 Technical Report, arXiv 2412.08905, simple-evals framework): MMLU 84.8, GPQA 56.1, MATH 80.4, MGSM 80.6, HumanEval 82.6, HumanEval+ 82.8, ArenaHard 75.4 — beating GPT-4o-mini and Llama-3.3-70B on MATH, GPQA and HumanEval. Independent: third-party benchmark runs beyond provider tables are thin; coverage is press-level (independent tech outlets verified the launch specs and HF release, but did not reproduce evals). Treat head-to-head wins as provider-claimed.

Provider-reported unless a source says otherwise. Benchmarks are marketing-adjacent by nature — treat them as directional.

Use cases

chatcodereasoningdata

Trust score — 8/10

/10 trustVerified

Scored 8/10 (verified tier, metrics-v1). Evidence: HF: microsoft/phi-4; HF downloads 372,259 (peer-normalized); released 643 days ago. Manual review: benchmarks from Microsoft tech report; thin independent reproductions; no official per-token rate card. License: MIT.

How the trust score is built

Full methodology →
Adoption · stars/downloads, log-scaled vs peers
8.5/10
Maintenance · recency, releases, issue load
5.0/10
Openness · license + docs
10.0/10
Manual review · sanity read + red-flag check
8.0/10
  • · HF: microsoft/phi-4
  • · HF downloads 372,259 (peer-normalized)
  • · released 643 days ago
  • · manual review: benchmarks from Microsoft tech report; thin independent reproductions; no official per-token rate card

More in the phi family

Sources