# Examples library

Source: https://docs.surogate.ai/engine/examples/

Every feature in Surogate has a maintained example you can run and copy. The
[repository example index](/engine/examples/recipes/) maps training and serving
features to their configs, launch scripts and API clients. Install Surogate first
(see [Installation](/engine/getting-started/installation/)), then run the commands from
the repository root.

| Workflow | Examples |
|---|---|
| SFT, LoRA, QLoRA, precision and model families | [Model recipes](/engine/examples/recipes/#model-and-precision-recipes) |
| Full fine-tuning, adapters, distributed training, memory and monitoring | [Training features](/engine/examples/recipes/training/) |
| Scratch and continued pretraining | [Pretraining](/engine/examples/recipes/pt/) |
| Local data, column mapping, mixing and validation | [Datasets](/engine/examples/recipes/datasets/) |
| Preference optimization | [DPO](/engine/examples/recipes/dpo/) |
| Teacher capture and tokenizer transplantation | [Distillation](/engine/examples/recipes/distillation/) |
| Split/colocated GRPO, evaluation and checkpoints | [GRPO](/engine/examples/recipes/grpo/) |
| One small model, one job, one GPU, with before/after scores | [GRPO kits](/engine/examples/kits/) |
| Judge rewards and multi-turn on-policy distillation | [RULER](/engine/examples/recipes/ruler/), [TurnOPD](/engine/examples/recipes/turnopd/) |
| HTTP APIs, media, adapters, placement, caching and speculation | [Serving](/engine/examples/recipes/serve/) |

```bash
surogate sft examples/sft/qwen3/qwen3-lora-bf16.yaml
surogate dpo examples/dpo/qwen3.yaml
bash examples/serve/launch.sh chat
```

For every supported workflow and what it needs, see the
[feature map](/engine/examples/recipes/#feature-map). Benchmark fixtures are kept
separate from these user-facing examples.

Next: [Configuration](/engine/guides/configuration/) explains how an example config is put together, so you can adapt one to your model and data.
