Phi-1 Models by Microsoft Research

Microsoft ResearchMITOpen sourceOpen Source
Microsoft Research releases · 7 in the last 12 monthsChangelog →
2 models2023Up to 2K ctxFrom $0.070/1M input

Last refreshed 2026-10-17. Next refresh: weekly.

Details

LicenseMITOSI-approved
Commercial usePermitted
Models2
Released2023
Max context2K

About

The Phi-1 family of large language models (LLMs), developed by Microsoft, comprises several models designed for specific tasks, primarily focusing on code generation and reasoning. Phi-1, the initial model in the family, is a transformer-based model with 1.3 billion parameters, specializing in basic Python coding 18. Its training utilized a blend of "textbook quality" data sourced from the web and synthetic data generated using GPT-3.5 18. Despite its relatively small size compared to other LLMs, Phi-1 demonstrates impressive accuracy, exceeding 50% on the HumanEval benchmark for simple Python coding tasks 18. Subsequent models in the Phi family, such as Phi-1.5 and Phi-2, build upon this foundation, expanding capabilities to encompass broader natural language tasks while maintaining a focus on efficiency and high-quality data 911. These models showcase Microsoft's research into creating smaller, more efficient LLMs that rival the performance of much larger models 29.

Decision facts

Best fit
codingmath-heavy promptsstructured outputs
Capability starting point
Phi-1 with 2K context
Lowest tracked input
Phi-1.5 · $0.070/1M · Microsoft Foundry
Closest related family
Agents-A1

Current Variants

Use-when guidance is based on each model's tracked capabilities, context window, release date, and replacement status.

1 in view1 retired
Phi-1Current

Use when the workload needs 2K context and 1.3B parameters.

2023-062K context1.3B parameters

Release Timeline

2 release groups
2023-09
1 retired
Phi-1.5
2K context1.3B parameters
Replaced
2023-06
1 current
Phi-1
2K context1.3B parameters
Current

Replaced By

Keep for legacy integrations; evaluate Phi-4 14B before new work.

Specifications(2 models)

Phi-1 model specifications comparison
ModelReleasedContextParameters
Phi-12023-062K1.3B

Available From(1 provider)

Pricing

Models(2)