LLM Reference

Phi-3

Microsoft ResearchMITOpen Source
15 models2024Up to 128K ctxFrom $0.05/1M input

About

The Phi-3 family, developed by Microsoft, consists of small language models (SLMs) optimized for Azure AI 1. These models are known for their capability and cost-effectiveness, outperforming larger models in tasks such as language processing, reasoning, coding, and math 1. The Phi-3 lineup includes models like the Phi-3-mini with 3.8 billion parameters, and the Phi-3-small and Phi-3-medium, each with 7 billion and 14 billion parameters, respectively 1. Notably, the Phi-3-mini supports up to a 128K token context window with minimal quality impact, a feature rare for models of its size 1. These models are instruction-tuned for straightforward usage and are optimized for various processing platforms, including GPUs, CPUs, and even mobile hardware 1. Despite their prowess, the Phi-3 models might perform slightly below larger models on factual knowledge tests due to their relatively smaller size 1.

Specifications(15 models)

Phi-3 model specifications comparison
ModelReleasedContextParametersVisionMultimodal
Phi 3.5 Mini Instruct2024-08128K3.8BNoNo
Phi 3.5 MoE Instruct2024-08128K16x3.8B (42B, 6.6B active)NoNo
Phi 3.5 Vision Instruct2024-08128K4.1BYesYes
Phi-3 Silica2024-063.3BNoNo
Phi-3 Medium 128K2024-05128K14BNoNo
Phi-3 Medium 4K2024-054K14BNoNo
Phi-3 Small 128K2024-05128K7BNoNo
Phi-3 Small 8K2024-058K7BNoNo
Phi-3 Vision2024-05128K4.2BYesNo
DeepInfra Phi 3 Mini 4K Instruct2024-0540963800000000NoNo
DeepInfra Phi 3 Small 128K Instruct2024-05128k7000000000NoNo
Phi-3 Mini 128K2024-04128K3.8BNoNo
Phi-3 Mini 4k2024-044K3.8BNoNo
Phi-3 Mini2024-0440963.8BNoNo
Phi-3 Medium2024-04409614BNoNo

Available From(6 providers)

Pricing

Phi-3 model pricing by provider
ModelProviderInput / 1MOutput / 1MType
DeepInfra Phi 3 Mini 4K InstructDeepInfra$0.05$0.15Serverless
Phi-3 Mini 128KReplicate API$0.05$0.25Serverless
Phi-3 Mini 4kReplicate API$0.05$0.25Serverless
Phi-3 Mini 128KFireworks AI$0.1$0.1Provisioned
Phi-3 Medium 4KDeepInfra$0.14$0.41Serverless
Phi-3 VisionFireworks AI$0.2$0.2Serverless
Phi-3 Mini 4kAzure OpenAI$0.28$0.84Serverless
Phi-3 VisionAzure OpenAI$0.28$0.84Provisioned
Phi-3 Mini 128KAzure OpenAI$0.3$0.9Serverless
Phi-3 Small 8KAzure OpenAI$0.32$0.96Serverless
Phi-3 Small 128KAzure OpenAI$0.35$1.05Serverless
Phi-3 Medium 4KAzure OpenAI$0.45$1.35Serverless
DeepInfra Phi 3 Small 128K InstructDeepInfra$0.45$0.65Serverless
Phi-3 Medium 128KAzure OpenAI$0.5$1.5Serverless
Phi 3.5 MoE InstructFireworks AI$0.5$0.5Serverless
Phi 3.5 Mini InstructFireworks AI$0.9$0.9Serverless

Frequently Asked Questions

What is Phi-3?
The Phi-3 family, developed by Microsoft, consists of small language models (SLMs) optimized for Azure AI 1. These models are known for their capability and cost-effectiveness, outperforming larger models in tasks such as language processing, reasoning, coding, and math 1. The Phi-3 lineup includes models like the Phi-3-mini with 3.8 billion parameters, and the Phi-3-small and Phi-3-medium, each with 7 billion and 14 billion parameters, respectively 1. Notably, the Phi-3-mini supports up to a 128K token context window with minimal quality impact, a feature rare for models of its size 1. These models are instruction-tuned for straightforward usage and are optimized for various processing platforms, including GPUs, CPUs, and even mobile hardware 1. Despite their prowess, the Phi-3 models might perform slightly below larger models on factual knowledge tests due to their relatively smaller size 1.
How many models are in the Phi-3 family?
The Phi-3 family contains 15 models.
What is the latest Phi-3 model?
The latest model is Phi 3.5 Mini Instruct, released in 2024-08.
How much does Phi-3 cost?
Phi-3 models range from $0.05/1M to $0.9/1M input tokens depending on the model and provider.

Models(15)