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
dpooripoterm in apreference_loss_weightsblend now also trains when the largest weight issimpoororpo. Those primaries build trl's CPO and ORPO trainers, which run no frozen reference, so a blend such as{simpo: 0.6, dpo: 0.4}stopped at the first step. The blend now makes the reference itself: the trainer's own forward once more per step, without gradients and with the LoRA adapter switched off, which is the base model the adapter started from. A blend that names neitherdponoriporuns no extra forward. Withinit_strategy: pissa/olora/loftqorrelora_stepsthe adapter-off model is not the starting model, so that combination is refused before the model is loaded, with the reason. The terms are computed on the primary trainer's batch, and the CPO / ORPO batches start with the BOS token where theDPOTrainer's need not, so the samedpoterm differs a little between asimpoand adpoprimary;docs/training.mdsays which reference and which tokens each primary uses. Try:soup train --config soup.yamlwithtask: preferenceandtraining.preference_loss_weights: {simpo: 0.6, dpo: 0.4}. (#1425 by @ybai08 in #1828)