LLMs & Generative AI for Practitioners
Back to LLM Foundations: What They Actually Are

What LLMs Are (and What They Aren't)

A practical definition. LLMs predict the next token; everything else is engineering on top of that. FIND_VIDEO: search 'what is a large language model how it works' — recommended channel: 3Blue1Brown / Andrej Karpathy. Aim for 11 min or under.

7 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.
Loading progress...

Key moments

  1. Autoregressive Generation — The model calculates next-token probability distributions and samples from them to generate conversational completions.
  2. Pre-Training and Optimization — Loss computation and backpropagation update billions of continuous numerical weights across trillions of internet tokens.
  3. RLHF Alignment — Human feedback annotations train reward models to steer base completion behavior toward helpful and safe responses.
  4. Embeddings and Parallelism — Discrete tokens are projected into continuous numerical vector spaces that execute in parallel across GPU architectures.
  5. Transformer Mechanics — Alternating self-attention mechanisms and feed-forward layers enrich contextual vector representations to resolve polysemy.
  6. Emergent Behavior — Multi-billion parameter scale drives emergent fluency while presenting black-box explainability trade-offs.
PDF notes

Frequently asked questions

Why does a model output different answers for the same prompt if its weights are fixed?

Although matrix multiplications are deterministic, inference engines use stochastic sampling over the predicted probability distribution to choose tokens.

How does self-attention resolve ambiguous words with multiple meanings?

It recalculates the numerical values of a word's vector embedding by weighting the embeddings of surrounding context tokens during the forward pass.

Why is pre-training alone insufficient for deploying user-facing chatbots?

Pre-training optimizes strictly for raw internet text completion, which often replicates unhelpful, toxic, or irrelevant continuation patterns.

What is the computational advantage of transformers over older recurrent architectures?

Transformers process entire input sequences in parallel on GPU architectures rather than sequentially processing one word at a time.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.