Phi-4

microsoft/phi-4 by microsoft

Microsoft's 14B dense model from December 2024, trained heavily on synthetic textbook-style data for maths and reasoning, with a 16K context.

Phi-4 is a 14B dense model trained on about 9.8T tokens, much of it synthetic textbook-style data generated for reasoning. Against Phi-3 at the same size, MATH and GPQA rose sharply: MATH from 44.6 to 80.4 and GPQA from 31.2 to 56.1. Factual recall dropped, with SimpleQA falling from 7.6 to 3.0.

Its context window is 16K tokens and Microsoft targets it at English, as only about 8% of the training data is multilingual. MIT licensed.

Specifications

Context window
16,384 tokens
Output
text, code
Providers
1 (0 EU-sovereign)

Providers, pricing and carbon

Phi-4 across providers. Prices in EUR per 1M tokens; carbon in gCO₂e per 1M tokens in the provider's lowest-carbon region.
ProviderEU-sovereignInput €/1MOutput €/1MgCO₂e/1M tokensRegions
deepinfraNo€0.0649€0.12991186United States