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
training.relora_stepsis refused where the loss has a frozen reference. trl reads the reference ofdpo,ipo,kto,bcoandgrpowithgrpo_betaabove 0 from the policy's own base weights, and every ReLoRA restart merges the trained adapter into those weights, so from the first restart on the reference was the policy as of that step, without an error. Those tasks, and apreferencerun whose loss or blend namesdpo,ipoorbco, now stop when the config is loaded, with the reason.sft,orpo,simpo,grpowithgrpo_beta: 0and asimpo/orpopreference run keep ReLoRA (#1835 by @ybai08 in #1891).