Google Gemma 2

June 27, 2024

Ollama in Noogler hat with Gemma 2 logo

Google Gemma 2 is now available in three sizes, 2B, 9B and 27B, featuring a brand new architecture designed for class leading performance and efficiency.

To run Gemma 2:

ollama run gemma2

Class leading performance

At 27 billion parameters, Gemma 2 delivers performance surpassing models more than twice its size in benchmarks. This breakthrough efficiency sets a new standard in the open model landscape.

Three sizes: 2B, 9B and 27B parameters

The initial release of Gemma 2 includes two sizes:

Using Gemma 2 with popular tooling

LangChain

from langchain_community.llms import Ollama
llm = Ollama(model="gemma2")
llm.invoke("Why is the sky blue?")

LlamaIndex

from llama_index.llms.ollama import Ollama
llm = Ollama(model="gemma2")
llm.complete("Why is the sky blue?")