DigestAI news desk

Cut through the AI noise.

Enterprise & Industryupdated 10 min read

Amazon SageMaker adds training session APIs for custom LLM loops

Amazon SageMaker AI introduces training session APIs that let developers write their own training loops in Python while the service runs the GPU‑bound operations. The APIs expose core steps such as forwardbackward(), optimstep() and sample() as SageMaker calls, keeping the model loaded on managed accelerators and handling distribution, fault recovery and checkpointing.

2 sources primary source

Key points

  • Training session APIs let users call forwardbackward, optimstep, and sample as SageMaker API operations, keeping the model loaded on GPUs.
  • Billing is per token processed, so only GPU-bound calls incur cost, eliminating idle‑GPU charges.
  • In a demo, a LoRA adapter for GPT‑OSS 20B trained 50 steps on 128 problems, raising reward from 0.46 to 0.60.

Billing is per token processed, so only the GPU‑bound calls incur cost and idle‑GPU time is not charged. The blog shows a reinforcement‑learning example on the GSM8K math benchmark and a larger code‑generation task where a LoRA adapter for GPT‑OSS 20B is trained for 50 steps on 128 problems with eight responses each, raising reward from 0.46 to 0.60 and held‑out accuracy from 40% to 50.5%. A cookbook of ready‑to‑run recipes is released alongside the APIs.

The new feature targets teams that need algorithmic flexibility—custom loss functions, RL reward signals, multi‑stage pipelines—without provisioning GPU clusters. It fits between fully managed serverless model customization and self‑managed SageMaker training jobs, offering faster iteration and predictable spend for advanced LLM fine‑tuning and alignment research.

The story so far

5 episodes →
  1. Amazon SageMaker adds training session APIs for custom LLM loopsthis story
Full story from AWS Machine Learning Blog · by Nicolas Jourdan primary sourceOpen source ↗

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

AWS Machine Learning Blog · 22 October 2026

Loading the full article…

This text was published by AWS Machine Learning Blog and written by Nicolas Jourdan. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗

Coverage and discussion

2sources
Topics · follow one to build your own front page
AmazonAWSSageMakerGPT-OSS 20BArun NagarajanXichao WangShruti Sharma

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.

Comments

via GitHub Discussions

More in Enterprise & Industry

All →

Related stories