# Diffusers Pipeline Components

This starter is annotated reading material and the source of truth for the lab preview. Running anything is optional; the reading goal is to explain the mechanism without hiding behind a framework call.

## Reading focus

Read a Diffusers pipeline as a component graph rather than one monolithic model.

## Annotated sketch

```text
## Pipeline component contract

| Component | Reads | Produces |
| --- | --- | --- |
| tokenizer/text encoder | prompt | embeddings |
| denoiser | latent, timestep, condition | prediction |
| scheduler | prediction, latent, timestep | next latent |
| VAE decoder | final latent | image/video |
```

## What to explain

- tokenizer/text_encoder prepare conditions.
- unet_or_transformer is the denoiser.
- scheduler loops, and vae decodes.

## Common trap

- Do not call the pipeline itself the model.
- Do not assume every pipeline has exactly the same components.
