Libtt: A Compiler and Runtime for Tenstorrent Processors
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.DC, cs.LG
- Comments
- 28 pages, 5 figures, 13 tables. Code: https://github.com/pcmoritz/libtt
Related papers
Estimating GPU Roofline Arithmetic Intensity with Off-the-Shelf LLMs and Compiler Artifacts
Shared title terminologycs.DCGregory Bolet, Giorgis Georgakoudis, Konstantinos Parasyris et al.
Sound Distributed Runtime Verification under Incomplete Evidence
Shared title terminologycs.DCNikolaos Kekatos, Antonio Anastasio Bruto da Costa, Alexios Lekidis et al.
LIBRA: Runtime Co-Tuning of Batch Size and Parallelism for Time-Efficient LLM Training
Shared title terminologycs.DCShengkai Lyu, Hairui Zhao, Daran Sun et al.
Torcalia.jl: An MPI-based Runtime System for Asynchronous Task Parallelism in Julia
Shared title terminologycs.DCArgiris Sofotasios, Dimitris Metaxakis, Chrysostomos Stylios et al.
Weave: Routing-Adaptive Runtime Warp Scheduling for MoE Megakernels
Shared title terminologycs.DCZiyu Huang, Yangjie Zhou, Chenhao Zhu et al.
Contexture: Runtime Context Eviction for High-Throughput Agent Serving
Shared title terminologycs.DCColin Hong, Bryan Shan, Wei Siong Pang et al.