Libtt 让 PyTorch 和 JAX 直接跑在 Tenstorrent 芯片上
Libtt: A Compiler and Runtime for Tenstorrent Processors
Tenstorrent 出了个 Libtt,把 PJRT 接口实现了一遍,JAX 和 PyTorch 代码几乎不用改就能跑在他们芯片上,SGLang、TorchTitan 都验证过了。做开源硬件生态、想摆脱 CUDA 锁定的开发者可以重点关注。
Libtt 是一个面向 Tenstorrent 处理器的编译器与运行时,核心做法是实现 PJRT 接口——也就是 XLA 系框架驱动 Google TPU 的同一套接口。因此 JAX 可以直接在其硬件上运行,PyTorch 通过 TorchTPU 适配,原本为 TPU 写的软件只需替换自定义 kernel 即可迁移,无需其它改动。
整个技术栈基于 Tenstorrent 的开源编译器和运行时构建,从编译器到多芯片运行时打包为单个共享库发布。团队对上游 Tenstorrent 软件做了大量修复,使现有 PyTorch 和 JAX 代码开箱即用,并新增了大量编译器优化来提升性能。
Libtt 目前通过大部分 JAX 和 TorchTPU 测试套件,并已验证能运行 SGLang(推理服务)、TorchTitan(微调训练)和 Miles(强化学习)三类主流框架。这意味着开发者熟悉的 TPU 生态工具链可以直接复用到 Tenstorrent 这家开源硬件厂商的芯片上,为 NVIDIA CUDA 生态之外提供了一个兼容 JAX/PyTorch 的替代路径。
Libtt: A Compiler and Runtime for Tenstorrent Processors
Libtt brings the PyTorch and JAX ecosystem to Tenstorrent hardware. It implements PJRT, the interface through which XLA-based frameworks drive Google's TPUs, so JAX runs on it directly, PyTorch runs through TorchTPU, and software written for TPUs carries over with no changes except replacing custom kernels. Built on Tenstorrent's open-source compiler and runtime, libtt ships the entire stack, from the compiler to the multi-chip runtime, as a single shared library. It contains extensive fixes to the upstream Tenstorrent software to make existing PyTorch and JAX code work out of the box, and extensive new compiler optimizations to make it fast. It passes most of the JAX and TorchTPU test suites and runs SGLang, TorchTitan, and Miles, covering serving, fine-tuning, and reinforcement learning.
本条情报归属 AITOP「产品」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Tenstorrent、JAX、PyTorch、编译器,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Philipp Moritz, Sarah Dong),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 11 家独立信源对该事件进行交叉印证与跟进报道(含 PyTorch、kimmonismus、NVIDIA 等),属于近期高关注度行业信号。