AIThis post was created with the assistance of artificial intelligence (AI).

🔍 Read the full analysis: How Model Training Works In PyTorch, From Tensors To Gradients on ThorstenMeyerAI.com

Buying for a business?Offer from Amazon

Get business pricing on monitors, keyboards and dev gear

  • Business-only prices and quantity discounts
  • Tax-exempt purchasing
  • Multiple users, one account, clear invoices
As an affiliate, we earn on qualifying purchases.

TL;DR

PyTorch training combines tensors, automatic differentiation, accelerator hardware and an optimization loop to adjust a neural network’s parameters. On October 20, 2026, Google and Meta introduced TorchTPU, while TorchNeuron entered public beta for AWS Trainium, aiming to make PyTorch easier to run beyond Nvidia GPUs. The new backends may reduce switching work, but they do not guarantee identical performance or eliminate code changes.

Google and Meta introduced TorchTPU on October 20, 2026, to run PyTorch on Google’s tensor processing units, while TorchNeuron entered public beta for AWS Trainium. The releases bring a basic part of AI development into focus: PyTorch turns data into tensors, calculates gradients that show how model parameters should change, and uses those calculations to train models across different hardware.

PyTorch is an open-source Python library for building and training neural networks. Its basic unit is a tensor, a multi-dimensional array whose values have a data type and are stored on a device such as a CPU or GPU. Model inputs, outputs and learned weights can all be represented as tensors. Matrix operations on them form much of the numerical work in a neural network.

During training, PyTorch’s autograd system tracks operations involving tensors and calculates gradients: values that indicate how changing model parameters would affect a loss, or measure of prediction error. An optimizer uses those gradients to update the parameters. Developers commonly package the model in torch.nn.Module and repeat the steps in a training loop: make a prediction, calculate loss, compute gradients and update the weights.

The process can run on accelerators, which handle the large mathematical operations. PyTorch’s eager execution model runs operations as Python reaches them and builds the calculation graph as it goes. Its torch.compile feature can compile code for performance, while the new chip backends aim to connect familiar PyTorch code to Google or AWS hardware. The October 20 announcements describe the goal as making a TPU port as simple as changing a device setting; that is a stated aim, not a guarantee that every model will require no changes.

At a glance
reportWhen: Developments announced October 20, 2026…
The developmentGoogle and Meta introduced TorchTPU and AWS’s TorchNeuron entered public beta on October 20, 2026, illustrating a push to make PyTorch run natively across more AI chips.

Why Chip Support Matters to Teams

AI companies depend on both model software and the chips that execute it. A framework that can run across hardware vendors may give teams more choice in where to train and make it easier to test alternatives to their current infrastructure. That can affect hardware procurement, engineering skills and the time needed to move a model between systems.

But a common framework does not make accelerators interchangeable. Hardware differs, and software backends may support different operations or deliver different performance. The TorchTPU authors, according to the source material, say that reaching peak performance can still require changes. The practical value of these releases will depend on how well they work with real models and workloads, not only on whether code can start running.

Products Worth Considering

Bose QuietComfort Ultra Earbuds (2nd Gen), Wireless Noise-Cancelling Earbuds, Black

Bose QuietComfort Ultra Earbuds (2nd Gen), Wireless Noise-Cancelling Earbuds, Black

DJI Mic 2 Wireless Microphone System (2 Transmitters, 1 Receiver, Charging Case)

DJI Mic 2 Wireless Microphone System (2 Transmitters, 1 Receiver, Charging Case)

As an affiliate, we earn on qualifying purchases.

From PyTorch to More Chips

PyTorch began in 2016 and had its first public release in January 2017, according to the 2019 research paper by Adam Paszke and co-authors. The project moved to the PyTorch Foundation, a Linux Foundation project, on September 12, 2022. Its governance is intended to separate technical decisions by maintainers from broader foundation oversight; Meta was still described as its largest contributor when the move was announced.

PyTorch is not the only open-source machine-learning framework. JAX and TensorFlow also support accelerator computing, but organize their programming models differently. PyTorch is eager by default with optional compilation; JAX is built around composable function transformations; TensorFlow 2 is eager by default and can create exportable graphs with tf.function. The comparison is about differing approaches, not a ranking.

The account supplied for this article says PyTorch 2.15 was released October 28, 2026, with 3,117 commits from 583 contributors since version 2.14. The training examples in the source were written and tested with PyTorch 2.12, so they should not be read as a test of version 2.15 or of the newly announced chip backends.

“Technical decisions remain in control of individual maintainers.”

— Soumith Chintala, on PyTorch’s move to the Linux Foundation in 2022

Backend Performance Still Needs Testing

The announcement details do not establish how TorchTPU or TorchNeuron perform across model types, or how much code must change in typical deployments. Measured performance, cost and compatibility are not provided here, and the source material does not report independent tests. It is also unclear how broadly the backends support existing PyTorch operations or how quickly they will be maintained as the framework changes.

The simple device-name change described for TorchTPU is a stated portability goal. The available information does not show that every model can move between Nvidia, Google and AWS hardware with that single edit, or that it will run equally fast on each system.

Real-World Backend Adoption

The next useful indicators will be the maturity of the backends, their documented hardware and software support, and results from teams running representative workloads. AWS’s TorchNeuron was described as being in public beta; the supplied information does not specify a general-availability date. For TorchTPU, adoption will depend on developers being able to test models and identify any required changes.

For readers evaluating PyTorch, the training sequence remains the same: tensors hold data and parameters, autograd computes gradients, and an optimizer updates the model in a repeated loop. The new chip projects will be judged by whether they make that familiar workflow practical across more hardware, with acceptable performance and engineering effort.

Key Questions

What does PyTorch do during model training?

PyTorch runs the model’s calculations, measures prediction error, calculates gradients with autograd and lets an optimizer update model parameters over repeated training steps.

What is a tensor?

A tensor is a multi-dimensional collection of values with a shape, data type and device. It can represent anything from a single number to a batch of images or a model’s weights.

What do gradients tell a model?

Gradients indicate how parameter changes affect the loss, the measure of model error. An optimizer uses them to adjust parameters during training.

Does TorchTPU mean PyTorch models need no changes to run on Google chips?

That is the stated portability goal, not a confirmed guarantee. The source says TorchTPU’s authors note that peak performance can still require changes, and the available information does not establish compatibility for every model.

How does PyTorch differ from JAX and TensorFlow?

All three are open source and support accelerator computing, but their programming styles differ. PyTorch is eager by default with optional compilation, JAX uses composable function transformations, and TensorFlow 2 can turn functions into graphs with tf.function.

Source: ThorstenMeyerAI.com

You May Also Like

Making Big Downloads Resumable In Firefox

An independent report says changing Firefox’s response-timeout preference may help some large downloads resume, but the cause is unverified.

How To Add Accountability To Autonomous Agent Actions

A proposed proxy would require single-use approval for high-risk agent actions and log grants and denials, addressing gaps in broad API access.

A Closer Look At Fine-Tuning 3D Generation Models

Hugging Face published scripts to fine-tune TRELLIS.2 on custom 3D assets. A shoe experiment is described, but no outcome is reported.

AI Attacks Without Human Involvement: What Google Can And Can’t Show

Google says it found a framework that autonomously identified and exploited software flaws, while broader attacks with little human input remain a forecast.