"AI always needs a GPU." GPUs are the default, but they aren't the only option. AWS designs its own AI chips, Inferentia and Trainium, built for one job: running machine learning workloads at a lower cost. They won't suit every model, but for the right workload they change the bill.
Two families
- AWS Inferentia is built for inference: running a model that is already trained, to answer requests. The current generation is Inferentia2.
- AWS Trainium was built for training models, and AWS now positions it for both training and inference at scale. Trainium2 and Trainium3 are the generations AWS promotes today.
Both are accelerators: chips specialised for the matrix arithmetic behind neural networks. They aren't general-purpose GPUs, and that narrower focus is where the efficiency comes from.
You rent them as EC2 instances
You don't buy these chips. They sit inside EC2 instance families:
- Inf2 instances carry Inferentia2 chips, up to 12 in the largest size.
- Trn1 and Trn2 instances carry Trainium chips.
- Trn3 UltraServers, announced as generally available in December 2025, carry Trainium3 and scale up to 144 chips in one system.
Because they're EC2 instances, the rest of AWS works as usual: you can use them from container services, from Amazon SageMaker, or as plain servers. Availability varies by Region, so check before you plan.
Why AWS builds chips
Owning the design lets AWS tune the chip, the server and the software together for cost and power. AWS's own claims include up to 50% better performance per watt for Inf2 than comparable EC2 instances, and better cost per token for Trainium at production scale.
Treat those as vendor claims. They depend on the model, the batch size and how well the software is tuned. The only number that matters is the one you measure on your own workload.
The Neuron SDK, and the catch
The software layer is the AWS Neuron SDK. It integrates with PyTorch (JAX support is in beta) and includes a compiler that turns your model into something the chip can run, along with libraries for distributed training and inference.
This is the catch. Most AI code today assumes NVIDIA GPUs and their CUDA software stack. Moving to Trainium or Inferentia is not a drop-in swap:
- Code that calls CUDA directly needs changes.
- Not every model architecture or operator is supported; check the Neuron documentation for yours.
- Models may need to be compiled ahead of time, which adds a step to your deployment pipeline.
A common mistake is comparing hourly prices alone. A cheaper instance that runs your model slowly, or needs weeks of engineering to port, isn't cheaper. Compare cost per result: per thousand inferences, per million tokens, or per training run.
Where AI fits
At scale, cost per token decides which AI features are affordable to ship, and compute is most of that cost. That's why the largest AI companies care about alternatives to GPUs. AWS lists Anthropic among Trainium's customers, alongside others.
For most teams the practical takeaways are smaller:
- If you run steady, high-volume inference on a supported model, benchmark Inf2 or Trainium against your current GPU instances.
- If you use managed AI services, you may never pick a chip at all; the provider chooses the hardware behind the API.
- Keep your code portable (standard PyTorch, no hard-wired CUDA calls), so you can move to whichever hardware is cheapest for your workload.
Quick recap
- Inferentia is for inference; Trainium is for training, and now inference too.
- You rent them as EC2 instances (Inf2, Trn1, Trn2, Trn3) and program them with the Neuron SDK.
- It's not a drop-in swap for GPUs: test your own model and compare cost per result.