This document is relevant for: Trn2, Trn3

TorchTitan training tutorials#

End-to-end walk-throughs for common TorchTitan pre-training workloads on AWS Trainium.

Basic training tutorial

A first, complete TorchTitan training run on Trainium.

SimpleFSDP training with Llama and DeepSeek tutorial

Compiler-based sharding for two real model families.

GPT-OSS training tutorial

End-to-end GPT-OSS training with TorchTitan on Trainium.

MXFP8 training with prequantized weights tutorial

Qwen3 in MXFP8 with TorchAO Neuron on Trainium3.

Auto-tune MXFP8 kernel configs tutorial

Tune the MXFP8 matmul and MoE kernels for your run on Trainium3 with an agent skill, and train with the result.

Pipeline-parallel training tutorial

Split Llama 3 into pipeline stages across Trainium nodes.

Expert parallelism training tutorial

Qwen3-235B with expert parallelism on a four-node Trn3 UltraServer.

This document is relevant for: Trn2, Trn3