CertBrain
Sign in
← Back to decks
Sign in to save your progress.Sign in

How Generative AI Models Work

Generative AI models such as large language models write text by predicting what comes next. This lesson explains tokens, embeddings, prompts and the temperature setting, so you can describe how a model turns a prompt into a completion on the AI-901 exam.

10 cards

How Generative AI Models Work

In this lesson · 5 sections

Terms you'll meet

Tap a card to see what it means.

Step 1 of 5

Generative AI models such as large language models write text by predicting what comes next. This lesson explains tokens, embeddings, prompts and the temperature setting, so you can describe how a model turns a prompt into a completion on the AI-901 exam.

Predicting the next token

A large language model (LLM) is trained to continue text. The text you send in is the prompt, and what the model writes back is the completion. Picture a search box that suggests how your sentence might end, scaled up enormously. At each step the model weighs how strongly each earlier word bears on what follows, then picks the likeliest continuation. It adds that piece to the sequence and repeats, stopping when it predicts an end. Small language models (SLMs) are compact versions of the same idea. They are also trained to produce completions from prompts.