G
google-deepmind/gemma★ 5,901 · Python
JAX SDK for local Gemma inference and fine-tuning
Apache-2.0 · Commercial Friendlyv4.0.1
Side-by-side 2026 comparison in LLMs & Inference: Lightning-AI/pytorch-lightning leads both total GitHub adoption (★ 31.5k) and recent 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
JAX SDK for local Gemma inference and fine-tuning
PyTorch training with a managed Trainer and Fabric for custom distributed loops
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | google-deepmind/gemma | Lightning-AI/pytorch-lightning |
|---|---|---|
| Total GitHub Stars | ★ 5,901 | ★ 31,488 |
| 24h / 7d Velocity | +2 / +23 | +0 / +31 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 92/100 | A+ · 95/100 |
| Deployment Signals | Local AI · GPU · API | GPU |
| Primary Language | Python | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated 8d ago | Updated yesterday |
| Latest Release | v4.0.1 | 2.6.6 |
| Best For | Python/JAX teams that need local Gemma inference, multimodal chat with a compatible checkpoint, or a starting point for fine-tuning | Teams standardizing PyTorch pretraining and fine-tuning across hardware, or researchers who need distributed execution without giving up their custom loops |
gemma is a JAX-based Python package requiring Python 3.12 or newer.gm.nn.Gemma4_E4B() can be paired with gm.ckpts.CheckpointPath.GEMMA4_E4B_IT via gm.ckpts.load_params.gm.text.ChatSampler spans Gemma 2, 3, 3n, and 4 and exposes an explicit multi_turn option.<|image|> placeholders with an images argument and follows up in a second turn.pip install gemmaLightningModule defines the step and optimizer hooks; Trainer.fit drives execution.launch, setup, setup_dataloaders, and backward without taking control of the optimizer schedule.devices=8, num_nodes=32 illustrates a 256-GPU configuration, not a benchmark.val_loss; logger integrations include TensorBoard, Weights & Biases, Comet, and MLflow.pip install lightningSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy