AI Cloud Architect

Multi-Turn Reinforcement Learning on Amazon SageMaker AI: A hands-on guide

AWSHow-to by Daniel Quang, Hadrien Almela and Vinay BhatAWS Artificial Intelligence Blog

Multi-Turn Reinforcement Learning (MTRL) on Amazon SageMaker AI trains models on the outcome of a whole multi-step task rather than labeled steps. This hands-on guide walks the full pipeline using Wordle: deploying the agent and reward on Amazon Bedrock AgentCore, preparing the dataset, training, and evaluating at serving settings.

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

AI: Summary

What it is

SageMaker AI's Multi-Turn RL trains a model on the outcome of a whole multi-step episode; the guide walks the Wordle example end to end, with an agent hosted on AgentCore as the environment.

Who it is for

Teams that need a small model to perform a multi-step internal workflow and want to train it on task outcomes using SageMaker AI and AgentCore.

Key points

  • In the authors' run, gpt-oss-20b went from 61% to 84% solve rate on held-out words at default reasoning effort, for about $339 in training tokens.
  • Training uses GRPO with a LoRA adapter; the agent and reward are deployed to AgentCore.
  • Supported base models in the post: Amazon Nova 2 Lite, GPT-OSS-20B, Gemma 4 31B, Qwen 3.6 27B, with regions us-east-1 and us-west-2 named.
  • The training job role needs a trust policy with job.sagemaker.amazonaws.com, not the generic sagemaker principal.

The same at other vendors

Timeline

  1. What it explainsAmazon SageMaker AI launches multi-turn reinforcement learning for AI agent model customization · AWS · Announcement
  2. What it explainsBest practices for multi-turn reinforcement learning in Amazon SageMaker AI · AWS · Blog post
  3. Same storyFine-tune a search agent with multi-turn RL on Amazon SageMaker AI · AWS · How-to
  4. This postMulti-Turn Reinforcement Learning on Amazon SageMaker AI: A hands-on guide

Go deeper