---
format: "aidr-story-markdown/v1"
id: "4eb8c8201d11b57fcd4639c19f99fd79c34685064298c82ead767929f1ab295c"
canonical_url: "https://aidr.today/4eb8c820?lang=en"
title: "Write your own training loop — without managing GPUs — with Amazon SageMaker training session APIs"
lang: "en"
requested_lang: "en"
available_langs: ["en","vi"]
translation_fallback: null
fallback_fields: []
published_at: "2026-10-22T18:00:01.000Z"
category: "Tools"
topics: ["amazon","llm","devtools"]
source_urls: ["https://aws.amazon.com/blogs/machine-learning/write-your-own-training-loop-without-managing-gpus-with-amazon-sagemaker-training-sessions/"]
summary: "Amazon SageMaker AI training session APIs let users write their own LLM training loop (SFT, RL, or custom objectives) in a Python script while the service runs the GPUs, with the post introducing the programming model, three SDK clients, a GRPO loop on GSM8K, and a reinforcement learning workload on competitive programming."
---

# Write your own training loop — without managing GPUs — with Amazon SageMaker training session APIs

> [Open the canonical story](<https://aidr.today/4eb8c820?lang=en>)

**Published:** 2026-10-22T18:00:01.000Z
**Category:** Tools
**Topics:** amazon, llm, devtools

## Summary

Amazon SageMaker AI training session APIs let users write their own LLM training loop \(SFT, RL, or custom objectives\) in a Python script while the service runs the GPUs, with the post introducing the programming model, three SDK clients, a GRPO loop on GSM8K, and a reinforcement learning workload on competitive programming\.

## Sources

- [Story source](<https://aws.amazon.com/blogs/machine-learning/write-your-own-training-loop-without-managing-gpus-with-amazon-sagemaker-training-sessions/>)

