ToFindAI Article Room

AI News

Daily, weekly, and monthly AI updates from ToFindAI.

Original ToFindAI AI news articles, source-linked summaries, and practical context for people following AI tools, business, research, policy, and product launches.

Oct 21, 2026 20:10 UTC Daily ToFindAI News Desk (AI-assisted)

AWS details three ways to train Qwen3 on Trainium with torchtitan

AWS has published a walkthrough showing how torchtitan can train or fine-tune Qwen3 on a single trn2.48xlarge using three configurations: Hugging Face Transformers v5, torchtitan’s native Qwen3 implementation, and Neuron Kernel Interface mixture-of-experts kernels.

AWS TrainiumQwen3torchtitanHugging FaceNeuron Kernel Interface

AWS has published a walkthrough for training Qwen3 models on AWS Trainium with torchtitan, using a single trn2.48xlarge instance. The post describes three approaches that use the same torchrun launch pattern and configuration structure.

The first approach uses Transformers v5 as torchtitan’s modeling backend. It loads Qwen3 through AutoModelForCausalLM and supports reading published Hugging Face safetensors and exporting trained weights in the same format. AWS says a tested Qwen3-4B fine-tuning run started with a loss of 6.54 from published weights, compared with 12.43 from random initialization.

The second approach uses torchtitan’s native Qwen3 implementation, selected through its model registry. The example uses scaled dot product attention and data-parallel sharding across 64 logical NeuronCores.

The third approach uses Neuron Kernel Interface, or NKI, mixture-of-experts kernels from torchtitan-neuron recipes. The example configures a reduced four-layer Qwen3-30B-A3B model with 64 experts and routes each token to four experts. AWS says this configuration is designed to fit on one trn2.48xlarge and does not use expert parallelism.

The walkthrough requires a Neuron Deep Learning AMI or PyTorch training container, along with specified versions of torch, torch_neuronx, Transformers, and torchtitan-neuron. It covers both eager execution and torch.compile, as well as registering custom NKI operators and their backward passes.

Why it matters

The walkthrough presents a common configuration and launch pattern for using Hugging Face models, native torchtitan implementations, and custom Trainium kernels.

Who this affects

The material is relevant to teams training or fine-tuning Qwen3 models on AWS Trainium and developers customizing torchtitan or NKI kernels.

Do you run an AI tool or service business?

Advertise your AI tool or service in the ToFindAI directory.