Sapling Logo

Llama 2 vs. Phi

LLM Comparison


Llama 2

Llama 2

Overview

Llama 2 is Meta AI's open source LLM available for both research and commercial use cases (assuming you're not one of the top consumer companies in the world).


The successor to LLaMA (henceforce "Llama 1"), Llama 2 was trained on 40% more data, has double the context length, and was tuned on a large dataset of human preferences (over 1 million such annotations) to ensure helpfulness and safety. It outperforms other open source models on both natural language understanding datasets as well as in head-to-head face-offs.


Initial release: 2023-07-18

Phi

Phi

Overview

Phi is a series of compact language models developed by Microsoft using textbooks and synthetic data.


Phi-1 and Phi-2 are 1.3B and 2.7B parameter language models, respectively, developed by Microsoft to demonstrate the ability of smaller language models trained on high-quality data. Despite its size and not having an instruct finetuned counterpart, the Phi-2 model is well-suited to research and experimentation given its size and MIT license.


Initial release: 2023-06-20

Looking for an LLM API/SDK that works out of the box? No prompts or ad hoc guardrails.

Sapling API
More Comparisons

Llama 2

Phi

Products & Features
Instruct Models
Coding Capability
Customization
Finetuning
Open Source
License Custom (Commercial OK) MIT
Model Sizes 7B, 13B, 70B 1.3B, 2.7B