AI Cloud Architect

Multi-Turn Agentic Reinforcement Learning with Tunix and Gemma 4 on Google TPUs

GoogleHow-to by Wei WeiGoogle Developers Blog

This post walks developers through training a multi-turn, tool-using LLM agent using Tunix and Gemma 4 on Cloud TPUs. By leveraging agentic Group Relative Policy Optimization (GRPO) and asynchronous vLLM rollouts, the approach significantly improves complex reasoning and tool compliance in interactive environments.

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

AI: Summary

What it is

Shows how to run multi-turn agentic GRPO with Tunix on a Cloud TPU v6e-8 to train Gemma 4 E2B to play a tool-calling board game; the post reports win rate rising from 9.4% to about 95%.

Who it is for

ML engineers training tool-using agents with reinforcement learning on Google TPUs who want a worked Tunix example.

Key points

  • Win rate on held-out boards is 9.4% before training and about 95% after 100 steps, per the post.
  • Average game length drops from about 22 to about 16 strikes.
  • Uses asynchronous vLLM rollouts, GSPO-token loss and RLOO advantage estimation.
  • Code is in a linked GitHub repository; the post does not give pricing or regions.

The same at other vendors

Timeline

  1. Read firstIntroducing Tunix: A JAX-Native Library for LLM Post-Training · Google · Announcement
  2. What it explainsScaling Agentic RL: High-Throughput Agentic Training with Tunix · Google · Blog post
  3. This postMulti-Turn Agentic Reinforcement Learning with Tunix and Gemma 4 on Google TPUs

Go deeper