sarvesh.
Projects

Learning tools · Source available

microGPT Cerebral Lab

A visual lab for watching a tiny language model learn, one training step at a time.

View source on GitHub

I built an instrumented engine and a browser interface around Andrej Karpathy’s educational microGPT algorithm. A FastAPI and WebSocket backend connects each training step to views of attention, token probabilities, and loss.

The lab supports single-step training, sampling at different temperatures, and exporting traces for inspection. It is a small educational model that makes the mechanics visible, alongside Gemma Microscope’s experiments on a pretrained model.