Pidoku

AWS Trainium and the Hyperscaler Chips

Module 7 Lesson 7.j 45 min Difficulty 3/5

Prerequisites 7.g, 7.i


Before you start: words you need#

WordPlain meaning
HyperscalerOne of the giant cloud and internet companies — AWS, Google, Microsoft, Meta.
In-house chipA chip a company designs for its own use, usually with a design partner such as Broadcom or Marvell.
NeuronCoreThe compute block inside AWS’s Trainium chips.
Software-managed SRAMOn-chip memory that the compiler or programmer fills explicitly; nothing is cached automatically.
UltraServerAWS’s name for a group of Trainium chips joined into one fast scale-up domain.
Gross marginThe part of a product’s price above what it cost to make.

1. What is it?#

The companies that buy the most AI hardware also design their own. AWS has Trainium (and the older inference-only Inferentia), Microsoft has Maia, Meta has MTIA, and Google has the TPU (7.i). Each is a bet that, at their volume, a chip designed for their own workloads and bought at cost beats paying a merchant vendor’s margin.

Trainium3, generally available since December 2025, is the most widely rented of these after the TPU: 144 GB of HBM3e per chip, 144 chips in one scale-up “UltraServer”, and a software stack, Neuron, that exposes the chip’s engines directly to kernel writers.

Facts checked on 11 November 2026.

AWS TRAINIUM3 · CHIP AND ULTRASERVERGA Dec 2025 · TSMC 3 nm · schematic · checked 16 Oct 2026HBM3e36 GBHBM3e36 GBHBM3e36 GBHBM3e36 GBNEURONCORETENVECSCLSIMDNEURONCORETENVECSCLSIMDNEURONCORETENVECSCLSIMDNEURONCORETENVECSCLSIMDNEURONCORETENVECSCLSIMDNEURONCORETENVECSCLSIMDNEURONCORETENVECSCLSIMDNEURONCORETENVECSCLSIMDDMA + collective enginesNeuronLink12345WHAT YOU ARE LOOKING AT1NeuronCoresIndependent cores, each a small dataflow machine. Drawn as 8, the count onTrainium2; AWS has not stressed the Trn3 count.2Four engines per coreTensor (a systolic array for matmul), Vector, Scalar and GpSimd(general-purpose code), all fed from on-core SRAM.3SBUFSoftware-managed on-core SRAM. The compiler or an NKI kernel decides whatlives there: no hardware cache to guess.4HBM3e, 144 GB4.9 TB/s per chip, 1.7x Trainium2.5NeuronLink + collectivesChip-to-chip scale-up links, with engines that run all-reduce without stealingcompute.Trn3 UltraServer · 144 chips, one scale-up domainLinked by NeuronSwitch; UltraServers then scale out over AWS'sEFA network into UltraClusters of hundreds of thousands of chips.FP8 / MXFP82.52 PFper chipHBM3E144 GB4.9 TB/sULTRASERVER144 chips362 PF MXFP8ULTRASERVER HBM20.7 TB706 TB/sNEXTTrainium4previewed: 6x FP4Sources: AWS Trainium product page and re:Invent 2025 launch. Inferentia2 remains AWS's inference-only part; Trainium is now used for both.
Trainium3 and its UltraServer. The NeuronCore count is drawn as eight, the Trainium2 figure.

2. Why does it matter?#

  • Price per token in the cloud. Hyperscaler chips are often the cheapest way to rent large amounts of compute in that cloud.
  • Where frontier models run. Anthropic trains and serves on Trainium as well as TPUs and GPUs; Microsoft serves its own traffic on Maia. If you work at or with these companies, you will meet these chips.
  • The design choices teach you the problem. Maia 200’s 272 MB of SRAM and Google’s TPU 8i’s 384 MB both say the same thing about decode: keep more of the hot working set on the chip.

3. Simple analogy#

A restaurant chain big enough can stop buying ovens from a catalogue and have its own designed: sized for its exact menu, at the cost of building them, without the catalogue’s markup. For a single restaurant, the design fee would never pay back. For a chain of ten thousand, it pays back many times over.


