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.

623 B
Raw Blame
  • Layer streaming: new opt-in training.stream_nf4_scale_cache keeps each streamed double-quantised NF4 weight's expanded fp32 block scales on the compute device after its first use, so bitsandbytes' dequantise + linear path stops re-expanding them on every forward and checkpoint recompute (about 0.38 ms per Mistral-7B layer visit in an isolated RTX 5070 measurement). Results are bit-identical; the fused 4-bit GEMM path is unchanged. Costs 4 bytes per 64-element block of VRAM for the run (416 MiB on Mistral-7B), charged by the pre-flight. Off by default; needs quantization: 4bit with double quantization (#1892).