Skip to content

armgit / Soup

Public Imported from GitHub
0

Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.

913 B
Raw Blame
  • A preference_loss_weights blend whose largest weight is dpo or ipo now trains (#1425 by @ybai08 in #1785). Both losses build trl's DPOTrainer, which keeps only the means of its log-probs, so any blend naming them stopped at the first step. The blend now takes the policy log-probs from the trainer's own forward pass and the reference log-probs from the trainer's compute_ref_log_probs; the ipo term divides each log-ratio by its response length, as trl's IPO loss does, so it is the loss task: ipo trains. The reference is run twice per step. A dpo or ipo term under a simpo / orpo primary still stops at the first step, and the message now says why (those trainers run no reference) and what to do (give dpo or ipo the largest weight). Try: soup train --config soup.yaml with task: preference and training.preference_loss_weights: {dpo: 0.7, simpo: 0.3}.