GoogleWei WeiBenchmark
Autonomous LLM post-training with Tunix on TPUs
Summary
autofinetune applies autonomous research loops to LLM post-training, covering supervised fine-tuning (SFT) and reinforcement learning with GRPO through Tunix, Gemma, Cloud TPUs, Antigravity CLI, and Gemini Flash 3.7. A human defines the arena in program.md and supplies a self-contained run.py, while an agent edits hyperparameters, launches jobs, evaluates a target metric, keeps winning Git commits, reverts regressions, and logs results in results.tsv. On FunctionGemma 270M with google/mobile-actions, 20 Cloud TPU v5e-1 experiments tested LoRA settings, optimization choices, schedules, batch size, and seeds without changing the dataset, epochs, or architecture. A second study used Gemma 3 1B, GSM8K, and Cloud TPU v6e-1 for 40 GRPO experiments over two to three days, improving the combined numerical-and-format reward by about 10%.
Context
Traditional LLM post-training is described as a repetitive manual cycle of forming hypotheses, editing scripts and hyperparameters, launching accelerator jobs, monitoring evaluations, and recording or reverting results. The work applies autonomous research loops to make this process continuous and agent-driven.
Approach / What changed
The system uses a human-authored program.md to define boundaries, evaluation criteria, and constraints, plus a self-contained run.py for execution. An agent modifies permitted training settings, runs fine-tuning jobs, evaluates the target metric, retains winning Git commits, reverts regressions, and records experiments in results.tsv.
Takeaways
The SFT arena allowed changes to LoRA rank and alpha, target projection layers, learning rates, schedules, optimizers, gradient clipping, batch size, and seeds, while disallowing dataset, epoch-count, and model-architecture changes.
The GRPO study used Post_RL_metric, defined as numerical_accuracy plus format_accuracy, to simplify the agent’s outer optimization loop.
In the GRPO trajectory, the agent identified improvements involving LoRA configurations, rollout temperature, KL penalty, and system prompt, raising total reward by approximately 10%.
Source and freshness
- Source
- developers.googleblog.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.