# xformers

A PyTorch-based library of optimized, composable building blocks for Transformer models.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Building Spyre as a Native PyTorch Device

DevFeed: [Building Spyre as a Native PyTorch Device](<https://devfeed.tech/articles/building-spyre-as-a-native-pytorch-device-77309.md>)

Original publisher: [Read original article](<https://pytorch.org/blog/building-spyre-as-a-native-pytorch-device/>)

Author: Joshua Rosenkranz, Tuan Hoang Trong, Thomas Gooding, Matthew Pisano, and the IBM Spyre Team

Published: 2026-10-08T12:45:49Z

Content type: tutorial

Language: en

Sources: [PyTorch](<https://devfeed.tech/sources/blog-pytorch.md>)

Topics: [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [xformers](<https://devfeed.tech/topics/xformers.md>)

Tags: [accelerators](<https://devfeed.tech/tags/accelerators.md>), [api](<https://devfeed.tech/tags/api.md>), [blog](<https://devfeed.tech/tags/blog.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>)

### AI overview

The article explains how IBM's torch-spyre integration maps PyTorch device identity, allocator-managed tensor storage, streams, events, and Inductor compilation onto the Spyre inference accelerator's runtime and firmware. It describes launch-time address patching, cross-stream dependencies, and the change from rebuilding runtime graphs for each launch to preparing typed operations once per compiled artifact. The article reports faster prefill and decode in its Granite 3.3 8B example, while noting that operator coverage, profiling, distributed collectives, and other backend capabilities remain separate work.

### Source excerpt

TL;DR Spyre becomes a native PyTorch device by connecting PyTorch's existing device, allocator, stream, and compiler abstractions through torch-spyre to the Spyre runtime and firmware. PrivateUse1 gives Spyre a real... The post Building Spyre as a Native PyTorch Device appeared first on PyTorch.