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
preference_loss_weightsblend whose largest weight isdpooriponow trains (#1425 by @ybai08 in #1785). Both losses build trl'sDPOTrainer, 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'scompute_ref_log_probs; theipoterm divides each log-ratio by its response length, as trl's IPO loss does, so it is the losstask: ipotrains. The reference is run twice per step. Adpooripoterm under asimpo/orpoprimary still stops at the first step, and the message now says why (those trainers run no reference) and what to do (givedpooripothe largest weight). Try:soup train --config soup.yamlwithtask: preferenceandtraining.preference_loss_weights: {dpo: 0.7, simpo: 0.3}.