Skip to main content

YAML Configuration Files

Configuration files make complex training setups reproducible and shareable.

Basic Usage

Config File Structure

The YAML config has a specific nested structure:
Important Structure Notes:
  • Use base_model, not model
  • Data path is data.path, not data_path
  • Column mappings go under data.column_mapping
  • Training parameters go under params:
  • The backend field is required

Task Types

The task field includes the trainer type:

LLM Training Configs

SFT Training

DPO Training

Knowledge Distillation

Text Classification Config

Environment Variables in Configs

Reference environment variables with ${VAR_NAME}:
Set them before running:

Minimal Config

The minimal required fields:

Next Steps

LLM Training

LLM parameter reference

Config Templates

Ready-to-use templates