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.expand_layers(LLaMA Pro) is refused at config load together with a LoRA rank (#1326 by @abdulwaarith0 in #1783). The block expansion runs beforeget_peft_model, which froze the appended blocks again, so only adapters on the original layers trained while the appended blocks stayed the identity. The error namesexpand_layers,freeze_trainable_layersandlora.rand points tolora.r: 0withquantization: none;task: pretrain, which has nolora.r: 0, gets theexpand_layersscope refusal instead (#1813). The LLaMA Pro examples indocs/peft-and-efficiency.mdanddocs/training.mdnow setlora.r: 0, anddocs/training.mdnow says the expansion runs beforeget_peft_model.