AI Cloud Architect

Easy FunctionGemma finetuning with Tunix on Google TPUs

GoogleHow-to by Wei WeiGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A step-by-step notebook fine-tunes FunctionGemma 270M with LoRA using the JAX-based Tunix library on a free-tier Colab TPU v5e-1.

Who it is for

Developers who want to customize small function-calling models for agents or edge devices on TPUs without a GPU setup.

Key points

  • Uses LoRA adapters on attention and MLP layers, trained with supervised finetuning on the Mobile Actions dataset.
  • Runs on a single TPU v5e core; the post reports a significant accuracy gain after one epoch, without figures.
  • Merged model can be exported to safetensors for on-device deployment with LiteRT.

The same at other vendors

Timeline

Posts about FunctionGemma, oldest first.

  1. What it explainsIntroducing Tunix: A JAX-Native Library for LLM Post-Training · Google · Announcement
  2. What it explainsFunctionGemma: Bringing bespoke function calling to the edge · Google · Announcement
  3. How-toA Guide to Fine-Tuning FunctionGemma · Google · How-to
  4. This postEasy FunctionGemma finetuning with Tunix on Google TPUs
  5. Read nextAutonomous LLM post-training with Tunix on TPUs · Google · How-to

Go deeper