Skip to content

armgit / Soup

Public Imported from GitHub
0

Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.

932 B
Raw Blame
  • training.fast_lora: true runs 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, quantization none or 4bit, and lora.dropout: 0 (Soup's default is 0.05); refused with the reason beside use_liger, DoRA, VeRA, target_parameters, Spectrum (unfrozen_parameters), LISA and quantization_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.yaml with training.fast_lora: true and training.lora.dropout: 0 (#792 by @ybai08 in #1973).