Introducing Gemma models in Keras- Google Developers Blog
Feb 21, 2024Martin Görner

Summary
This post announces the integration of Gemma models into the KerasNLP collection, leveraging Keras 3's multi-backend support (JAX, PyTorch, TensorFlow). It introduces a new LoRA API for parameter-efficient fine-tuning, significantly reducing trainable parameters. Additionally, it details model-parallel training capabilities using Keras's distribution API, enabling distributed training across multiple GPUs/TPUs by sharding model weights. Code examples are provided for getting started, LoRA fine-tuning, and distributed training.
More from the Diffusion Models for Text Generation trail
- DiffusionGemma: The Developer Guide- Google Developers Blog
- Introducing Veo 3.1 and new creative capabilities in the Gemini API- Google Developers Blog
- Own your AI: Learn how to fine-tune Gemma 3 270M and run it on-device- Google Developers Blog
- Gemini 2.5 Flash Image now ready for production with new aspect ratios- Google Developers Blog
- Unlocking Multi-Spectral Data with Gemini- Google Developers Blog