Dissecting microgpt
Ever since the start of my career in software engineering, I have always prided myself on having a deep understanding of the tools that I use. This has always been true until ChatGPT arrived on the scene.
ChatGPT was the first time in a very long time where I had a tool that genuinely feels like I am using a magical black box. Until the arrival of ChatGPT and other similar offerings from other vendors such as Anthropic, probably the most complicated thing in my toolbox were compilers/interpreters and I am very confident I can write my own. This is not the case with this new wave of GPT-based AI. I feel too reliant on the whims of external actors - and I don't like it.
I am not a mathematician - I am a software engineer. Reading the paper Attention Is All You Need is too big a leap from my comfort zone. I needed to find a way in, where I can hang new ideas on things I already know.
Eventually, I came across Andrej Karpathy's microgpt, which he describes as "a single file of 200 lines of pure Python with no dependencies that trains and inferences a GPT." This was exactly what I was looking for - a complete GPT simplified as much as it can be simplified, expressed in code written by someone who deeply understands the subject.
Andrej has written an overview of microgpt here:
Since first coming across microgpt, it has been on my bucket list ever since to properly go through it - but I have never found the right moment. As always with things like this, finding the right moment is just procrastination in disguise. So I have just decided to dive right in and see where it takes me! Wish me luck - this isn't going to be easy!