← Back to models

Phi-4

Microsoft Research (United States) December 12, 2024

Parameters

14.7B (dense; marketed as 14B)

Context Window

16,384 tokens

License

MIT

Key Features

Open-weight, primarily English reasoning model built as a 40-layer dense decoder-only Transformer with a 5,120-dimensional hidden state, 40 attention heads, 10 key-value heads, and a 100,352-token vocabulary. Microsoft trained Phi-4 on 9.8 trillion tokens over 21 days using 1,920 H100-80GB GPUs. Its data mixture emphasizes synthetic textbook-style material for mathematics, coding, common-sense reasoning, and general knowledge, supplemented by filtered public web documents, selected educational and code data, acquired academic books and question-answer datasets, and supervised chat data. Post-training combined supervised fine-tuning with iterative direct preference optimization. In Microsoft's SimpleEval results, Phi-4 scored 84.8 on MMLU, 56.1 on GPQA, 80.4 on MATH, and 82.6 on HumanEval; its GPQA and MATH scores exceeded the reported Llama 3.3 70B Instruct results, although its 3.0 SimpleQA score exposed substantially weaker factual recall. The model is intended for reasoning-intensive, latency-sensitive, and memory-constrained text applications.

Paper / Source

https://arxiv.org/abs/2412.08905

Official Links