Why this matters
GPU instances on AWS are the fastest way to turn a small mistake into a large bill. A single multi-GPU instance left running over a long weekend costs more than a whole fleet of ordinary web servers. And GPU work tends to be bursty: a training run, an experiment, a demo, then nothing. The meter keeps running after the work stops.
The usual causes are boring. A notebook instance nobody shut down. A SageMaker endpoint serving ten requests a day on hardware sized for ten thousand. A training job that restarts from scratch because it had no checkpoints. An instance family picked because a tutorial used it.
The good news is that most of this waste is findable with tools you already have. You don't need a new platform. You need to know which workloads are which, measure what the GPUs actually do, and put a few limits in place.
Before you start
Sort your GPU workloads into three buckets: training, batch inference, and real-time inference. They need different cost tactics. Training and batch work can usually survive interruption. Real-time endpoints can't, so they lean on right-sizing and commitments instead.
Make sure you can see spend per workload. In AWS Cost Explorer, group by usage type or instance type and filter to the GPU families (the p, g and inf/trn families, for example). Then check that your instances and endpoints carry tags for team, project and environment, and that those tags are activated as cost allocation tags in the Billing console. Without them you'll find the expensive thing but not the person who owns it.
Finally, get access to CloudWatch metrics and, where you can, GPU-level metrics. Standard EC2 metrics show CPU, not GPU. For GPU utilization and memory you need the CloudWatch agent with NVIDIA metrics enabled, or DCGM exporter if you run containers. Install this first. Everything else depends on knowing whether the GPU is busy.
How to do it
Work through the steps below in order. The first two cost nothing and often pay for the rest. Expect to spend most of your time on measurement, not on changing settings.
When you move to Spot and commitments, do one workload at a time. Changing everything at once makes it impossible to tell which change helped or which one broke a job.
- Tag every GPU resource. Apply team, project and environment tags to instances, endpoints and training jobs, then activate them as cost allocation tags in the Billing console. Enforce this with a tag policy or a launch rule so untagged GPU resources can't start.
- Measure real GPU utilization. Turn on the CloudWatch agent with NVIDIA GPU metrics, or run DCGM exporter on containers. Record GPU utilization and GPU memory for each workload over at least a week before you change anything.
- Shut down idle resources. Find notebook instances, dev boxes and endpoints with near-zero GPU use. Set idle auto-shutdown on SageMaker notebooks and add scheduled stops for dev instances so nothing runs overnight by default.
- Right-size the instance type. Compare your measured GPU memory and utilization to what the instance offers. Move to a smaller GPU or a purpose-built inference option such as Inferentia where your model supports it, and compare cost per job rather than raw speed.
- Move interruptible work to Spot. Run training and batch inference on Spot capacity, and diversify across several instance types and Availability Zones to reduce interruptions. Add regular checkpointing to durable storage so a reclaimed instance resumes instead of restarting.
- Scale inference endpoints with demand. Configure auto scaling on SageMaker endpoints or your container service, and use serverless or asynchronous inference for spiky traffic. Set a minimum that matches real overnight load, not peak.
- Commit to the steady baseline. After right-sizing, look at the compute you run around the clock and cover only that with a Compute or SageMaker Savings Plan. Leave burst and experimental work on demand or Spot.
- Add budgets and anomaly alerts. Create an AWS Budget filtered to GPU instance families and a Cost Anomaly Detection monitor on the same scope. Route both to a channel a person actually watches, and test them.
How to check it worked
Give it a full billing cycle for the big picture, but check faster signals first. After a week, look at GPU utilization again for the workloads you changed. Right-sized instances should show higher sustained utilization, not lower. If utilization dropped, you probably moved to something bigger or added idle time through poor scheduling.
In Cost Explorer, compare daily cost for GPU instance families before and after, filtered by the tags you set up. Look at the shape, not just the total. A healthy training workload shows spikes during runs and flat zero between them. A flat plateau day and night means something is still running that shouldn't be.
Check your Spot results too. Look at the interruption count and how much work was lost per interruption. If jobs resume from a checkpoint within minutes, Spot is working. If they restart from zero, fix checkpointing before you save another dollar.
Last, trigger your alarm on purpose. Launch a small GPU instance in a test account and confirm the budget alert reaches a real person. An alert nobody receives is no guardrail at all.
Mistakes to avoid
Buying a Savings Plan before you've right-sized is the classic one. You lock in a commitment sized to wasteful usage, then shrink the workload and pay for capacity you no longer use. Right-size first, commit second, and commit to the steady baseline only, never to peak.
Don't assume the biggest GPU is the fastest per dollar. A smaller or older instance running longer can finish the same job cheaper, especially for inference. Benchmark your own model on two or three instance types and compare cost per job, not speed alone.
Watch the costs that sit beside the GPU. Large checkpoints and datasets in S3, EBS volumes that outlive their instances, and data transfer between regions or out to the internet all add up and don't show up under the GPU line. Delete orphaned volumes and old snapshots when you stop an instance.
And don't rely on people remembering to shut things down. Reminders fail. Idle timeouts, scheduled stops and auto-scaling to zero don't.
Frequently asked questions
Is Spot safe for GPU training on AWS?
Yes, if your job can resume. Spot instances can be reclaimed with short notice, so write checkpoints to S3 or a shared file system often. Spread requests across multiple instance types and zones to lower the chance of interruption.
Should I use Savings Plans or Reserved Instances for GPU workloads?
Savings Plans are usually more flexible because they cover usage across instance sizes and families within their scope. Reserved Instances can suit a fixed, long-lived fleet. Either way, commit only to the steady baseline you've already right-sized.
How do I find which team is driving our GPU bill?
Activate cost allocation tags for team and project, then group Cost Explorer by those tags with a filter on GPU instance families. Resources without tags will show up as a blank group, which tells you where to fix tagging first.