AWS Builder Center

Fine-Tune an LLM Without Managing GPUs? What AWS Just Changed

AWS SageMaker AI now lets developers write custom LLM training loops while AWS manages the GPU infrastructure. Explore SFT, reinforcement learning, custom rewards, and what this means for model builders.

Fine-Tune an LLM Without Managing GPUs? What AWS Just Changed

What if you could write your own LLM training algorithm without having to manage the GPU infrastructure behind it?
For developers exploring large language models, this is an interesting problem.
A managed training service can simplify the process, but predefined training recipes may not provide enough freedom when you want to experiment with a custom loss function, reinforcement learning reward, or a new training strategy.
On the other hand, managing GPU infrastructure yourself introduces additional operational complexity.
Amazon SageMaker AI's new training session APIs aim to address this trade-off.
AWS announced their general availability on October 22, 2026. The APIs allow developers to control their post-training loop through Python while SageMaker AI manages the underlying GPU operations.
Let's explore what this actually changes for LLM developers.

1. The Problem: Control vs. Infrastructure

Imagine you want to customize a language model for a specific task.
You might want to:
  • Fine-tune it using supervised examples.
  • Improve its responses using preference data.
  • Experiment with reinforcement learning.
  • Develop a custom reward function.
  • Test a training algorithm from a research paper.
A predefined training recipe may be sufficient for standard customization, but an experimental algorithm may require more control over individual training steps.
Traditionally, gaining that control can mean taking responsibility for more of the training infrastructure.
You need to consider GPU provisioning, distributed execution, checkpointing, error recovery, and other operational details.
The challenge is not only designing a better training algorithm. It is running that algorithm reliably.

2. What Is New in Amazon SageMaker AI?

Amazon SageMaker AI training session APIs provide a different approach to model customization.
Instead of defining an entire training job upfront and managing the underlying GPU setup yourself, you can use Python to drive a live, stateful training session.
Your code controls the training procedure. SageMaker AI manages the GPU-backed operations.
These operations include:
  • GPU allocation
  • Model and LoRA adapter loading
  • Distributed execution
  • Fault recovery
  • Checkpoint storage
  • Security and infrastructure management
The APIs expose operations such as forward_backward(), optim_step(), and sample().
These operations allow developers to compose their own training procedures instead of relying exclusively on predefined recipes.
Official AWS announcement:
https://aws.amazon.com/about-aws/whats-new/2026/10/training-session-apis-on-sagemaker-ai/

3. What Can Developers Build With It?

The training session APIs support several model post-training workflows.

Supervised Fine-Tuning (SFT)

SFT uses labeled examples to teach a model the desired responses for particular inputs.
For example, a developer could customize a model to respond in a particular format or perform a specialized task.

Preference Optimization

Preference-based training uses information about preferred outputs to adapt model behavior.
This can help developers explore how a model responds to different instructions or task requirements.

Reinforcement Learning (RL)

Reinforcement learning allows a training process to use rewards to guide model behavior.
For example, a coding model might generate several candidate solutions. A test harness can evaluate those solutions, and the resulting rewards can guide the training process.
AWS's technical walkthrough demonstrates a GRPO-based training loop for mathematical reasoning and also discusses reinforcement learning for competitive programming.

Custom Training Objectives

Researchers can experiment with custom loss functions, reward signals, data curricula, and multi-stage training procedures.
This is particularly interesting when an existing recipe does not match the research question being investigated.
However, having the freedom to write a custom training loop does not automatically guarantee better model quality. The training algorithm, data, evaluation criteria, and implementation still matter.

4. How the Training Workflow Works

A simplified workflow looks like this:
STEP 1: Choose a supported base model and configure a training session.
↓
STEP 2: Write your training loop in Python.
↓
STEP 3: Generate model responses or samples when needed.
↓
STEP 4: Calculate rewards, scores, or other task-specific information.
↓
STEP 5: Submit the required training operations to SageMaker AI.
↓
STEP 6: Update the model and save checkpoints.
↓
STEP 7: Evaluate the customized model and decide whether it meets your requirements.
The important distinction is that developers retain control over the training algorithm while SageMaker AI manages the GPU-bound operations.
Your own code still needs to define the dataset, training logic, and any reward calculation required by your approach.
Official technical walkthrough:
https://aws.amazon.com/blogs/machine-learning/write-your-own-training-loop-without-managing-gpus-with-amazon-sagemaker-training-sessions/

5. Does Serverless Mean Free?

No. This distinction is important.
Serverless means you do not have to provision and operate the underlying GPU infrastructure yourself. It does not mean the training process has no cost.
AWS states that training session API usage is billed per token processed. Local computations, such as reward scoring on your machine, are not billed as GPU time while they run.
This differs from a setup where you reserve GPU instances and pay for the time they remain allocated, including periods when they are idle.
However, actual costs still depend on the workload, token volume, model, and training procedure.
Before running an experiment, understand the pricing model and estimate the expected usage.
Do not assume that every training experiment will be cheaper simply because the infrastructure is serverless.

6. Is This the Same as Training an LLM From Scratch?

No, and this distinction matters.
Training a foundation model from scratch involves learning model parameters from a large training corpus, often requiring substantial compute and data.
SageMaker AI training session APIs focus on customization and post-training of supported base models.
That can include supervised fine-tuning, preference optimization, reinforcement learning, and custom training objectives.
For someone learning LLM development, these are related but different stages.
A useful learning progression is:
Understand neural networks → Learn tokenization and Transformers → Train a small model for learning → Understand fine-tuning → Explore advanced post-training methods.
The new APIs are especially relevant once you understand the basics and want to experiment with customized training algorithms.

7. Who Should Explore This?

These APIs may be especially relevant to:
  • ML engineers experimenting with custom training objectives.
  • Researchers implementing new reinforcement learning methods.
  • Developers who need more control than predefined fine-tuning recipes offer.
  • Teams building multi-turn or agentic reinforcement learning workflows.
  • Practitioners who want algorithmic flexibility without managing their own GPU clusters.
They are not necessarily the best starting point for someone who has never trained a neural network.
For beginners, understanding tensors, gradients, loss functions, backpropagation, and basic fine-tuning remains important.

My Takeaway

I am currently learning LLM fundamentals and exploring how model development connects with AWS.
What interests me about this approach is the separation of responsibilities: developers can focus more on the training algorithm while the platform handles much of the underlying infrastructure.
That creates an interesting opportunity to experiment with training methods without first becoming an expert in GPU cluster operations.
But infrastructure is only one part of the challenge. Good data, a sound training objective, reproducible experiments, and reliable evaluation remain essential.
The real question is not simply whether we can customize an LLM more easily. It is whether the customization produces measurable improvements on the task we care about.

Question for the AWS Community

Suppose you wanted to customize an LLM for a specialized task.
Would you start with a standard supervised fine-tuning recipe, or would you experiment with a custom training loop using preference optimization or reinforcement learning?
What evidence would convince you that the more complex approach is worth the additional effort and cost?
I'd especially like to hear from developers and researchers experimenting with Amazon SageMaker AI, LLM fine-tuning, or reinforcement learning.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article