Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 2 min read

I'm writing an interactive LLM textbook with no ML background

Short version: I kept asking Claude to explain things simpler until they clicked for me on the first read. The result is "LLMs for the Rest of Us: For builders with no ML background", a free interactive textbook. 7 lesso

I'm writing an interactive LLM textbook with no ML background

Short version: I kept asking Claude to explain things simpler until they clicked for me on the first read. The result is "LLMs for the Rest of Us: For builders with no ML background", a free interactive textbook. 7 lessons so far.

πŸ‘‰ Open the textbook. The first lesson takes about a minute.

Where this came from

I've worked with LLMs since 2023. I use them for everyday stuff, vibe-code with them, and build them into all kinds of systems. Along the way I picked up applied knowledge like "a cheap model is enough here", "do we even need a vector DB" or "narrow this agent's scope or it will sabotage the task".

But that's applied AI. As a developer, I'm used to knowing how things work. gRPC I can figure out. LLM internals always felt an order of magnitude harder, like they needed a different kind of knowledge. Here be dragons.

The idea

What if I wrote a textbook for myself, using an LLM?

Claude wrote me a lesson. I looked at it and put it away. Then again, and again. I just didn't have the motivation to dig in; something more important always came up. Then it hit me. It's an LLM. I'm not the one who should be working hard here. It should, until the material is so simple it clicks on the first read.

So the textbook isn't written by an expert who knows the field. It's filtered by a newcomer. Claude knows everything about ML, and my clueless eye is the filter for "instantly clear".

What it looks like

Each idea starts with an almost embarrassingly simple example and a small task. Only then does it get its ML name. For example, a program reads three sentences pair by pair and counts which word comes after which:

The program reads the text in pairs and counts what came after each word
The program reads the text in pairs and counts what came after each word

Always pick the most common word, and it writes "The cat sat on the cat sat on the cat…" every single time. But ChatGPT answers the same question differently. How?

Roll a die instead. After "the", the text had cat Γ—2, so the die has two "cat" faces. Turn it and roll it:

The die for "the": two of six faces say cat
The die for "the": two of six faces say cat

Now the program writes sentences that weren't in the text:

The program writes a sentence, rolling a die for each next word
The program writes a sentence, rolling a die for each next word

Then it meets a word it never read, "lynx", and has no die to roll. The next two lessons turn words into points you can measure distance between, and then let the program learn those points from text. That's embeddings, with no formulas.

The widgets weren't the goal. They showed up wherever I didn't get something at once. I'd ask myself why it didn't click, and usually the answer was a slider or an animation.

What's next

Tokens, the transformer, and where exactly the matrices get multiplied. I write when I feel like it and ship one to three lessons at a time.

If you star it on GitHub or tell a friend, I'd really appreciate it. It keeps me going, and I honestly think this approach can turn into something good. Issues and PRs are welcome, especially "I had to reread this part".

I also post on X: @efvaleev94

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.