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
| Provider | EU-sovereign | Input €/1M | Output €/1M | gCO₂e/1M tokens | Regions |
|---|---|---|---|---|---|
| deepinfra | No | €0.0649 | €0.1299 | 1186 | United States |