Skip to content
llmmodels

Llama-3.1-8B-Instruct vs Phi-3-medium-128k-instruct

Phi-3-medium-128k-instruct wins 2 of 3 benchmarks both models report.

SpecLlama-3.1-8B-InstructPhi-3-medium-128k-instruct
ProviderMetaMicrosoft
ReleasedJul 23, 2024 (better)May 7, 2024
TypeChat LLMChat LLM
Parameters8B14B
Context window128K—
Max output16K—
Input price / 1M$0.02—
Output price / 1M$0.04—
Input modalitiestexttext
Open weightsYesYes
Licensellama3.1mit
Reasoning modeNoNo
Tool callingYesNo
API providers19 (better)—
Epoch Capabilities Index110.9—
GPQA Diamond27.0%27.6% (better)
OTIS Mock AIME1.7%—
MATH Level 522.9% (better)17.6%
MMLU56.1%78.0% (better)
GSM8K82.4%—
HellaSwag—82.4%

About Llama-3.1-8B-Instruct

Llama-3.1-8B-Instruct is an open-weight chat llm from Meta, released Jul 23, 2024. It has 8B parameters and a 128K-token context window. API pricing starts at $0.02 per million input tokens and $0.04 per million output tokens. It is available from 19 API providers. It scores 110.9 on the Epoch Capabilities Index. Full Llama-3.1-8B-Instruct specs →

About Phi-3-medium-128k-instruct

Phi-3-medium-128k-instruct is an open-weight chat llm from Microsoft, released May 7, 2024. It has 14B parameters. Full Phi-3-medium-128k-instruct specs →

Compare other models

FAQ

Which is better, Llama-3.1-8B-Instruct or Phi-3-medium-128k-instruct?

Phi-3-medium-128k-instruct wins 2 of 3 benchmarks both models report.

Are Llama-3.1-8B-Instruct and Phi-3-medium-128k-instruct open source?

Llama-3.1-8B-Instruct is open-weight; Phi-3-medium-128k-instruct is open-weight.