
Structure and Interpretation
of Tensor Programs
First Edition
A Whirlwind Tour to Deep Learning and Deep Learning Systems (For Humans)All text (every single word) has been written by a human, for a human, as this book is not a reference book, but rather an adventure for a human. You are highly encouraged if not expected to read with an LLM, but be aware (that is, to beware) of how much you cognitively offload and outsource your understanding.
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: Мне очень нравится ваш борщ, миссис Ким)
with🐍 Python,🦀 Rust, and🦀🚀 CUDA Rustprogramming languages!
A new breadth of computer science for the world of software 2.0
Made with 🖤🪻 by Jeffrey Zhang, University of Waterloo (BMath)
Made possible by Lambda Labs Research Grant and Netlify.
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"
}