---
type: "post"
id: "multi-turn-agentic-reinforcement-learning-with-tunix-and-d1e9f2"
slug: "multi-turn-agentic-reinforcement-learning-with-tunix-and-d1e9f2"
title: "Multi-Turn Agentic Reinforcement Learning with Tunix and Gemma 4 on Google TPUs"
description: "Google’s Developer Blog walks through training Gemma 4 E2B as a multi-turn tool-using agent with Tunix on a Cloud TPU v6e-8 host."
retrieval_nugget: "Google’s Developer Blog walks through training Gemma 4 E2B as a multi-turn tool-using agent with Tunix on a Cloud TPU v6e-8 host. In its Plane Strike game, the reported held-out win rate rises from 9.4% before training to 95% after 100 steps, illustrating a concrete recipe for training agents against interactive feedback."
published_at: "2026-11-19"
updated_at: "2026-11-19"
record_date: "2026-11-19"
date_kind: "published_at"
topics: ["google"]
entities: ["Google","Tunix","Gemma 4 E2B","Cloud TPU v6e-8","vLLM-TPU","Plane Strike"]
related_patterns: []
novelty_label: "new_fact"
what_changed: "Google’s Tunix tutorial trains Gemma 4 E2B for multi-turn tool use on TPUs, reporting a 95% win rate after 100 agentic GRPO steps, up from 9.4%."
prior_refs: ["https://newruntime.com/posts/fine-tune-a-search-agent-with-multi-turn-55b3df/"]
source_url: "https://developers.googleblog.com/multi-turn-agentic-reinforcement-learning-with-tunix-and-gemma-4-on-google-tpus"
source_urls: ["https://developers.googleblog.com/multi-turn-agentic-reinforcement-learning-with-tunix-and-gemma-4-on-google-tpus"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:multi-turn-agentic-reinforcement-learning-with-tunix-and-d1e9f2"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/multi-turn-agentic-reinforcement-learning-with-tunix-and-d1e9f2/","markdown":"https://newruntime.com/posts/multi-turn-agentic-reinforcement-learning-with-tunix-and-d1e9f2.md","json":"https://newruntime.com/posts/multi-turn-agentic-reinforcement-learning-with-tunix-and-d1e9f2.json"}
markdown_url: "https://newruntime.com/posts/multi-turn-agentic-reinforcement-learning-with-tunix-and-d1e9f2.md"
---

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

## Retrieval answer

Google’s Developer Blog walks through training Gemma 4 E2B as a multi-turn tool-using agent with Tunix on a Cloud TPU v6e-8 host. In its Plane Strike game, the reported held-out win rate rises from 9.4% before training to 95% after 100 steps, illustrating a concrete recipe for training agents against interactive feedback.

## Summary
Google’s Developer Blog walks through training Gemma 4 E2B as a multi-turn tool-using agent with Tunix on a Cloud TPU v6e-8 host. In its Plane Strike game, the reported held-out win rate rises from 9.4% before training to 95% after 100 steps, illustrating a concrete recipe for training agents against interactive feedback.

## What happened
Google’s November 19, 2026 post describes training a multi-turn agent with Tunix’s agentic reinforcement-learning pipeline on a single Cloud TPU v6e-8 host. The model is Gemma 4 E2B in thinking mode, and the demonstration task is Plane Strike, a board game on a 6-by-6 grid. A hidden plane occupies eight cells in one of four orientations. On each turn, the agent sees the visible board and the result of its previous strike, reasons about possible placements, and calls a `strike(cell="...")` tool. The game ends when all eight cells are hit or after 23 strikes.

Before training, Google reports that `google/gemma-4-E2B-it` wins 9.4% of games on held-out boards, averaging 22.44 strikes. The post says that after 100 steps of agentic Group Relative Policy Optimization (GRPO), the win rate reaches about 95% and the average game takes about 16 strikes. It reports 100 steps with eight boards and eight games per step. In initial training rollouts, the win rate is about 0.20; the held-out evaluation figure is 9.4%. The distinction matters: the post gives separate training-rollout and held-out numbers, not a single before-and-after evaluation on one stated test set.