4. Tiny example#

A rough break-even, using placeholder numbers:

design program per generation:    $800 million
merchant GPU:                     $35,000
in-house chip, at cost:           $12,000, but 1.4 needed to match one GPU on this workload

At 10,000 GPU-equivalents, buying GPUs costs about $0.4 billion and building costs $1.0 billion — the design fee dominates. At 100,000, buying costs about $3.9 billion and building $2.8 billion. The program in section 6 finds the crossover.


5. Technical explanation#

Inside a NeuronCore#

A NeuronCore is a small dataflow machine with four specialised engines that run in parallel, each fed from a large software-managed SRAM (SBUF):

EngineDoesGPU analogue
Tensormatrix multiply on a systolic array (7.i)tensor cores
Vectorelementwise and reduction work over vectorsCUDA cores on vectors
Scalarper-element non-linear functions (exp, GELU)special-function units
GpSimdgeneral-purpose C++ code for anything elseordinary CUDA threads

Nothing is cached automatically: the compiler, or a kernel written in NKI (Neuron Kernel Interface, a Python-embedded kernel language), decides which tiles move from HBM into SBUF and when, and schedules the four engines to overlap. That is more work than CUDA for the programmer, and more predictable once done. Dedicated collective engines run all-reduce and all-to-all over NeuronLink without taking engine time.

The generations#

Trainium2 (GA Dec 2024)Trainium3 (GA Dec 2025)Trainium4 (previewed)
Process5 nmTSMC 3 nmnot disclosed
FP8 dense~1.3 PF2.52 PF (MXFP8)~3x Trn3 (target)
FP4n/aMXFP4 supported~6x Trn3 (target)
Memory96 GB HBM3, 2.9 TB/s144 GB HBM3e, 4.9 TB/s~4x Trn3 bandwidth (target)
Scale-up unit64-chip Trn2 UltraServer144-chip Trn3 UltraServer, 362 PF MXFP8, 20.7 TB HBMto support NVLink Fusion

Trainium4’s planned support for NVIDIA’s NVLink Fusion (9.d) is notable: AWS intends to put its own chips and NVIDIA GPUs in the same scale-up fabric. Beyond an UltraServer, chips scale out over AWS’s EFA network into “UltraClusters”; Project Rainier, built for Anthropic in 2025, was hundreds of thousands of Trainium2 chips, and Trainium3 capacity expanded through 2026. Inferentia2 remains available for small, cheap inference, but Trainium now handles both training and serving.

Microsoft Maia#

Maia 200, announced in January 2026, is an inference chip: TSMC 3 nm, 216 GB of HBM3e at about 7 TB/s, 272 MB of on-chip SRAM, native FP8 and FP4, about 10 PF of FP4 at 750 W according to Microsoft’s paper. Microsoft claims about 30% better performance per dollar than its previous hardware. A successor, Maia 300 (multi-chiplet, 2 nm, HBM4), was reported in October 2026 but not confirmed by Microsoft at the time of checking.

Meta MTIA#

Meta’s MTIA chips started with the workload that dominates Meta’s data centers: recommendation and ranking. MTIA v2 (2024) used LPDDR5 rather than HBM and ran at about 90 W, because ranking models are dominated by embedding lookups and small matrices, where capacity and cost matter more than bandwidth. At Hot Chips 2026 Meta presented later MTIA generations aimed increasingly at generative AI; Meta also remains one of the largest buyers of NVIDIA and AMD GPUs.

Why build your own chip#

ReasonWhat it means
MarginA merchant GPU’s price includes a large gross margin; an in-house chip is bought at cost
SupplyA second source of compute when GPUs are scarce, and leverage in negotiations
FitSize the memory, SRAM and interconnect for your own models and data centers
PowerBetter performance per watt on known workloads, in power-limited buildings

The costs are real: a leading-edge chip program costs hundreds of millions of dollars per generation, needs a design partner (Broadcom, Marvell, Alchip, MediaTek and others), takes two to three years, and its software must be good enough that internal teams choose it.


6. Under the hood#

A break-even model for an in-house accelerator program against buying merchant GPUs.

