
Structure and Interpretation
of Tensor Programs
First Edition
A Whirlwind Tour to Deep Learning Alchemy and Deep Learning Systems
Run 🤖nanochatby building 
borschtfrom scratch: a hackable subset of 🔥torchWhat’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 torch. You want a torch.Tensor? You get the 
borscht.Tensor! Also, my mother in law’s borscht is to die for: Мне очень нравится ваш борщ, миссис Ким)
A new breadth of mathematical computer science for the world of artificial intelligence
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 = 2027,
url = "https://sitp.ai"
}