<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/google-gemma-2-ollama-blog-vjp1ryzyz" -->

---
title: Google Gemma 2 · Ollama Blog | daily.dev
description: Google's Gemma 2 model family is now available to run locally via Ollama in three sizes: 2B, 9B, and 27B parameters. Google claims the 27B model outperforms...
canonical: https://daily.dev/posts/google-gemma-2-ollama-blog-vjp1ryzyz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Google Gemma 2 · Ollama Blog | daily.dev
og:description: Google's Gemma 2 model family is now available to run locally via Ollama in three sizes: 2B, 9B, and 27B parameters. Google claims the 27B model outperforms...
og:url: https://daily.dev/posts/google-gemma-2-ollama-blog-vjp1ryzyz
og:image: https://api.daily.dev/og/posts/VJp1RyzYz.png
og:image:alt: Google Gemma 2 · Ollama Blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Gemma 2 · Ollama Blog

**[Ollama](https://daily.dev/sources/ollama)** · 1 min read · 0 upvotes · 0 comments

## Summary

Google's Gemma 2 model family is now available to run locally via Ollama in three sizes: 2B, 9B, and 27B parameters. Google claims the 27B model outperforms models more than twice its size thanks to a new architecture. The post shows how to pull and run each size with a single command and how to integrate the model with LangChain and LlamaIndex.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ollama.com/blog/gemma2>

## Questions this post answers

### How do I run Google Gemma 2 locally with Ollama?

Use the command 'ollama run gemma2' to run the default 9B parameter version. For the smaller 2B model, run 'ollama run gemma2:2b', and for the larger 27B model, run 'ollama run gemma2:27b'. All three sizes are available through Ollama's model library.

_daily.dev surfaces practical guides for developers experimenting with local LLM setups like this one._

### What sizes does Google Gemma 2 come in?

Gemma 2 is released in three parameter sizes: 2B, 9B, and 27B. The 27B version features a new architecture and reportedly delivers performance surpassing models more than twice its size in benchmarks, positioning it as a leading open model at that scale.

_Comparing open model sizes and benchmarks is easier when developers track releases like Gemma 2 on daily.dev._

### How do I use Gemma 2 with LangChain or LlamaIndex?

In LangChain, import Ollama from langchain_community.llms, instantiate it with model="gemma2", then call llm.invoke() with a prompt. In LlamaIndex, import Ollama from llama_index.llms.ollama, instantiate the same way, and call llm.complete() with a prompt. Both integrations route requests through the locally running Ollama model.

_daily.dev helps developers stay current on integrating new open models into their LLM tooling stack._

## Similar posts on daily.dev

- [Google's free Gemma 4 model runs on hardware you probably already own](https://daily.dev/posts/google-s-free-gemma-4-model-runs-on-hardware-you-probably-already-own-u5po7zub9) · XDA Developers · 6 upvotes · 0 comments
- [Gemma 3 Local LLM Deployment: Google's AI for Developers \(2026\)](https://daily.dev/posts/gemma-3-local-llm-deployment-google-s-ai-for-developers-2026--any6cycmf) · SitePoint · 0 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#langchain](https://daily.dev/tags/langchain), [#ollama](https://daily.dev/tags/ollama)

[View this post on daily.dev](https://daily.dev/posts/google-gemma-2-ollama-blog-vjp1ryzyz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Google Gemma 2 · Ollama Blog","url":"https://daily.dev/posts/google-gemma-2-ollama-blog-vjp1ryzyz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/google-gemma-2-ollama-blog-vjp1ryzyz"},"datePublished":"2026-08-23T12:23:55.841Z","dateModified":"2026-08-23T12:55:43.797Z","description":"Google's Gemma 2 model family is now available to run locally via Ollama in three sizes: 2B, 9B, and 27B parameters. Google claims the 27B model outperforms...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/03fb1a10ef158f8986c9778334c2af42?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/03fb1a10ef158f8986c9778334c2af42?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Ollama","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ollama","logo":"https://media.daily.dev/image/upload/s--dRYYkBCj--/f_auto,q_auto/v1787487632/logos/ollama-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/ollama"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/google-gemma-2-ollama-blog-vjp1ryzyz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,langchain,ollama","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ollama","item":"https://daily.dev/sources/ollama"},{"@type":"ListItem","position":3,"name":"Google Gemma 2 · Ollama Blog"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/google-gemma-2-ollama-blog-vjp1ryzyz#faq","mainEntity":[{"@type":"Question","name":"How do I run Google Gemma 2 locally with Ollama?","acceptedAnswer":{"@type":"Answer","text":"Use the command 'ollama run gemma2' to run the default 9B parameter version. For the smaller 2B model, run 'ollama run gemma2:2b', and for the larger 27B model, run 'ollama run gemma2:27b'. All three sizes are available through Ollama's model library. daily.dev surfaces practical guides for developers experimenting with local LLM setups like this one."}},{"@type":"Question","name":"What sizes does Google Gemma 2 come in?","acceptedAnswer":{"@type":"Answer","text":"Gemma 2 is released in three parameter sizes: 2B, 9B, and 27B. The 27B version features a new architecture and reportedly delivers performance surpassing models more than twice its size in benchmarks, positioning it as a leading open model at that scale. Comparing open model sizes and benchmarks is easier when developers track releases like Gemma 2 on daily.dev."}},{"@type":"Question","name":"How do I use Gemma 2 with LangChain or LlamaIndex?","acceptedAnswer":{"@type":"Answer","text":"In LangChain, import Ollama from langchain_community.llms, instantiate it with model=\"gemma2\", then call llm.invoke() with a prompt. In LlamaIndex, import Ollama from llama_index.llms.ollama, instantiate the same way, and call llm.complete() with a prompt. Both integrations route requests through the locally running Ollama model. daily.dev helps developers stay current on integrating new open models into their LLM tooling stack."}}]}
```

