Libtt: A Compiler and Runtime for Tenstorrent Processors
Philipp Moritz, Sarah Dong
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- TorchTPU - A Hybrid Eager/Compiled Architecture for Native PyTorch Execution on TPUarXiv · 2026
- RLX: A Unified Multi-Backend Tensor Compiler and Distributed Runtime in RustarXiv · 2026
- Trident: Unifying Guarded Dispatch and Host Execution for PyTorch Triton WorkloadsarXiv · 2026
- Characterization of machine learning compilers for LLM inference on NVIDIA GPUsThe Journal of Supercomputing · 2026
- XLA from the Trenches: Correctness on TPU Workloads at ScalearXiv · 2026
- STen: Productive and Efficient Sparsity in PyTorchACM Transactions on Architecture and Code Optimization · 2026