Tools and Hardware

The workshop, and the workbench

The ideas on these pages do not belong to one piece of software. The same walk downhill can be written in a notebook, in a library, or, as on this wiki, in a small cell that runs in the browser. The tools change; the gradient does not.

PyTorch and TensorFlow (with Keras) are the two libraries you will meet most often. Both let you build layers, compute a loss, and step the weights with SGD or Adam, without writing every backward pass by hand. PyTorch is, today, a common default in research and in many courses; TensorFlow is still widely used, especially in production. For a first classroom net, either is fine. The important habit is to read your tensor shapes and your loss, not to collect frameworks.

Training a large net is heavy arithmetic, and it likes GPUs: chips that are good at doing many small multiplies at once. A laptop CPU will train a tiny MLP. A GPU (on your machine, or rented) is what makes a larger CNN or a language model practical. Google Colab is a frequent classroom choice: a notebook in the browser, with an optional free GPU, and the usual Python libraries already to hand.

That is a different “in the browser” from this wiki. The live cells on these pages run in your browser, on your machine, through Pyodide — a small Python, with packages such as numpy, and no install. They are perfect for a short idea: a gradient step, a tiny convolution, a linear map that does or does not collapse. They are not a place to train ImageNet. When a lab needs a larger machine, a GPU, or PyTorch, Colab (or a local environment) is the right workbench; the wiki cell is the right desk for the thought.

See also

Back to top