pytorch

Tutorials on PyTorch for building and training deep learning models in Python.

Deep Learning Capstone: Image Classifier on Hugging Face

A folder of your own photos on one end, a public web demo anyone can click on the other. This image classification project covers that whole distance: fine-tune a pretrained network in PyTorch, push past 90% validation accuracy, read the confusion matrix honestly, then deploy free to Hugging Face Spaces with a proper model card. Everything runs on a plain laptop CPU, no GPU and no paid account. “A model that only lives in your notebook does not exist to ... Read More

The Attention Mechanism From Scratch in PyTorch

Every large language model you have used is, at its core, dot products, a softmax, and a weighted sum. That is the attention mechanism, and in this workshop you build it from scratch in PyTorch, tensor by tensor. You will compute Query, Key, and Value by hand on a four-word sentence, read a real heatmap, assemble multi-head attention, add causal masking, and train a tiny model that predicts text. “If you can compute it by hand once, you can debug ... Read More

Google Colab GPU Setup: Where to Run Deep Learning for Free

Your laptop does not have to suffer through deep learning. A free Google Colab GPU (Graphics Processing Unit) hands you a real Tesla T4 in a browser tab: no CUDA install, no gaming rig, no bill. This post walks through enabling it, proving it is on with one small check, the session rules that catch beginners, and a timed CPU vs GPU race you can run yourself. “The best way to get started is to stop talking and begin doing.” ... Read More