pytorch
6 tutorials tagged “pytorch”.
- GPUs and Hardware for AINeural networks are mostly matrix multiplication, which GPUs do in parallel. Time Python loops, NumPy, a CPU and a GPU, and see why AI needs special hardware.
- Convolutional Neural NetworksA CNN slides small learned filters over an image to find edges, then shapes, then objects. Compute a convolution by hand, then train a CNN on digits.
- Distillation and Smaller ModelsDistillation trains a small student model to copy a big teacher. Distill a digit classifier 70 times smaller, and see why small models are rising.
- PretrainingPretraining teaches a model to predict the next token on trillions of tokens. Measure the loss of a real model, then pretrain a tiny GPT from scratch.
- PyTorch BasicsPyTorch is the most widely used deep learning library. Learn tensors, automatic gradients with autograd, and building networks with nn.Sequential.
- Training a Network in PyTorchTrain a neural network to read handwritten digits: batches, epochs, a loss, an optimizer and the training loop, reaching 97.8% on unseen images.