โ† Generative AI & Prompt Engineering learning path
Generative AI & Prompt Engineering ยท Module 2 of 10

How LLMs work

Understand tokens, training and limitations.

๐Ÿ“– Key ideas

  1. LLMs predict the next token given previous tokens.
  2. Pretraining on huge text, then fine-tuning and alignment (RLHF).
  3. Temperature controls randomness.
  4. Knowledge has a cutoff date; models may not know recent events.
  5. Bias and errors can come from training data.
๐Ÿ’ก Real-life example: An LLM is autocomplete that read a giant library; it predicts words, not truth.
Next-token predictionCore LLM task
PretrainingLearning from large text corpora
RLHFReinforcement Learning from Human Feedback
TemperatureRandomness setting