Learn/Generative AI, RAG & Agents/MODULE 1: FOUNDATIONS — UNDERSTANDING AI AND LARGE LANGUAGE MODELS
Lesson 5 of 37 · 2 min read

1.4 Meet the LLM (Large Language Model)

An LLM, or Large Language Model, is a machine learning model trained on a massive amount of text data to predict text.

That's the core of it.

Everything fancy an LLM appears to do — reasoning, writing essays, summarizing documents, translating languages — emerges from this one ability: predicting what text should come next, very well.

Why "Large"?

The "large" in "large language model" refers to two things:

  1. The amount of training data. Modern LLMs are trained on hundreds of billions or even trillions of words — essentially scraping vast portions of the public internet, books, scientific papers, code repositories, and more.

  2. The size of the model itself, measured in parameters. Parameters are the adjustable numbers inside the model (the "knobs" we talked about earlier). GPT-2, released in 2019, had 1.5 billion parameters. GPT-3 had 175 billion. Labs no longer publish the sizes of most frontier models. Each parameter is a number the model uses to compute its predictions; together, they encode everything the model has learned.

To put this in perspective: a single 100-billion-parameter model takes hundreds of gigabytes of storage, and training one costs tens of millions of dollars in electricity and computer time.

What an LLM Is — and Isn't

It's important to be clear-eyed about what an LLM is.

An LLM is:

  • A sophisticated pattern-matching system
  • A statistical model of human language
  • A tool that can produce remarkably useful and creative text
  • Something that can perform many tasks it wasn't explicitly trained to do

An LLM is not:

  • A conscious being, a person, or sentient in any meaningful sense
  • A reliable source of facts (more on this in section 1.9)
  • A database of stored answers — it doesn't "look up" responses
  • A reasoning engine in the way a calculator or logic system is

A useful frame: an LLM is something like a very, very well-read intern.

It has read more than any human ever could, it can speak intelligently on almost any topic, it can mimic countless styles, but it's still capable of confidently saying wrong things, and it lacks the lived experience and judgment of a true expert.

Keep going with a free account

A free account saves your progress across lessons and lets you pick up where you left off.