Skip to main content
Search

# Neuron Kernel Interface

3 related articles

Subscribe to updates
  1. PyTorch code runs on Trainium with little or no change, as Amazon validates its new backend on 841 representative models

    Amazon released TorchNeuron, an open-source backend that translates PyTorch code into operations executable on AWS Trainium, so PyTorch code already running on other accelerators runs on Trainium with minimal or no code changes. An optional adaptive eager mode groups operations into small graphs that are compiled and cached, approaching fully compiled performance while keeping eager mode's debugging experience. For evaluation, AI agents swept Hugging Face repositories to identify 841 representative models covering the range of architectures, and tens of thousands of tensor shapes were distilled for tuning and benchmarking.

  2. PyTorch

    Trainium stops demanding rewrites: TorchNeuron runs existing PyTorch code by changing one device name

    AWS released TorchNeuron, a native PyTorch backend for Trainium chips, so model code, libraries and tools run without Neuron-specific adaptation. Previously, using Hugging Face models on Trainium required Neuron-specific software and configuration; now the device is simply pointed at neuron. It registers the device through PyTorch's PrivateUse1 extension point, supports eager, torch.compile and custom NKI kernels across Trainium2 and Trainium3, and ships as an Apache 2.0 public Beta on Oct. 20.

  3. A kernel-centric path to real-time video generation on Trainium

    Using Rolling Forcing as a proxy for autoregressive diffusion video generation, Reactor and the Amazon Neuron Science team adopted a kernel-centric, bottom-up approach—writing hardware-level kernels via the Neuron Kernel Interface, applying hybrid sequence and tensor parallelism sharding, and rewriting model code to batch shared components of the diffusion and cache-update phases—successfully generating a correct video on the first end-to-end run on Trainium and delivering real-time generation above 16 fps.

You’re all caught up