Sapling Logo

Gemma 2 vs. Phi

LLM Comparison


Gemma 2

Gemma 2

Overview

Gemma 2 succeeds the Gemma family of lightweight open models from Google built using the same processes used for the the larger Gemini models.


Gemma 2 is the successor to the Gemma family of open models, including larer models (9B and 27B parameters) with outsized performance across benchmarks. Using a combination of techniques such as training on twice as much data, knowledge distillation, and architectural improvements such as sliding window attention, logit soft-capping, and model merging, Gemma 2 outperforms models of similar size (such as Llama 3), with the 27B parameter model being competitive with models more than twice its size (such as Llama 70B).


Initial release: 2024-06-27

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

Gemma 2

Phi

Products & Features
Instruct Models
Coding Capability
Customization
Finetuning
Open Source
License Custom MIT
Model Sizes 2.6B, 9B, 27B 1.3B, 2.7B