Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

IBM Spyre's torch.compile backend moves to PyTorch Inductor

AI summary

A PyTorch Blog post says torch-spyre, the PyTorch stack for IBM's Spyre accelerator, moved its torch.compile backend from sendnn — a compilation stack built from scratch — to backend=inductor, an open-source backend built by extending PyTorch's own Inductor. It says most of Inductor carried over untouched, with work concentrated where Spyre diverges from GPU assumptions: 128-byte stick-granularity data movement, a scratchpad-only hierarchy of 2 MB per core with no shared cache, and static core allocation. The authors say the resulting compiler is roughly 7x smaller than what it replaced, and cite a 27% drop in median kernel time for a single-core softmax and 29–69% kernel-time cuts from matmul tiling and layout.

In-depth insight

The post says torch-spyre's need for device-specific decompositions helped drive out-of-tree Inductor backend support that landed upstream in PyTorch 2.12, giving other non-GPU backends reusable extension points.

TL;DR

The PyTorch-based software stack for IBM’s Spyre accelerator recently moved its torch.compile backend from sendnn, a separate compilation stack built entirely from scratch, to backend=inductor, an open-source backend built by extending PyTorch’s own Inductor. Most of Inductor carried over untouched. The real work concentrated in three places where Spyre’s hardware asks a fundamentally different question of the compiler than a GPU does. Inductor turned out to be exactly the right substrate for this work, and the result is a compiler roughly 7x smaller than what it replaced.

IBM designed Spyre as a clean-sheet AI accelerator for enterprise inference workloads, prioritizing power efficiency. It’s a 75-watt, PCIe-attached accelerator that requires no custom power delivery or cooling.

Spyre is a dataflow accelerator architected for the reduced-precision arithmetic of inference. It’s built from 32 small cores wired together over a ring, each with its own local 2 MB scratchpad rather than a shared cache. It moves data around in fixed-size chunks called sticks – 128 bytes, or 64 values in fp16.

Torch-spyre is the PyTorch integration that targets it, and this post is about growing torch-spyre’s compiler, on top of Inductor, into something that understands that hardware well.

#IBM#IBM Spyre#PyTorch#torch-spyre#Inductor#DeepTools#Triton#Helion

Original · 16 min readRead the original
Group chat

No comments yet. Start the conversation.