What Is a Large Language Model

Updated · 5 min read
mediumPython 3.13aillmlanguage-modelsgenerative-aibeginnersinterview

How can one model write a poem, fix a bug and translate a menu? Advitha uses the same chat assistant in San Francisco for her biology homework, a Spanish greeting card and a Python error, all before lunch. It never asks which job it is doing. Behind it is one kind of model: a large language model, or LLM.

This lesson explains what an LLM is, what it can do, and why a single model handles so many different tasks.

A Model of Language

A large language model is a deep learning model trained on a huge amount of text to predict the next piece of text. "Large" refers to its size, with billions of parameters, and to the amount of text it learned from. Because it learned the patterns of so much writing, it can read and write language for almost any task described in words.

One model, many language tasks
An LLM can...Example
Answer questions"What is a token?"
ExplainPhotosynthesis for a 10-year-old
SummarizeA 20-page report in three bullet points
Translate"Good morning" into Spanish
Write codeA Python function, or a fix for an error
Generate ideasTen names for a small bakery
Follow instructions"Reply in exactly three words"

Where LLMs Fit

An LLM is a foundation model for language, from "Foundation Models and Multimodal AI", and a kind of generative AI. Chat assistants such as ChatGPT, Claude and Gemini are applications built around LLMs, as "Model vs Application vs Interface" explained: the app adds the chat window, history, safety checks and tools.

Many newer LLMs are multimodal: they also read images or audio. And some are reasoning models, which write out intermediate steps, sometimes called "thinking", before giving a final answer, which helps on math and multi-step problems. Both are still language models at heart.

Common Mistakes

Thinking an LLM searches the internet for each answer. It generates from learned patterns; only apps with a search tool look things up.

Thinking an LLM knows everything in its training text. It learned patterns, not a perfect copy, and it can be wrong.

Thinking "LLM" and "chat assistant" mean the same thing. The assistant is an application; the LLM is the model inside it.

Interview Corner

What is a large language model?

A deep learning model trained on a huge amount of text to predict the next piece of text. That one skill lets it answer, explain, summarize, translate, write code and follow instructions.

Why can one LLM do so many different tasks?

Because almost every language task can be framed as continuing text well. A model that learned the patterns of a vast amount of writing can continue a question with an answer, a request with code, or a paragraph with a summary.

Practice

Exercise: one model, seven jobs. Give a chat assistant one task from each row of the table above, using your own examples. For each, rate the answer from 1 to 5 and note one thing you checked. Which task did it do best, and which needed the most checking?

Check your understanding:

  1. What does "large" mean in "large language model"?
  2. What single skill sits behind every LLM task?
  3. How is a chat assistant different from the LLM inside it?

Quick check: what is an LLM

4 questions
1What is a large language model trained to do?
2Which of these is an application built around an LLM?
3What is a reasoning model?
4Why can one LLM translate, summarize and write code?

Key Takeaways

Quick reference

TermMeaning
Large language model (LLM)A model trained on huge amounts of text to predict the next piece of text
Chat assistantAn application built around an LLM
Reasoning modelAn LLM that writes intermediate steps before answering

Was this tutorial helpful?

Lesson 27 of 186