创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

IBM Spyre 编译器后端迁移至 PyTorch Inductor

AI 总结

PyTorch 博客发文称,IBM Spyre 加速器的 PyTorch 软件栈 torch-spyre 已将 torch.compile 后端从完全自建的 sendnn 编译栈迁移到基于 Inductor 扩展的开源后端。文章称 Inductor 大部分代码原样沿用,工作量集中在 Spyre 与 GPU 假设不同的三处:以 128 字节 stick 为单位的数据搬运、仅有每核 2MB scratchpad 而无共享缓存、以及静态核心分配。作者称新编译器体积约为被取代方案的七分之一,并给出单核 softmax 内核中位时间下降 27%、matmul 分块布局使内核时间减少 29%–69% 的示例数据。

深度见解

文章称 torch-spyre 对设备专属分解的需求推动了 Inductor 树外后端支持的改进,并已随 PyTorch 2.12 上游合入,为其他非 GPU 形态硬件的后端提供可复用的扩展点。

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

原文约 16 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。