The implementation divides the pipeline into four components: a task environment, a tool and chat-template parser, a conversation agent, and trajectory collection with an agentic GRPO learner. The example subclasses Tunix’s `BaseTaskEnv` to implement the game. A seed fixes the hidden plane position, so all eight rollouts in a GRPO group play the same board. The parser adds Gemma 4’s native tool declaration and formats tool responses so the model can continue its assistant turn after receiving a response. The agent translates observations into messages and accepts a single valid strike call; otherwise it returns an invalid action.

For rollouts, the post configures an asynchronous vLLM engine and enables server mode for continuous multi-turn rollouts via vLLM-TPU. Prefix caching is enabled to reuse the growing conversation history. The actor model, reference model, and rollout workers share the eight chips of the v6e-8 host. The GRPO configuration includes GSPO loss, RLOO advantage estimation, and `exact_token_continuity=True` to preserve token IDs across multi-turn rollouts without retokenization drift. Google gives a launch command with a learning rate of `2e-6` and final learning rate of `2e-7`, and links a complete code repository from the post.

## What the archive adds
New Runtime’s earlier coverage of an AWS SageMaker walkthrough described fine-tuning a search agent with multi-turn reinforcement learning ([October 2, 2026 note](https://newruntime.com/posts/fine-tune-a-search-agent-with-multi-turn-55b3df/)). Google’s post is a new event, not a restatement: it supplies a separate implementation using Tunix, Gemma 4, a TPU-hosted game environment, and reported results for that task.

## Trend signal
This does not yet fit a pattern New Runtime tracks. The post is a concrete training walkthrough and result for one game, but it does not establish a broader shift in agent architecture, protocols, or operating practices.

## Why now
Google frames the work as a step beyond its earlier Tunix examples of supervised fine-tuning and single-turn GRPO. Its stated motivation is that real-world agents must act on partial observations, call tools, receive environment feedback, and adapt across multiple steps rather than finish in one interaction. The tutorial makes that transition tangible with an interactive task.

## Why it matters
The useful lesson for teams is that multi-turn agent training requires more than choosing a model and an RL objective. The example makes the environment, tool-message format, conversation state, rollout engine, and learner explicit parts of the system. That decomposition helps teams identify where failures occur: an agent can reason poorly, emit malformed tool calls, repeat actions, or fail to use feedback, and those are distinct behaviors to inspect.

Google reports that tool-call compliance converges quickly: the training tool-call rate approaches 100%, invalid actions fall close to zero, and repeated actions decline from about 0.55 to 0.15. Those measures make the result more informative than win rate alone, because they show whether the model learned to operate the interface as well as solve the game. The method is not evidence that the same gains will transfer to production tasks, but it is a useful blueprint for setting up a controlled training experiment where actions produce observable environment feedback.

## Limits and uncertainty
These results come from one game, one Gemma 4 configuration, and a single Cloud TPU v6e-8 host. Google does not report the training wall-clock time, total compute cost, number or composition of held-out boards, uncertainty intervals, or comparisons against alternative training methods in the post. The reported jump therefore should not be read as a general measure of multi-turn agent capability or as evidence that the recipe will improve performance on unrelated tasks.

The post also notes that all strikes in a game currently share one trajectory-level reward and says finer per-turn credit assignment could improve results. The approximately 95% win rate is a company-reported result; it has not been independently checked here. The linked code makes the implementation inspectable, but reproducing the result would still depend on the specified model, software versions, hardware, and task setup.

## Skill to build now
For a tool-using task with a simulator or other repeatable environment, prototype the same separation of concerns: implement environment feedback and termination rules separately from tool parsing and agent dialogue. Give groups of rollouts a shared task seed, as Google does for the hidden board, so comparisons begin from the same state. Track outcome alongside interface measures such as invalid calls and repeated actions; the post’s own training curves show these can move differently from task success.

## Reader takeaway
Google’s example is a practical starting point for multi-turn RL experiments, not proof of a general-purpose agent breakthrough. Its strongest contribution is the inspectable pipeline: a seeded environment, native tool-call handling, conversation-state management, asynchronous rollouts, and separate measures of task success and tool compliance.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Google](https://newruntime.com/topics/google.md): Explore the google topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
