Learn how to easily finetune FunctionGemma, a small language model, using the JAX-based Tunix library on Google TPUs for fast and cost-effective agent development.- Google Developers Blog
Feb 3, 2026Wei Wei

Summary
This post details the process of fine-tuning the FunctionGemma language model using the JAX-based Tunix library on Google TPUs. It provides code examples for loading models and datasets, setting up JAX sharding, applying LoRA adapters with Qwix, defining a custom dataset for completion-only loss, and initiating the training process. The post highlights the efficiency of Tunix in achieving high TPU utilization and significant accuracy improvements after one epoch, and demonstrates merging LoRA adapters for on-device deployment with LiteRT.
More from the Google Developer Platform trail
- Autonomous LLM post-training with Tunix on TPUs- Google Developers Blog
- HeyGen x Google Cloud: Bringing Avatar IV to TPUs- Google Developers Blog
- Run Ray on TPU, Part 2: Ray AI libraries- Google Developers Blog
- Scaling Agentic RL: High-Throughput Agentic Training with Tunix- Google Developers Blog
- Run Ray on TPU, Part 1: The foundations- Google Developers Blog