PyTorch pushes past GPU-only workflows as TorchTPU, TorchNeuron and llm-d mature

Última actualización: 10/26/2026
  • Google and Meta open-sourced TorchTPU for native PyTorch on TPUs, with eager debugging, torch.compile and minimal code changes, though peak performance still needs tuning.
  • Serving and training integrations grew around vLLM, SGLang, llm-d 1.0, TorchTitan, VeRL, Ray and Hugging Face, with published scaling and throughput results on TPUs.
  • AWS launched TorchNeuron in public beta for Trainium, and an i14 case study showed a custom GLA model running with native PyTorch and vLLM.
  • The PyTorch Foundation added nine members while LiteRT and a TPU agent suite expanded deployment options; teams still need capacity checks, sharding and realistic benchmarks.

PyTorch ecosystem and accelerated hardware

At PyTorch Conference North America 2026 in San Jose, Google and Meta open-sourced TorchTPU, a native PyTorch backend for Tensor Processing Units, while AWS used the same week to put TorchNeuron into public beta for Trainium chips. The pair of releases gave developers more ways to keep PyTorch code while testing non-Nvidia accelerators, a shift that matters as inference demand and hardware costs keep climbing.

The practical pitch is straightforward: move a model with a small device change, debug in eager mode, then compile for production. But the fine print is just as important, because running out of the box is not the same as running at peak performance. Teams still need to plan for sharding, kernel tuning, capacity checks and realistic benchmarks before treating TPUs or Trainium as drop-in replacements.

Google se une a PyTorch de Meta para desafiar el dominio de Nvidia
Related article:
Google teams up with Meta’s PyTorch to challenge Nvidia’s AI dominance

TorchTPU moves TPUs into native PyTorch territory

TorchTPU is designed to replace the older PyTorch/XLA bridge, which required intrusive code changes and felt like a workaround to many developers. The new stack, co-developed by Google and Meta’s PyTorch team, registers through PyTorch’s PrivateUse1 extension point and aims to make the move look like a switch from model.to(‘cuda’) to model.to(‘tpu’). Eager execution remains available for debugging, while torch.compile handles graph capture and optimization.

PyTorch developers and accelerated computing

Meta said the backend supports major LLM, advertising and recommendation workloads in key production cases, and Jana van Greunen, director of PyTorch engineering at Meta, framed the work as a way to avoid being tied to a single hardware architecture. That is a notable endorsement because Meta created PyTorch and runs enormous training and inference fleets; still, the company described the release as a beginning, not a finished migration story.

Google was candid that a one-line change is only a starting point. Shapes, sharding and operators may still be skewed toward GPU assumptions, and default Skinny Collectives can carry a roughly 30 to 40 percent end-to-end penalty for distributed jobs because computation and communication overlap less effectively. Peak TPU performance usually needs Pallas kernels, production-grade stacks and more deliberate tuning, which is why the company pointed users toward vLLM-TorchTPU, SGLang-TorchTPU and PyTorch on TPUs deep dive for serious deployments.

runtime ia pytorch javascript c++ cuda
Related article:
Inside the AI Runtime: PyTorch, C++, CUDA and Beyond

Serving and training stack gets TPU-aware

Hugging Face made the on-ramp shorter. In Transformers v5, passing device_map=’tpu’ sends a model to a TPU, and Google said the Transformers test suite runs on TPU infrastructure every night. Diffusers also runs natively with eager mode, torch.compile and tensor parallelism across multiple chips. Open-weight models from the Hugging Face Hub are meant to work without a separate conversion stack, though teams should still test their own pipelines.

For serving, the native vLLM backend on TorchTPU was built with Inferact. It supports continuous batching, quantization and multi-chip parallelism using custom Pallas kernels while preserving upstream worker models, schedulers and API servers. That preservation matters for teams that do not want to rewrite an existing inference service just to evaluate TPU hardware.

SGLang received a similar treatment through work with RadixArk. Its RadixAttention approach reuses KV cache across requests so repeated prompt prefixes can skip recomputation, and the TorchTPU version uses a disaggregation transfer backend that also acts as the I/O backend for HiCache. Structured and agentic workloads are the target here, since long prompts and multi-step generation put a premium on cache reuse and latency control.

TorchTitan, the PyTorch-native reference implementation for distributed training, now has a production-grade TorchTPU integration built on torch.compile, SimpleFSDP, specialized Pallas kernels and graph-level optimizations. Google listed recipes for dense models such as Llama 3 70B and 405B, Qwen 3 8B and 32B, MuseGlimmer 30B, the Qwen 3 235B mixture-of-experts model and the FLUX.1 12B diffusion transformer. Published results include up to 52 percent Model Flops Utilization on Qwen 3 8B with near-linear scaling across as many as 8,192 Ironwood TPUs, plus a 28 percent MFU run for Qwen3 235B on 8,192 TPU v7x chips.

Representación abstracta de conexiones neuronales inspirada en la neurociencia y el cerebro humano.
Related article:
Neural Network Pruning: Mastering the Art of Model Optimization

Reinforcement learning also got attention. Google upstreamed a TPU backend and an end-to-end reference recipe to VeRL, including a GRPO recipe built on a disaggregated trainer-sampler design and demonstrated on mathematical reasoning data. Ray added native TorchTPU support so PyTorch data processing, training, RL and serving can be orchestrated across CPUs, GPUs and TPUs in one workflow. Heterogeneous pipelines become easier to schedule, but only if teams map each stage to the accelerator that actually fits it.

