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.fast_lora: trueruns a LoRA's projections through Soup's own Fast-LoRA autograd functions (q/k/v with one shared input, gate/up/down as one SwiGLU block, every other adapted Linear as a single projection) instead of peft's modules, on the resident and the layer-streamed SFT paths. Setup prints what each kernel took over and refuses the run when none did. Off by default;task: sft,transformers, text, quantizationnoneor4bit, andlora.dropout: 0(Soup's default is 0.05); refused with the reason besideuse_liger, DoRA, VeRA,target_parameters, Spectrum (unfrozen_parameters), LISA andquantization_aware: fp8. Verified on CPU in float32 and float64 against peft's modules; the bf16/fp16, NF4 and streamed-CUDA checks have not been run, and no speedup is claimed. Try:soup train --config soup.yamlwithtraining.fast_lora: trueandtraining.lora.dropout: 0(#792 by @ybai08 in #1973).