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.

857 B
Raw Blame
  • A resumed dpo, ipo or grpo run continues from the checkpoint's adapter (#1768 reported by @bobbonauta, fixed by @ybai08 in #1797). TRL adds a frozen ref adapter for these tasks, so their checkpoints hold the trained adapter at the root and ref in checkpoint-N/ref/, and Trainer._load_from_checkpoint then loads only the subfolder. --resume restored the optimizer and the step counter and trained a freshly initialised adapter: on a 4-step run resumed at step 2, the result was two steps from zero. The trained adapter is now loaded right after the Trainer's own load. task: preference with dpo or ipo is covered; grpo with grpo_beta: 0, orpo, simpo, bco, kto, sft and reward_model write no ref/ and were not affected. Re-run any dpo, ipo or grpo training that was resumed from a checkpoint.