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

DevFeed: [Multi-Turn Reinforcement Learning on Amazon SageMaker AI: A hands-on guide](<https://devfeed.tech/articles/multi-turn-reinforcement-learning-on-amazon-sagemaker-ai-a-hands-on-guide-97804.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/multi-turn-reinforcement-learning-on-amazon-sagemaker-ai-a-hands-on-guide/>)

Author: Daniel Quang

Published: 2026-10-23T17:48:54Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Amazon SageMaker](<https://devfeed.tech/topics/amazon-sagemaker.md>), [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [Amazon Bedrock AgentCore](<https://devfeed.tech/topics/amazon-bedrock-agentcore.md>), [grpo](<https://devfeed.tech/topics/grpo.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [Multi-step AI processes](<https://devfeed.tech/topics/multi-step-ai-processes.md>), [rlvr](<https://devfeed.tech/topics/rlvr.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic-tasks](<https://devfeed.tech/tags/agentic-tasks.md>), [amazon-bedrock-agentcore](<https://devfeed.tech/tags/amazon-bedrock-agentcore.md>), [amazon-sagemaker](<https://devfeed.tech/tags/amazon-sagemaker.md>), [amazon-sagemaker-ai](<https://devfeed.tech/tags/amazon-sagemaker-ai.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [expert-400](<https://devfeed.tech/tags/expert-400.md>), [guide](<https://devfeed.tech/tags/guide.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [reward](<https://devfeed.tech/tags/reward.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

Multi-Turn Reinforcement Learning (MTRL) on Amazon SageMaker AI trains an agent using rewards for whole task episodes, allowing learning when the successful action sequence is unknown. SageMaker AI runs training and the policy model; an agent hosted on Amazon Bedrock AgentCore (or other listed AWS infrastructure) interacts with the environment and returns a reward. The Wordle walkthrough covers deployment, data preparation, training, monitoring, evaluation, and reward design. Its outcome-dominant reward avoids a flawed earlier scheme in which losses earned positive scores and slower solves could outscore faster ones. In the reported run, GPT-OSS-20B's held-out solve rate rose from 61% to 84% at medium reasoning effort and temperature 1.0, with about $339 in training tokens and $79 in AgentCore runtime usage. Low-effort performance rose from 15% to 69%. Training validation ended at 37%, illustrating that results differed at serving settings; the authors recommend evaluating at the intended serving settings. The run plateaued, and the authors did not test whether more training steps would help.

## Source excerpt

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.