ProductsMulti-source

Libtt 让 PyTorch 和 JAX 直接跑在 Tenstorrent 芯片上

Libtt: A Compiler and Runtime for Tenstorrent Processors

Why we picked it

Tenstorrent 出了个 Libtt,把 PJRT 接口实现了一遍,JAX 和 PyTorch 代码几乎不用改就能跑在他们芯片上,SGLang、TorchTitan 都验证过了。做开源硬件生态、想摆脱 CUDA 锁定的开发者可以重点关注。

Libtt 是一个面向 Tenstorrent 处理器的编译器与运行时,核心做法是实现 PJRT 接口——也就是 XLA 系框架驱动 Google TPU 的同一套接口。因此 JAX 可以直接在其硬件上运行,PyTorch 通过 TorchTPU 适配,原本为 TPU 写的软件只需替换自定义 kernel 即可迁移,无需其它改动。

Body

整个技术栈基于 Tenstorrent 的开源编译器和运行时构建,从编译器到多芯片运行时打包为单个共享库发布。团队对上游 Tenstorrent 软件做了大量修复,使现有 PyTorch 和 JAX 代码开箱即用,并新增了大量编译器优化来提升性能。

Libtt 目前通过大部分 JAX 和 TorchTPU 测试套件,并已验证能运行 SGLang(推理服务)、TorchTitan(微调训练)和 Miles(强化学习)三类主流框架。这意味着开发者熟悉的 TPU 生态工具链可以直接复用到 Tenstorrent 这家开源硬件厂商的芯片上,为 NVIDIA CUDA 生态之外提供了一个兼容 JAX/PyTorch 的替代路径。

Original · arXiv cs.LG

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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Products" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Tenstorrent, JAX, PyTorch, compilers.

Source attribution: curated from arXiv cs.LG (@Philipp Moritz, Sarah Dong). Cross-source corroboration: 11 independent sources have covered this development (including PyTorch, kimmonismus, NVIDIA), confirming industry-wide signal strength.