training section of the YAML config.
The SDK reads a single YAML file that contains bothdata_generationandtraining.run_training(config_path=...)reads thetrainingsection from that file.
File format
Your YAML file is a run config that includes top-level keys and a nestedtraining section:
Configuration structure
Thetraining section has these parts:
metric: output type and class list (if multi-class)dataset: where to load the dataset created by data generationprompt_template: the exact format the model is trained to followtraining: hyperparameters and performance optionsoutput: where to write artifacts + optional pushes (Hub/Luna Studio/object store)model: base model + LoRA settings + model download options
metric
dataset
Point training at the generated dataset
run_data_generation(...) returns a dataset path/name. After generation completes, set:
training.dataset.nameto that value, then run training.
prompt_template
prompt_template is required.
- It must reference your dataset columns using
{variable}placeholders. - For boolean metrics, the model should respond with
"true"or"false". - For multi-class metrics, the model should respond with a single class-key token (
"0","1", …).
training (hyperparameters)
output
Environment variables for pushes
- Hugging Face:
HF_TOKEN(required whenpush_to_hub: true) - W&B:
WANDB_API_KEY(optional; warning if missing whenuse_wandb: true)