Microsoft's lightweight (3.8B) Phi-family language model. Dense decoder-only Transformer, 128K context, 22 languages, strong math/code reasoning. MIT license.
Context window
128K
tokens
Parameters
3.8B
parameters
Release date
20 August 2024
Access:DownloadAPIHostedDeployment:๐ป Localโ Cloud๐ฑ On-device
Overview
Access & deployment
DownloadAPIHosted
LocalCloudOn-device
Weights: Open source
Key parameters
๐ Context: 128K
๐งฉ Parameters: 3.8B
โ Toolsย ยทย โ Fine-tuning
๐ฅ Input: text
Technical specification
Context window
128K
tokens
Parameters
3.8B
parameters
License
MIT
Hardware requirements
Designed for memory/compute-constrained environments and latency-bound scenarios. Dense 3.8B decoder-only Transformer.
Features:โ Tool useโ Fine-tuning
Modalities
โฌ Input
text
โฌ Output
textcode
Capabilities and applications
Native model capabilities
Language modeling
Ability to predict subsequent tokens and generate coherent natural-language text based on the preceding context.
Category: language
Reasoning
The model's ability to reason logically and solve complex problems.
Category: reasoning
Mathematical reasoning
The model's ability to solve mathematical tasks requiring multi-step reasoning โ equations, proofs, combinatorics, geometry, calculus and competition-level problems.
Category: reasoning
Coding
Generating, analysing and modifying code in many programming languages. Covers writing functions, debugging, refactoring, code review, and creating tests. Measured by benchmarks such as HumanEval and SWE-bench.
Category: coding
Multilingual
Competence in many natural languages (from a few to over a hundred): understanding, generation, translation, and code-switching within a single conversation. Frontier models support a wide range of languages with comparable quality.
Category: language
Long context
Support for large context windows โ tens to hundreds of thousands (or millions) of input tokens. Enables analysis of entire codebases, long documents, and many parallel conversations without losing earlier information. GPT-5.1 supports 400,000 tokens.
Category: language
Instruction following
Precisely following instructions contained in the prompt: response format, length, style, constraints (e.g. 'reply in six words'). GPT-5.1 significantly improved this capability compared to GPT-5.
Category: language
Benchmark results
2 benchmarks
MMLU
accuracy
69%
๐ technical_report
GSM8K
accuracy ยท mathematical reasoning
86.2%
๐ technical_report
Technical architecture
Core Architecture
Sources and related pages
1 source
Browse related topics
