Examples library
EngineSurogate EngineEvery feature in Surogate has a maintained example you can run and copy. The repository example index maps training and serving features to their configs, launch scripts and API clients. Install Surogate first (see Installation), then run the commands from the repository root.
| Workflow | Examples |
|---|---|
| SFT, LoRA, QLoRA, precision and model families | Model recipes |
| Full fine-tuning, adapters, distributed training, memory and monitoring | Training features |
| Scratch and continued pretraining | Pretraining |
| Local data, column mapping, mixing and validation | Datasets |
| Preference optimization | DPO |
| Teacher capture and tokenizer transplantation | Distillation |
| Split/colocated GRPO, evaluation and checkpoints | GRPO |
| One small model, one job, one GPU, with before/after scores | GRPO kits |
| Judge rewards and multi-turn on-policy distillation | RULER, TurnOPD |
| HTTP APIs, media, adapters, placement, caching and speculation | Serving |
surogate sft examples/sft/qwen3/qwen3-lora-bf16.yamlsurogate dpo examples/dpo/qwen3.yamlbash examples/serve/launch.sh chatFor every supported workflow and what it needs, see the feature map. Benchmark fixtures are kept separate from these user-facing examples.
Next: Configuration explains how an example config is put together, so you can adapt one to your model and data.