There are three common kinds of AI system: recognition, prediction and generation. A large language model is one example of generation: a model that, given some text, produces the text that comes next. For example, on 30 November 2022, OpenAI introduced ChatGPT. Its first large language model came from OpenAI's GPT-3.5 series. You type a question into ChatGPT, and the model writes an answer.
A large language model is built with machine learning. The system is shown many examples, and works out the pattern for itself. No person writes the rule. It is built in three steps: prepare the examples, train, and test. The software that is trained and tested is called a model.
Step one is preparing the examples. For a large language model, that means collecting a very large amount of text, such as text from the Internet. Take the sentence "I drink coffee from a cup". Turn it into a fill-in-the-blank question: "I drink coffee from a blank". Keep its answer: "cup". The question and its answer together make one example. Take an earlier part of the same sentence: "I drink blank". Its answer is "coffee". That is a second example. So each example is a question, and the answer to check it against. One sentence gives several. The answers are already in the text, so nobody has to write them in. Most of the text, including this sentence, is kept for the model to learn from: the training set. The rest is set aside as the test set, which the model never sees while it trains.
Step two is training the model. It learns from the questions in the training set. Inside the model are many numbers, called weights. They are not one number per word. Together, the weights give every possible next word a score for how likely it is to come next. The guess is a word with a high score. At first, its guesses are mostly random. For "I drink coffee from a blank", it guesses "car". The answer is "cup". So it adjusts its weights a little, and next time it leans a little more toward "cup". Guess, check, adjust: this repeats across millions of sentences, and the guesses get better. After training, what the model keeps is its weights. The text is not kept inside the model. It was used to set the weights.
Step three is testing the model on the test set, the text it has never seen. It guesses the missing word in each question, and each guess is checked against the answer. If too many guesses are wrong, it may need more or better text, and to be trained and tested again.
A large language model is large in two ways. It holds a great many numbers, and it learns from a very large amount of text.
Once trained, the model writes an answer one word at a time. Given "I drink coffee from a", it might guess "cup". With "cup" added, it guesses the word after it, such as "every", and after "every" it might guess "morning". For example, ChatGPT's model writes its answers the same way, one word at a time.
The app you type into is the product around the model. For example, ChatGPT is a product that OpenAI built around its own models. The maker of a product can give the model written instructions. For example, OpenAI says it may add its own messages to steer the model's replies. A product can also run on models built with another company. For example, on 8 June 2026, Apple said its new Apple Intelligence features were built with Google's Gemini models.
A large language model is a model that learns from a very large amount of text, in three steps: prepare the examples, train, and test. One sentence gives several fill-in-the-blank examples. Most of the text is the training set, and the rest is set aside as the test set. In training, it guesses the missing word, checks the guess against the answer, and its weights are adjusted a little. What the model keeps is its weights. In testing, it guesses on text it has never seen. It holds a great many weights, and once trained, it writes an answer one word at a time. ChatGPT is a product built around a large language model. When a chat app answers you, ask which model it uses, and what the app's maker added around it.