What is an LLM?
LLM stands for large language model. Training begins with raw text at massive scale: books, documentation, websites, source code, forum posts—anything representable as text. No explicit rules, templates, or grammar are given to the model. It must learn linguistic patterns, facts, styles, and code structure purely from examples in the training data. Key ideas:- The model ingests tokens (words, subwords, punctuation) from raw text.
- It learns statistical patterns that let it predict likely next tokens given a prompt.
- All learned knowledge is encoded numerically inside the model file.
Training: predict, compare, adjust
Training is conceptually simple, though computationally expensive. The model repeatedly practices predicting the next token in sequences from the training data. For each prediction the training loop:- makes a guess for the next token,
- compares the guess to the actual next token,
- computes the error (the loss),
- nudges the model’s internal numbers slightly to reduce that error.
Parameters = learned knowledge
All those incremental updates are stored in the model’s parameters (also called weights). Think of parameters as billions of tiny dials—each training example turns some dials a little. The final dial positions encode what the model “knows”: language structure, common facts, reasoning patterns, and code formatting. Common parameter-scale examples:- Small models: millions–few billions of parameters.
- Mid-size models: several billion parameters.
- Frontier models: tens to hundreds of billions of parameters (e.g., a model labeled “70B” typically has around 70 billion parameters).
Training vs. inference — one-time build, cheap queries
Everything that happens before the freeze is training—one-time and costly. Everything after is inference—the model answering prompts using its frozen parameters. At inference time the model performs the same predict-loop, but without updating parameters:- You provide a prompt (question, context, system instructions).
- The model predicts one token, appends it to the context, then repeats predict → append → repeat.
- Many services stream those tokens as they are generated; you’re watching that predict-loop run in real time.
Practical consequences
- The base model cannot learn from your individual conversations in real time. You can correct the model within a session or craft prompts that steer behavior, but the underlying parameters remain unchanged. To permanently incorporate user feedback requires collecting data and performing offline retraining or fine-tuning.
- The model’s knowledge is fixed at the freeze date—this is the knowledge cutoff. If you ask about events, APIs, or facts that appeared after that date, the base model may not know them. That’s why model documentation always lists a knowledge cutoff.
- Many deployed assistants combine a frozen model with external systems (retrieval, web search, databases). Those augmented systems can supply up-to-date facts. Still, the core model is only doing token prediction; it’s using the externally retrieved content as part of the prompt to generate answers. This pattern is often called retrieval-augmented generation (RAG).

Prediction, not lookup — the model generates text one token at a time based on frozen parameters and the prompt. Any up-to-date or ground-truth information must be provided through external retrieval or offline retraining.
Quick glossary
- Token: a piece of text (word, subword, or punctuation) the model predicts.
- Parameter / Weight: a numeric value in the model file that the model learned during training.
- Knowledge cutoff: the date after which the model received no new training data.
- Inference: running the frozen model to generate text in response to prompts.
- Retrieval-augmented generation (RAG): an approach combining a frozen model with external data sources to provide current information.
Next step
Now that you understand what an LLM actually is and the difference between training and inference, the next question is: why do some models require hundreds of gigabytes while others fit on a laptop, and when should you choose a smaller model versus a large one? That decision depends on latency, cost, inference hardware, and the complexity of tasks you need the model to perform. Further reading and references:- Language model (Wikipedia)
- Retrieval-augmented generation overview
- Explore model docs from major providers for knowledge cutoff and parameter counts.