
Structure and Interpretation
of Tensor Programs
First Edition
A Whirlwind Tour to Deep Learning and Deep Learning Systems
Runnanochatby building 
borschtfrom scratch: a hackable subset oftorchWhat’s in a name? Borscht is a sour soup with meat from Eastern Europe, most often associated with the variant originating in Ukraine with red beetroots
. It’s a permutation-like pun on torch, given how the deep learning framework borscht aims to be a rough subset of PyTorch. You want a torch.Tensor? You get the 
borscht borscht.Tensor. My mother in law’s borscht is to die for! Мне очень нравится ваш борщ, миссис Ким!
with Python, Rust, and CUDA Rust programming languages!
Made with 🖤🪻 by Jeffrey Zhang, University of Waterloo (BMath)
Made possible by Lambda Labs Research Grant
You are viewing this on a mobile device, but SITP is best viewed on a desktop — the book includes various multimedia lecture videos, visualizers, any tufte-style sidenotes with many external hyperlinks to other resources.
Citation:
@book{zhang2026sitp,
author = "Jeffrey David Zhang",
title = "Structure and Interpretation of Tensor Programs",
year = 2026,
url = "https://sitp.ai"
}