Skip to content
IFAI

Open source

Google drops Gemma, a powerful open-source model you can run locally

Published Reach 61

Google just released Gemma, a new lightweight family of open models built on the same research as Gemini. Available in 2B and 7B parameter sizes, it runs directly on laptops or desktops, beats rival open models at its scale, and comes with permissive commercial licensing. It gives local and open-source AI developers a massive new alternative to Llama.

Google drops Gemma, a powerful open-source model you can run locally
Image: blog.google

Gemma is a family of lightweight, state-of-the-art open models from Google that lets you run frontier AI directly on your laptop or local workstation.

Built on the same research, data, and infrastructure behind Gemini, Gemma comes in two parameter sizes: 2B and 7B. Each size includes both raw pretrained base models and instruction-tuned variants, all featuring an 8K token context window.

What it does and what you need to run it

Gemma brings Gemini-level engineering down to personal hardware. You don't need a multi-GPU server farm to get real work done with it.

The 2B version is engineered for CPU execution, mobile environments, and on-device applications. The 7B version is built for efficient deployment on consumer GPUs, TPUs, or standard workstations. Both can run locally on consumer hardware without quantization.

Google released the model weights under a permissive commercial license that allows organizations of any size to build and ship commercial products. Alongside the weights, Google dropped a Responsible Generative AI Toolkit designed to help developers inspect model behavior and implement safety guardrails.

Performance and benchmarks

On the Hugging Face Open LLM Leaderboard, Gemma 7B posts an impressive score of 63.75, trained on an enormous 6T tokens. That puts it ahead of Llama 2 7B (54.32) and Mistral 7B (60.97), and puts it surprisingly close to Llama 2 70B territory.

The 2B variant, trained on 2T tokens, scored 46.51. While snappy and efficient on ultra-constrained devices, it still trails specialized small contenders like Microsoft's Phi-2 on raw benchmark scores.

For developers building chat interfaces, keep in mind that the instruct models rely on a specific conversational turn-tag template that you must follow to get predictable responses.

How to get started

You can pull the models right away from the Hugging Face Hub, with native support rolled into Transformers 4.38 alongside 4-bit quantization and PEFT tooling.

If you want to run code in the cloud, Kaggle and Google Colab provide ready-to-use free notebooks. Google Cloud users also get access through Vertex AI with standard new-account credits, and a live web demo is up on Hugging Chat.

Framework integration is broad out of the box, with native implementations across PyTorch, JAX, and Keras 3.0 for TensorFlow.

Why it matters

If you are an engineer or indie hacker looking to run cost-effective local pipelines or build on-device intelligence, Gemma 7B gives you a premier option that punches way above its weight class.

Google jumping into open weights with Gemini-derived tech sends a clear message to Meta and Mistral: high-performance, consumer-grade open models are now the primary battleground for developer mindshare.

Sources (2)

  1. [1]
    blog.google(opens in a new tab)Originalblog.google
  2. [2]
    huggingface.co(opens in a new tab)Reporthuggingface.co

Topic trackerGoogle Gemma model family

Every story on this topic, newest first.

  1. Google drops Gemma 2 with giant-killing 27B model
  2. Google unlocks 2M context and code execution for Gemini
  3. Google drops CodeGemma for lightweight code completion
  4. Google drops Gemma, a powerful open-source model you can run locallyThis story

Best of AI, daily