← all repositories
google-deepmind/gemma

Google's Gemma models get an official JAX toolkit

DeepMind's open-weights LLMs finally have a first-party library that treats fine-tuning as a first-class citizen, not an afterthought.

5.6k stars Python Language ModelsML Frameworks
gemma
Not currently ranked — collecting fresh signals.
star history

What it does

This is Google’s own Python package for running and fine-tuning its Gemma family of open-weights LLMs. Built on JAX, it wraps model loading, sampling, and training into a single gm namespace. The same ChatSampler API spans all Gemma versions from 2 through 4, including the newer multi-modal variants that accept images inline.

The interesting bit

Most model releases ship with reference implementations that feel like homework assignments. Here, the unified API across generations is the quietly useful part — you can swap a Gemma 2 text model for a Gemma 4 vision model without rewriting your conversation loop. The library also bakes in LoRA and fine-tuning utilities rather than leaving you to reconstruct them from blog posts.

Key highlights

  • First-party JAX implementation from DeepMind, not a community port
  • Single ChatSampler API covers text-only and multi-modal (image + text) conversations
  • Built-in support for fine-tuning and LoRA, with Colab tutorials
  • Runs on CPU, GPU, or TPU; GPU memory requirements start at 8GB for smaller checkpoints
  • Model weights downloaded separately via documented checkpoint paths

Caveats

  • Gemma 4 technical report is listed as “coming soon,” so capabilities claims for the newest model are currently unverified
  • GPU memory jumps to 24GB+ for 7B-parameter checkpoints, which may exclude consumer hardware for larger variants

Verdict

Worth a look if you’re already in the JAX ecosystem and want Google’s open models without Hugging Face indirection. Skip it if you’re committed to PyTorch or need production serving infrastructure — this is a research and experimentation toolkit, not a deployment platform.

Frequently asked

What is google-deepmind/gemma?
DeepMind's open-weights LLMs finally have a first-party library that treats fine-tuning as a first-class citizen, not an afterthought.
Is gemma open source?
Yes — google-deepmind/gemma is open source, released under the Apache-2.0 license.
What language is gemma written in?
google-deepmind/gemma is primarily written in Python.
How popular is gemma?
google-deepmind/gemma has 5.6k stars on GitHub.
Where can I find gemma?
google-deepmind/gemma is on GitHub at https://github.com/google-deepmind/gemma.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.