Neuron no longer supports PyTorch/XLA inference on Trn2 and Trn3 starting with Neuron 2.34#

Starting with Neuron Release 2.34.0, Neuron no longer supports PyTorch/XLA for inference workloads on Trn2 and Trn3 instances. Neuron announced this change in Neuron 2.33 (Announcing end of support for the Torch/XLA inference path on Trn2 and Trn3 starting in Neuron 2.34). Neuron 2.30 ended PyTorch/XLA support for training (Neuron no longer supports PyTorch/XLA for training starting with Neuron 2.30).

To run inference on Trn2 and Trn3, use TorchNeuron, the native PyTorch backend, in eager mode or with torch.compile(backend="neuron"). To serve large language models, use vLLM Neuron, which runs on TorchNeuron.