Hrithik Koduri
All writing

Learning · Language models · Draft · 2 min read

When the abstraction stops teaching you, build the small version.

Learning AI by going underneath the convenient interface—not because everything needs rebuilding, but because some questions need a smaller experiment.

Being able to use something is not the same as understanding it.

There is a useful kind of momentum that comes from an API. You can try an idea quickly, connect a model to something interesting, and find out whether the idea is worth following. A lot of my experiments started that way. I do not think going straight to the convenient interface is a mistake.

But sometimes the interface stops answering the question I actually have. I can make a call work without understanding the shape of the input, the assumptions being made, or why a small change produces a different result. At that point, reading another high-level explanation is not always the thing that helps.

Pick a piece small enough to hold in your head.

My zero-to-hero work follows Karpathy's micrograd, makemore and nanoGPT, alongside the LLM implementation from Sebastian Raschka's book. The notebooks, progressively extended scripts and written notes trace the mechanics: derivatives, backpropagation, embeddings, causal attention, transformer blocks, and training. This is learning by implementation, not a claim of original frontier-model research.

In micrograd, backward() stops being a magic method when I can trace the Value graph in reverse and see where a gradient is accumulated. In makemore, character counts become a learned model. In nanoGPT, a bigram grows into a transformer one change at a time. The pieces become easier to reason about because the intermediate steps are still visible.

The experiment should make a question sharper.

I am less interested in rebuilding something merely to say that it is ‘from scratch’ than in making the unexplained part easier to examine. What is being represented? What did this transformation discard? Which assumption did I accidentally hide inside a helper function? Those are questions a small implementation can make concrete.

That also changes what counts as a successful experiment. It does not have to become a polished application or a public framework. Sometimes the result is a notebook I can return to, a clearer explanation, or the realization that I was asking the wrong question.

Small experiments and ambitious systems feed each other.

I have followed this curiosity into retrieval, conversational systems, browser automation, and agents. They are not all the same kind of work. What connects them is the habit of trying something, noticing the part I do not understand, and following that part a little further.

Sometimes that becomes a larger project, like WebRover or Anchor. Sometimes I need to go in the opposite direction and make the experiment smaller. Both moves are useful. A large system exposes questions you would not meet in an isolated exercise; the exercise can make one of those questions manageable again.

Not every rabbit hole needs a roadmap.

There is room for work that starts because it seems interesting. Trying a creative idea before knowing exactly what it is for is part of how I learn what is possible. I do not want every experiment to be judged as if it were already supposed to be a company, a benchmark result, or a finished application.

The discipline comes from being honest about what the experiment showed. What did I implement? What did I learn? What is still an intuition? That leaves room to be ambitious without pretending a small exercise proves more than it does. It also leaves the next question open, which is usually where I want to go anyway.

An experiment does not have to become a finished thing to be worth doing. Sometimes a better question is the result.