Gemma
A JAX library for using and fine-tuning Gemma, Google DeepMind's family of open-weight large language models built on Gemini research.
Gemma is the implementation behind the gemma PyPI package, a JAX library for using and fine-tuning Gemma models. A single ChatSampler API works across Gemma versions 2, 3, 3n and 4, supporting multi-turn, multi-modal conversation.
It installs with pip install gemma after installing JAX for CPU, GPU or TPU, and its documentation includes Colabs and tutorials for sampling, multi-modal use, fine-tuning and LoRA, alongside additional scripts in an examples folder.
It runs on CPU, GPU or TPU; the material recommends 8GB or more of GPU RAM for the 2B checkpoint and 24GB or more for the 7B checkpoint. It is written in Python, licensed under Apache-2.0, and is not an official Google product.