TorchNeuron runs your PyTorch on AWS Trainium with a one-line change

Open-sourced Apache 2.0, in public beta Oct 20: eager, torch.compile and custom NKI kernels on Trainium2/3 — Deepgram clocks ~60% more per dollar.

Nowline OCT 19 10:00 PM banner

Top AI stories from the last hour

Top AI stories from the last hour

Copy markdown

  • The unlock: one line, and your model's on Trainium

    `model.to('neuron')` is the whole move — plus `torch.compile(backend="neuron")` and Hugging Face `device_map="neuron"`. You get eager execution, torch.compile, and custom NKI kernels on Trainium2 and Trainium3, all under Apache 2.0.

  • Why it matters: a crack in the CUDA moat

    Running on Trainium used to mean porting your code; now existing PyTorch runs as-is, registered through PyTorch's PrivateUse1 backend. With ~85% of devs writing PyTorch, cheaper non-Nvidia capacity is suddenly reachable without leaving your stack.

  • The receipts: Deepgram's 60% and a 100k-model sweep

    Deepgram reports ~60% more input audio-seconds per dollar on Trainium than its GPU baseline. AWS says it ran TorchNeuron across 100,000 Hugging Face models — ~99.9% of real-world usage by download count — in both eager and compile modes.

  • The catch: it's a beta, and not everything lowers yet

    The first release skips dynamic and symbolic shapes, limits native attention masks to no-mask and causal, and keeps FP8 and TorchAO in private beta — with ~22k ops still lacking a Neuron lowering. Profile your hot path before you move a real workload.

  • Build this weekend: benchmark it against your GPU bill

    `pip install torch-neuronx` when the beta opens Oct 20 (live demos at PyTorch Conference North America, San Jose, Oct 20–21). Spin up a trn2 instance, load a model with `device_map="neuron"`, and compare tokens-per-dollar against what you pay now.