Weights & Biases¶
Install the optional extra and authenticate once:
Enable in YAML¶
training:
report_to: wandb # optional; set automatically when wandb.enabled is true
wandb:
enabled: true
project: my-project
entity: my-team
run_name: qwen-sft-01
group: experiments
tags: [sft, lora]
notes: First SFT baseline
mode: online # online | offline | disabled
dir: null
job_type: train
init_kwargs: {}
When wandb.enabled is true, TRLoom:
- Sets related environment variables when provided (
WANDB_MODE,WANDB_PROJECT,WANDB_ENTITY,WANDB_DIR) - Ensures
training.report_toincludeswandb - Calls
wandb.init(...)with your settings and the full config dump - Finishes the run when
job.run()completes
Example¶
See examples/dpo_wandb.yaml for DPO + W&B:
Modal + W&B¶
Create a Modal secret, then reference it:
Troubleshooting¶
- Missing package → install
trloom[wandb] - Offline debugging → set
mode: offline - Disable without editing the rest of the block →
enabled: falseormode: disabled