Go
// custom.go — at what fleet size does designing your own chip pay off?
package main

import "fmt"

func main() {
	const (
		programCost = 800e6 // design, masks, software team, per generation (dollars)
		years       = 3.0   // useful life of one generation
		gpuPrice    = 35000.0
		gpuWatts    = 1400.0
		asicPrice   = 12000.0 // at cost, but you need more of them for the same work
		asicWatts   = 900.0
		asicPerGPU  = 1.4 // ASICs needed to match one GPU on your workload
		dollarsKWh  = 0.08
		pue         = 1.25
	)
	energy := func(watts, n float64) float64 {
		return watts / 1000 * n * 24 * 365 * years * pue * dollarsKWh
	}
	fmt.Println("GPU-equivalents   merchant GPUs     in-house ASICs    winner")
	for _, n := range []float64{10e3, 50e3, 100e3, 250e3, 1e6} {
		buy := n*gpuPrice + energy(gpuWatts, n)
		a := n * asicPerGPU
		build := programCost + a*asicPrice + energy(asicWatts, a)
		w := "buy"
		if build < buy {
			w = "build"
		}
		fmt.Printf("%15.0f   $%12.2f B   $%12.2f B    %s\n", n, buy/1e9, build/1e9, w)
	}
}

Output:

GPU-equivalents   merchant GPUs     in-house ASICs    winner
          10000   $        0.39 B   $        1.00 B    buy
          50000   $        1.93 B   $        1.81 B    build
         100000   $        3.87 B   $        2.81 B    build
         250000   $        9.67 B   $        5.83 B    build
        1000000   $       38.68 B   $       20.91 B    build

With these placeholder numbers the program breaks even at about 43,000 GPU-equivalents and wins comfortably above that — which is why only the very largest buyers do this. Change asicPerGPU to reflect a weaker chip or immature software and the break-even moves out quickly.


7. Performance implications#

  • Trainium3 has less bandwidth per chip (4.9 TB/s) than B200 or MI355X (8 TB/s), so per-chip decode is slower; it competes on price and on the 144-chip UltraServer domain.
  • SRAM-heavy inference chips (Maia 200, TPU 8i) aim at decode, where reading from on-chip SRAM beats HBM by an order of magnitude for whatever fits.
  • Software-managed memory means performance depends heavily on the compiler or on NKI kernels for your exact model.

8. Production implications#

  • Availability: Trainium is rented in AWS; Maia and MTIA are not sold or rented to outside customers.
  • Serving stack: AWS’s Neuron SDK and its vLLM integration support a list of popular models; check yours, its precision and its context length before planning.
  • Portability: code written against NKI or Neuron is AWS-specific. Keep a GPU path if you need multi-cloud.
  • Cost model: compare cost per million tokens at your latency target against GPU instances in the same cloud (23.c).

9. Common mistakes#

  1. Assuming a hyperscaler chip is a drop-in GPU. The programming model differs.
  2. Comparing FP8 numbers across MXFP8 and plain FP8 without checking the format.
  3. Building your own chip below hyperscaler volume. The design fee never pays back.
  4. Ignoring the software team’s cost. It is part of the program cost.

10. Hands-on exercise#

  1. Run custom.go. Find the fleet size at which build and buy cost the same. Then set asicPerGPU to 2.0 and find it again.
  2. Read the NKI documentation and write, in pseudo-code, how you would tile a 4096 × 4096 matrix multiply into SBUF.
  3. Compare Maia 200’s SRAM-to-HBM ratio with Ironwood’s, TPU 8i’s and Rubin’s. What does a larger ratio suggest about the workload each was built for?

11. Interview questions#

  1. Name the four engines of a NeuronCore and the job of each.
  2. What does “software-managed SRAM” mean, and what does it cost the programmer?
  3. Why did Meta’s first MTIA chips use LPDDR instead of HBM?
  4. Give three reasons a hyperscaler builds its own accelerator, and the main reason a smaller company should not.
  5. Why is Trainium4’s NVLink Fusion support significant?

12. Further reading#

Checked on 11 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in