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.lora.rank_patternandalpha_patternare refused withbackend: unslothinstead of being silently ignored (#2153). Every unsloth setup, for SFT, DPO, GRPO, PPO, KTO, ORPO, SimPO, IPO, BCO, preference, pretrain, embedding and TTS alike, goes through one loader that givesFastLanguageModel.get_peft_modela single scalarlora.randlora.alphaand has no parameter for a pattern, so a config that asked for a per-module rank or alpha loaded, passedsoup train --dry-runand trained a uniform adapter. Now refused at config load, naming each field the config set,backend: unsloth, and the two ways out: remove the pattern, or usebackend: transformers, which applies it. A task with no unsloth setup, SFT with a vision or audio modality, andlora.r: 0keep their own refusals. An empty{}ornullsets nothing and still loads, andtransformersconfigs are unchanged. This is a stop-gap: it goes away when the unsloth loader honours the patterns. (#2165)