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
task: pretrainwithlora.r: 0is refused at config load, and so istraining.expand_layers(LLaMA Pro) ontask: pretrain(#1813 by @abdulwaarith0 in #1875). The pretrain trainer always attaches a LoRA adapter, so a rank of 0 loaded and then failed inside peft (or unsloth) when training started, with an error that named neither Soup nor the field. The refusal nameslora.rand the task, and points tolora.r >= 1, LISA ortask: sft. LISA keeps acceptinglora.r: 0on pretrain, since it attaches no adapter and trains as before. LLaMA Pro had no pretrain route that trained the appended blocks (a rank freezes them again, #1326), so theexpand_layersscope check now refusestask: pretrainwith thetask: sftrecipe.docs/peft-and-efficiency.mdanddocs/training.mdsay so.