borch

Tutorials

Ten projects, finished

Where Learn takes one idea at a time, these take one problem from beginning to end — data, model, training, and a look at what came out. Every block runs in the page on your own GPU, and you can edit it before you run it. Nothing is installed.

New to the ideas themselves? Learn covers them one at a time — tensors, autograd, modules, training — and these projects assume you have met them, or are willing to meet them mid-project.

The two that need data

Tutorials 4 and 5 use a real dataset, and this repository keeps binaries out of git — the same rule that puts vendor/pyodide and borch-ts/dist outside every commit. Build the subset once:

python3 site/fetch_data.py              # from CIFAR binaries you already have
python3 site/fetch_data.py --download   # or fetch them

It writes about 1MB into site/assets/data/: 2,000 training and 500 test images, JPEG-compressed. The pixels are not identical to the original, which is fine for "does it learn" and not fine for comparing a number against a paper. The pages say so where the number appears.

What these are not

They are not a benchmark and not a state-of-the-art anything. A tab-sized model on 2,000 images tells you the chain works end to end; the repository's own measured numbers are the ones to quote. Transfer learning and pretrained weights are absent on purpose and will stay absent — they are things you leave the browser to learn.