ML coding
Machine learning algorithms and model parts written from scratch in NumPy and PyTorch, as ML coding rounds ask.
Machine learning algorithms and model parts written from scratch in NumPy and PyTorch, as ML coding rounds ask.
3 write-ups
| Title |
|---|
| PyTorch Essentials The PyTorch you need for an ML coding round: tensors versus arrays, autograd and accumulating gradients, nn.Module and parameters, devices, no_grad and eval, and the four lines of a training step. |
| Writing a Training Loop A PyTorch training loop from full-batch steps to shuffled mini-batches, a clean eval, checkpoints that resume exactly, and the bugs that make the loss not fall. |
| Train a Tiny GPT A character-level GPT trained end to end in PyTorch: data and batches, a bigram baseline, the transformer, a training recipe with warmup, clipping and weight decay, sampling, and the checks that prove it learns. |