Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.
Python cliconsumer-gpudpofine-tuningggufhuggingfacellmllmopslocal-ailocal-llmloralow-vrammachine-learningollamapeftpythonpytorchqlorasfttransformers
- A resumed
dpo,ipoorgrporun continues from the checkpoint's adapter (#1768 reported by @bobbonauta, fixed by @ybai08 in #1797). TRL adds a frozenrefadapter for these tasks, so their checkpoints hold the trained adapter at the root andrefincheckpoint-N/ref/, andTrainer._load_from_checkpointthen loads only the subfolder.--resumerestored 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: preferencewithdpooripois covered;grpowithgrpo_beta: 0,orpo,simpo,bco,kto,sftandreward_modelwrite noref/and were not affected. Re-run any dpo, ipo or grpo training that was resumed from a checkpoint.