ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

Concept

Generative AI and LLMs

AI that creates new content, unlike classic ML that predicts a label or a number.

Prompt
GenAI model
New content
Data
ML model
Label or number
A GenAI model creates content from a prompt. A classic model returns a label or number.
  • Output

    Classic ML
    A label or a number
    GenAI
    New text, images, code
  • Trained on

    Classic ML
    Your labeled data
    GenAI
    Huge general data
  • Tasks

    Classic ML
    One narrow task
    GenAI
    Many tasks by prompt
  • Example

    Classic ML
    Is this fraud?
    GenAI
    Write a reply to this email
Classic ML and GenAI compared.

What it is

Generative AI (GenAI) creates new content, such as text, images, audio, video and code, from a prompt. It runs on very large models trained on huge amounts of data. A large language model (LLM) is a GenAI model built for text. It predicts the next piece of text, over and over, to write answers.

Classic ML is trained for one narrow job. It predicts a label or a number, such as fraud or not fraud, or next month’s demand. A GenAI model can handle many tasks without new training, because you describe the task in the prompt.

GenAI can be wrong while sounding sure. Domain 2 covers how it works, its limits and the AWS services for it.

Remember

  • GenAI creates new content. Classic ML predicts a label or a number.
  • An LLM is a GenAI model for language.
  • One GenAI model can do many tasks, steered by the prompt.
  • Classic ML models are usually trained for one task.
  • GenAI output can be wrong, so people should check important answers.

On the exam

  • “Write a product description from a short prompt” points to generative AI.
  • “Predict whether a transaction is fraud” points to classic ML.
  • “A model that understands and writes text” points to an LLM.