llm-d 1.0 and Kubernetes routing

Google released llm-d 1.0 with Red Hat, IBM and a community of more than 500 contributors across 25 organizations. The project is a Cloud Native Computing Foundation Sandbox effort that connects the PyTorch serving world, where vLLM and SGLang run models, with Kubernetes, where distributed systems are deployed and scaled. Its router uses prefix-cache-aware routing to send requests to replicas that already hold the relevant context, and it separates compute-heavy prefill from memory-heavy decode.

The 1.0 release adds multi-tenant flow control, router high availability, stable v1 APIs and session-aware routing for agents. On Google Kubernetes Engine, a common llm-d endpoint can run on GPUs or TPUs, giving operators a way to choose hardware per workload without changing the serving endpoint. Zenteiq reported a fourfold gain for synthetic data generation after using GKE Inference Gateway powered by llm-d, rising from 1.47 billion to 5.97 billion tokens per day per 1,000 TPU v6e accelerators.

Mano robótica tocando una red neuronal digital interconectada con nodos brillantes sobre fondo azul oscuro, representando el entrenamiento de modelos de inteligencia artificial y las redes neuronales
Related article:
Mastering AI Model Training: From Basic Algorithms to Enterprise Scale

AWS counters with TorchNeuron

AWS put TorchNeuron into public beta as an open-source native PyTorch backend for Trainium2 and Trainium3 instances. The company said eager execution can start with a switch to .to(‘neuron’), while compiled models need the Neuron backend selected. TorchNeuron pushes PyTorch workloads and integrates with the Neuron Kernel Interface for custom operators, and both TorchNeuron and TorchTPU use PyTorch’s PrivateUse1 path. The shared extension point lowers the cost of porting, but it does not erase vendor-specific optimization work.

The first release has gaps. Reports noted that TorchNeuron does not yet support dynamic input shapes and skips roughly 22,000 PyTorch tests, so teams should check their workloads carefully. Analysts also warned that while PyTorch provides a common language, the optimization and supply layers remain under vendor control. Portability is improving, not universal, and the practical experience can vary sharply by model architecture.

A detailed AWS case study showed how i14 adapted its Laplace 3B model for Trainium2 using native PyTorch through TorchNeuron Native. Laplace 3B uses Gated Linear Attention with a fixed recurrent state of 29.5 MB per sequence, avoiding a KV cache that grows with context. The team replaced a GPU-specific Triton kernel with standard PyTorch operators, redesigned Muon communication with all_to_all collectives to cut per-rank traffic 24 times and raise throughput 1.63 times, and statically unrolled the backward pass for the compiler. On one trn2.48xlarge instance, training reached about 120,000 tokens per second, and an unmodified vLLM engine served 11,544 output tokens per second across 1,280 concurrent sequences.

TorchNeuron
Related article:
AWS’s TorchNeuron Pushes PyTorch Closer to Trainium

Foundation membership and ecosystem signals

The PyTorch Foundation announced nine new members at the conference: Lablup, LightSeek Foundation, Messiah University, Nebius, Nscale, Shopify, Siksha O Anusandhan, SKOPOS India Foundation and Valencia College. Nebius, Nscale and Shopify joined as Platinum members, deepening the foundation’s role as a vendor-neutral hub for PyTorch, vLLM, DeepSpeed, Ray, Helion and Safetensors. Mark Collier, executive director of the foundation, argued that open systems learn faster when more organizations share work instead of locking breakthroughs inside one company.

Other ecosystem updates filled out the picture. ExecuTorch added a path to Arm Cortex-M CPUs with CMSIS-NN acceleration, IBM extended Inductor for its Spyre accelerator with far less compiler-specific code, and Shopify described a continual learning loop with PyTorch and vLLM that compressed production failures into model weights daily and cut serving costs by 96 percent. Those examples show the ecosystem spreading from data-center training into devices, custom accelerators and production feedback loops.

Deployment tools and practical caveats

LiteRT, formerly TensorFlow Lite, joined the PyTorch ecosystem through LiteRT-Torch. A single litert-torch.convert() call builds on torch.export() and Core ATen operators, and converted models can run on Android, iOS, macOS, Windows, Linux, web and IoT devices with acceleration across CPUs, GPUs and NPUs. Google also put a TPU agent suite into early preview on GitHub to help with onboarding, diagnostics, user questions and inference tuning. These tools target the unglamorous work that often decides whether a port succeeds.

For teams weighing a move, the safe reading is that PyTorch’s hardware options are broader, but peak performance still demands expertise. Benchmark realistic arrival patterns, because fixed batches can hide the cost of compiling new shapes; confirm TPU or Trainium capacity before committing; and budget for sharding and kernel work. Eager mode can be useful for reproducibility when compiled output differs slightly due to BF16 reassociation, while compiled decode can deliver large gains under staggered traffic.

Across the conference, the common thread was less about one chip beating another and more about removing friction from PyTorch workflows. TorchTPU, TorchNeuron, llm-d, TorchTitan, VeRL, Ray, Hugging Face and LiteRT all point toward a stack where the same model code can be tested across hardware, with performance work layered on top. The gains are real but conditional: portability gets teams through the door, while tuning, benchmarking and operational discipline determine whether the move pays off.

Related article:
Solved: pytorch check if tensor is on gpu
Related posts: