News ·
Train Qwen3 on AWS Trainium with torchtitan
AWS shows three ways to train Qwen3 on a single Trainium trn2.48xlarge using torchtitan: the Hugging Face Transformers v5 backend, torchtitan's native Qwen3, and NKI mixture-of-experts kernels, all sharing the same launcher and configs.

AWS has published guidance on training Qwen3 on its Trainium hardware with torchtitan, demonstrating three distinct approaches on a single trn2.48xlarge instance. The three paths are using the Hugging Face Transformers v5 modeling backend, using torchtitan's own native Qwen3 implementation, and using NKI mixture-of-experts kernels.
What makes the setup notable is that all three approaches work with the same torchrun launcher and the same config structure, with no changes needed when switching between them. The workflows also support loading and saving published Hugging Face safetensors, so checkpoints stay compatible with the standard Hugging Face ecosystem.
For teams building with AI, this offers flexibility in how to bring Qwen3 training onto Trainium: you can lean on Hugging Face Transformers v5, torchtitan's built-in support, or custom NKI MoE kernels depending on your needs, without rewriting your launch or configuration setup, and while remaining compatible with widely used safetensors checkpoints.
References
- Amazon Web Services · aws.amazon.com
Read the full story at Amazon Web Services ↗Like, save or discuss on Buzz


