LLM Literacy
From vibe coding and AX to AI agents, the tools I build, and real-world cases. Canonical long-form versions of my posts, gathered by topic.
- 2026-09-03
Solve it with a prompt, with RAG, or go all the way to fine-tuning — how to decide
The three are not competing options but an order. Most problems are solved with a prompt. When the material that grounds the answer is large and changes often, you add RAG. Fine-tuning is the last card you reach for when the same kind of work repeats at volume and the prompt length itself becomes the cost. If you have read the previous five parts, you can see structurally why the line falls where it does.
- 2026-09-02
Why the Same Question Gets a Different Answer Every Time — Sampling and Temperature
The model flips a coin at the end. The previous stage produces next-token candidates with probabilities, and instead of always taking the top one, it draws one according to those probabilities. That is why the same question yields slightly different answers. temperature, top-k, and top-p decide where to cut off the pool of candidates for that draw. The answer does not change because the parameters changed.
- 2026-09-01
How Inference Happens — Transformers and Attention
Inference is the act of using a model that has already been built. The text you type is converted into token IDs, embedded as numeric vectors, and passed through many stacked layers. The core operation inside each layer is attention, which measures how related the tokens are to one another. The result is a scored list of candidates for the next token. Nothing inside the model changes during this process.
- 2026-08-31
Why a Base Model Cannot Be Used As Is — Pretraining and Post-training
A model that has finished pretraining is not yet a product. All it has learned is one thing, what is natural as the next token, so when you give it a question it continues the question instead of answering. It becomes the model we use only after additional training that teaches question-and-answer form and instruction following. That stage is post-training, and it is exactly why the world has so many models even though only a few places can run pretraining.
- 2026-08-30
How a Model Learns — What Parameters and Weights Actually Are
Learning is getting it wrong and correcting, over and over. Hide the last token of a sentence and ask the network to guess. At first it is always wrong. Each time, the system computes what should have been changed, and by how much, for the answer to come out on top — then nudges its internal settings in that direction. Those settings are the parameters, and the values held in them are the weights. The 7B or 70B beside a model name counts how many of those settings it has.
- 2026-08-29
What Is a Token? How Text Becomes Numbers a Model Can Read
A token is not a word. It is the output of a compression step. An LLM does not read text as characters. A vast pile of text is first converted into a long run of numbers via UTF-8, then frequently co-occurring fragments are merged into a vocabulary. One entry in that vocabulary is a token. That is why the Korean word for lunch is one word but two tokens, and why the same sentence can differ fourfold in token count across models.