Configuration
Surogate is driven by a YAML config file.
Start from an example
- SFT examples live in
examples/sft/ - Pretraining examples live in
examples/pt/
Run via CLI:
surogate sft path/to/config.yaml
# or
surogate pt path/to/config.yaml
What to edit first
For most runs you’ll edit:
modeloutput_dirdatasetsper_device_train_batch_size,gradient_accumulation_steps,sequence_lenlearning_rate- (optional)
lora,lora_rank/ QLoRA options