Same approachGoogle posted earlier
Integrating TorchTPU into TorchTitan and Optimizing Models for TPU
AI:Both show training Qwen or Llama models with TorchTitan on a non-NVIDIA accelerator (Trainium vs. Cloud TPU).
Train Qwen3 on AWS Trainium with torchtitan three ways on a single trn2.48xlarge: the Hugging Face Transformers v5 modeling backend, torchtitan’s native Qwen3, and NKI mixture-of-experts kernels. The same torchrun launcher and config structure work unchanged across all three paths, including loading and saving published Hugging Face safetensors.
Read the original (opens the source's page in a new tab)
A walkthrough for training Qwen3 on one trn2.48xlarge using torchtitan in three ways: Hugging Face Transformers v5 backend, torchtitan's native Qwen3, and NKI mixture-of-experts kernels, plus attaching a custom NKI kernel via an override.
Engineers training or fine-tuning Qwen3 on AWS Trainium who need to load and save Hugging Face safetensors checkpoints.
Same approachGoogle posted earlier
AI:Both show training Qwen or Llama models with TorchTitan on a non-NVIDIA accelerator (Trainium vs. Cloud TPU).
Posts about AWS Trainium, oldest first.