<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/autonomous-llm-post-training-with-tunix-on-tpus-fwvhv3x0a" -->

---
title: Autonomous LLM post-training with Tunix on TPUs | daily.dev
description: An open-source project called autofinetune extends autonomous AI research loops from pre-training into LLM post-training, using Google's Tunix library, Gemma...
canonical: https://daily.dev/posts/autonomous-llm-post-training-with-tunix-on-tpus-fwvhv3x0a
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Autonomous LLM post-training with Tunix on TPUs | daily.dev
og:description: An open-source project called autofinetune extends autonomous AI research loops from pre-training into LLM post-training, using Google's Tunix library, Gemma...
og:url: https://daily.dev/posts/autonomous-llm-post-training-with-tunix-on-tpus-fwvhv3x0a
og:image: https://api.daily.dev/og/posts/FWVHv3X0a.png
og:image:alt: Autonomous LLM post-training with Tunix on TPUs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Autonomous LLM post-training with Tunix on TPUs

**[Google Developers](https://daily.dev/sources/googledevs)** · 3 min read · 1 upvotes · 0 comments

## Summary

An open-source project called autofinetune extends autonomous AI research loops from pre-training into LLM post-training, using Google's Tunix library, Gemma models, and Cloud TPUs, orchestrated by Antigravity CLI and Gemini Flash 3.7. An AI agent iterates on a Markdown spec (program.md), running training jobs, measuring metrics, and keeping or reverting changes automatically. Two case studies are shown: supervised fine-tuning of FunctionGemma-270m on a mobile-actions dataset, where the agent tuned LoRA rank/alpha, optimizer, and learning rate to improve function-call accuracy; and GRPO-based reinforcement learning fine-tuning of Gemma 3 1B for GSM8K math reasoning, where the agent adjusted LoRA configuration, rollout temperature, KL penalty, and system prompt to raise total reward by about 10%.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developers.googleblog.com/autonomous-llm-post-training-with-tunix-on-tpus>

## Questions this post answers

### How can an AI agent automate LoRA hyperparameter tuning during supervised fine-tuning of an LLM?

An autonomous agent following a Markdown spec called program.md can modify a training script, run the job, measure a target metric, and keep or revert changes automatically. In a case study fine-tuning google/functiongemma-270m-it on the google/mobile-actions dataset, the agent adjusted LoRA rank, alpha, optimizer, and learning rate across dozens of runs to improve function-call generation accuracy without manual intervention.

_daily.dev surfaces workflows like agent-driven hyperparameter tuning for teams automating their fine-tuning pipelines._

### What metric was used to measure reward improvement when applying GRPO reinforcement learning to Gemma 3 1B on GSM8K?

The reward metric, called Post_RL_metric, was defined as numerical_accuracy plus format_accuracy, though other weightings could be substituted. Using this metric, an autonomous agent tuned LoRA configuration, rollout temperature, KL penalty, and system prompt for Gemma 3 1B trained on GSM8K math reasoning, improving total reward by roughly 10% over the baseline GRPO example.

_Engineers tuning GRPO reward functions can track approaches like this on daily.dev before running their own RL experiments._

### What is the autofinetune project and how does it relate to the autoresearch project?

Autofinetune is an open-source project that applies autonomous research loops, first demonstrated by the autoresearch project for LLM pre-training, to LLM post-training tasks including supervised fine-tuning and GRPO reinforcement learning. It uses Google's Tunix library, Gemma models, and Cloud TPUs, orchestrated via Antigravity CLI and Gemini Flash 3.7, with agents logging results in a results.tsv trajectory file.

_daily.dev helps developers exploring autonomous fine-tuning tools like autofinetune keep track of emerging agent-driven ML workflows._

## Similar posts on daily.dev

- [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.](https://daily.dev/posts/learn-how-to-easily-finetune-functiongemma-a-small-language-model-using-the-jax-based-tunix-librar-0zlp2ma4l) · Google Developers · 1 upvotes · 0 comments
- [How the community trained Gemma to "Think" with Tunix and TPUs](https://daily.dev/posts/how-the-community-trained-gemma-to-think-with-tunix-and-tpus-oagc6vckr) · Google Developers · 3 upvotes · 0 comments
- [GitHub - mattmireles/gemma-tuner-multimodal: Fine-tune Gemma 4 and 3n with audio, images and text on Apple Silicon, using PyTorch and Metal Performance Shaders.](https://daily.dev/posts/github---mattmireles-gemma-tuner-multimodal-fine-tune-gemma-4-and-3n-with-audio-images-and-text-on-9dwp32aex) · Hacker News · 1 upvotes · 0 comments
- [Empowering app developers: Fine-tuning Gemma 3 for mobile with Tunix in Google Colab](https://daily.dev/posts/empowering-app-developers-fine-tuning-gemma-3-for-mobile-with-tunix-in-google-colab-0wxznzr3k) · Google Open Source Blog · 0 upvotes · 0 comments

---

Tags: [#gemma](https://daily.dev/tags/gemma), [#machine-learning](https://daily.dev/tags/machine-learning), [#reinforcement-learning](https://daily.dev/tags/reinforcement-learning)

[View this post on daily.dev](https://daily.dev/posts/autonomous-llm-post-training-with-tunix-on-tpus-fwvhv3x0a)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Autonomous LLM post-training with Tunix on TPUs","url":"https://daily.dev/posts/autonomous-llm-post-training-with-tunix-on-tpus-fwvhv3x0a","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/autonomous-llm-post-training-with-tunix-on-tpus-fwvhv3x0a"},"datePublished":"2026-09-11T14:21:36.608Z","dateModified":"2026-10-15T02:22:48.685Z","description":"An open-source project called autofinetune extends autonomous AI research loops from pre-training into LLM post-training, using Google's Tunix library, Gemma...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e2fd09b88c940e811017c744e1c0926b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e2fd09b88c940e811017c744e1c0926b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Google Developers","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Google Developers","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ea4bbded4e7f45ccb82e121a3156535f","url":"https://daily.dev/sources/googledevs"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/autonomous-llm-post-training-with-tunix-on-tpus-fwvhv3x0a","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"gemma,machine-learning,reinforcement-learning","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Google Developers","item":"https://daily.dev/sources/googledevs"},{"@type":"ListItem","position":3,"name":"Autonomous LLM post-training with Tunix on TPUs"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/autonomous-llm-post-training-with-tunix-on-tpus-fwvhv3x0a#faq","mainEntity":[{"@type":"Question","name":"How can an AI agent automate LoRA hyperparameter tuning during supervised fine-tuning of an LLM?","acceptedAnswer":{"@type":"Answer","text":"An autonomous agent following a Markdown spec called program.md can modify a training script, run the job, measure a target metric, and keep or revert changes automatically. In a case study fine-tuning google/functiongemma-270m-it on the google/mobile-actions dataset, the agent adjusted LoRA rank, alpha, optimizer, and learning rate across dozens of runs to improve function-call generation accuracy without manual intervention. daily.dev surfaces workflows like agent-driven hyperparameter tuning for teams automating their fine-tuning pipelines."}},{"@type":"Question","name":"What metric was used to measure reward improvement when applying GRPO reinforcement learning to Gemma 3 1B on GSM8K?","acceptedAnswer":{"@type":"Answer","text":"The reward metric, called Post_RL_metric, was defined as numerical_accuracy plus format_accuracy, though other weightings could be substituted. Using this metric, an autonomous agent tuned LoRA configuration, rollout temperature, KL penalty, and system prompt for Gemma 3 1B trained on GSM8K math reasoning, improving total reward by roughly 10% over the baseline GRPO example. Engineers tuning GRPO reward functions can track approaches like this on daily.dev before running their own RL experiments."}},{"@type":"Question","name":"What is the autofinetune project and how does it relate to the autoresearch project?","acceptedAnswer":{"@type":"Answer","text":"Autofinetune is an open-source project that applies autonomous research loops, first demonstrated by the autoresearch project for LLM pre-training, to LLM post-training tasks including supervised fine-tuning and GRPO reinforcement learning. It uses Google's Tunix library, Gemma models, and Cloud TPUs, orchestrated via Antigravity CLI and Gemini Flash 3.7, with agents logging results in a results.tsv trajectory file. daily.dev helps developers exploring autonomous fine-tuning tools like autofinetune keep track of emerging agent-driven ML workflows."}}]}
```

