From Scratch

Implementations of research papers, books, and algorithms to understand them from first principles.

pmpp-cuda

Implementation of experiments and code from Programming Massively Parallel Processors.

CUDA

smol-Llama

Implementation of the Llama architecture from scratch in PyTorch.

Python

smolGPT-2

Implemented GPT-2 and Byte Pair Encoding (BPE) from scratch using PyTorch.

Python

smolGPT

Implementation of the original GPT architecture from scratch using PyTorch.

Python

transformer

Implementation of the Transformer architecture from scratch.

Python

Neural-Style-Transfer

Neural Style Transfer using a pretrained VGG-19 implemented in PyTorch.

Python

micrograd

Tiny scalar-valued autograd engine and neural network library built from scratch.

Python

Recurrent-Neural-Networks

Implementations of vanilla RNNs for sequence modeling.

Jupyter Notebook

mnist-mlp

Multi-layer perceptron trained on MNIST using PyTorch.

Jupyter Notebook Python

iris-pytorch-nn

Feedforward neural network trained on the Iris dataset using PyTorch.

Jupyter Notebook