StudyToCert

All certifications / Azure AI Fundamentals / Lessons

Microsoft Certified: Azure AI Fundamentals AI-900 · Domain 5: Generative AI workloads on Azure

How large language models generate text: tokens, next-token prediction and pretraining

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

A large language model is a computer program that writes by guessing the next small piece of text, over and over. First it chops your message into small pieces called tokens, which are whole words, parts of words or punctuation marks. Then it asks itself, in effect, which piece most likely comes next, adds that piece, and guesses again. It learned these guesses by reading a huge amount of text beforehand, the way you can finish the phrase "once upon a" without thinking. Because it is guessing what sounds right rather than checking a fact sheet, it can sound sure of itself and still be wrong. Giving it the real facts in your message helps it stay accurate.

It is Monday morning at Lakeview Insurance, and Priya from the claims team forwards you a screenshot. The new internal assistant has told a customer, in perfectly polished sentences, that the company covers flood damage under a policy that clearly excludes it. Nobody typed that answer anywhere. There is no database row that says it. Your manager wants to know how a system can write something so confident, so fluent and so wrong, and whether it will happen again. To answer, you need to understand what is actually happening inside the model when it writes. Is it looking things up, or is it doing something else entirely?

Large language models (LLMs) are the engines behind most generative AI, including the chat assistants and copilots you will meet throughout the AI-900 generative AI domain. They are transformer-based neural networks with billions of parameters, trained on enormous amounts of text. A parameter is a numeric weight the model adjusts during training, and the transformer is the neural network architecture that made today's models practical. Understanding how these models produce text explains both what they are good at and why they sometimes get things wrong, which is exactly the kind of reasoning the exam rewards.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Azure AI Fundamentals for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Azure AI Fundamentals study plan