AI Cloud Architect

Autonomous LLM post-training with Tunix on 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

Autofinetune runs an AI agent that edits a fine-tuning script, runs jobs on Cloud TPUs and keeps changes that raise an accuracy metric, shown on FunctionGemma SFT and Gemma 3 1B GRPO.

Who it is for

ML engineers running LLM fine-tuning on Tunix and TPUs who want to automate hyperparameter search with agents.

Key points

  • SFT case: 20 automated runs on Cloud TPU v5e-1, a few minutes each, with changes limited to LoRA, optimizer, learning rate, batch size and seeds.
  • GRPO case: 40 runs on Cloud TPU v6e-1 over 2-3 days, optimizing numerical plus format accuracy; the post says total reward improved about 10%.

The same at other vendors

Timeline

Posts about Tunix, oldest first.

  1. New featureIntroducing Tunix: A JAX-Native Library for LLM Post-Training · Google · Announcement
  2. Read firstEasy FunctionGemma finetuning with Tunix on Google TPUs · Google · How-to
  3. Blog postScaling Agentic RL: High-Throughput Agentic Training with Tunix · Google · Blog post
  4. This postAutonomous LLM post-training with Tunix on TPUs

Go deeper