
What Is a Large Language Model?
A large language model is a pattern-prediction engine for language: it learns how words and ideas tend to follow one another, then uses that fluency to…
Read tutorialLook inside an LLM: tokens, context, transformers, next-token prediction, training, inference, fine-tuning, and the stages that shape model behavior.
Tutorials
Follow these lessons in order, or jump directly to the topic you need.

A large language model is a pattern-prediction engine for language: it learns how words and ideas tend to follow one another, then uses that fluency to…
Read tutorial
Large language models are not digital minds. They are probability engines that turn a conversation into a series of next-token guesses. The guesswork is…
Read tutorial
If you've tried to learn about large language models and felt like you hit a wall of unfamiliar jargon, you're not alone. LLM discussions can feel like…
Read tutorial
Large language models look like overnight magic, but they are the visible tip of decades of compounding engineering. If you want to use, trust, and build…
Read tutorial
Someone says "I built an app with NLP" when they really mean "I called the ChatGPT API." Someone else asks "which LLM should I use" when they're actually…
Read tutorial
You have probably already leaned on a large language model this week without naming it. That support chat that understood your question instead of forcing…
Read tutorial
You paste a long document into a chatbot and hit an error about a "token limit." Or you open an API pricing page and see costs quoted per token, with no…
Read tutorial
You tell a chatbot your name early in a conversation. Twenty messages later, it uses your name correctly. It feels like the model has been paying attention…
Read tutorial
You correct a chatbot's mistake and expect it to remember next time. It won't. You ask the same question twice and get two different answers, which makes…
Read tutorial
You keep hearing three answers to the same question: "Just prompt it better." "Add RAG." "Fine-tune the model." They get offered like interchangeable…
Read tutorial
You know an LLM predicts the next word. The real question is how it decides which word deserves to come next—and the answer lives in a design called the…
Read tutorial
You type a sentence into an AI chat window. The model reads it, thinks, and answers back. Somewhere in that exchange, your words get chopped into…
Read tutorial
You are comparing models and you see it everywhere: a name, a letter, and a number. Llama 3.1 8B. Mistral 7B. Qwen 72B. The reflex is almost automatic:…
Read tutorial
When you watch a large language model type out a response, it feels like the system thought through the whole answer before writing a single word. It…
Read tutorial
You fine-tune a model on your own documents, ask it a factual question about them, and watch it hallucinate anyway. The training ran. The loss curve looked…
Read tutorial
When someone says an LLM was "trained," they usually mean one thing. The people who build LLMs mean several. Each major stage of the modern training…
Read tutorial
Most people can recite the attention formula. Far fewer can compute it. That gap is worth closing, because the formula is not a wall of symbols — it is a…
Read tutorial
A language model never scores a sentence. It scores one token at a time — and the sentence score is just those pieces multiplied together.
Read tutorial
A model can write a confident, fluent paragraph that is completely false — and its training loss curve can look excellent the whole time. That combination…
Read tutorial
Your request worked yesterday. Today the answer stops mid-sentence, or the API returns an error, and you have no idea which of the four things you sent is…
Read tutorial
You generated forty examples. The file is open. Every row looks fine, and that is the problem — "looks fine" is not a review. A dataset is not a pile of…
Read tutorial
You have seen the chart. A straight line on a log-log plot, a caption promising that more compute buys predictable improvement, and a comment section…
Read tutorial
You watch the loss number fall on a training chart. Something inside the model changed, but the chart never tells you what. The loss is a single number,…
Read tutorial
You can recite "gradient descent" and still freeze when someone hands you a loss, a gradient, and a learning rate. That freeze is not a math problem. It is…
Read tutorial
You duplicate a handful of "good" examples to push the model toward a behavior. You retrain. The behavior barely moves — or it moves somewhere you did not…
Read tutorial
A headline calls an image tool "AI." A coworker calls ChatGPT "an LLM." A product page says "generative AI" for something that writes emails. Three labels,…
Read tutorial