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.

559 B
Raw Blame
  • Add training.stream_recompute: on | off | auto for layer streaming (SFT). off keeps each streamed layer's activations instead of re-running its forward as the checkpoint recompute; auto measures one step at the configured shape at setup and keeps activations for as many of the last layers as fit in VRAM (RAM tier only). Gradients are bit-identical to the recompute path; on an RTX 5070 Laptop 8 GB a streamed Mistral-7B NF4 step is 22% / 17% / 8.5% faster at 512 / 1024 / 2048 tokens. The default on keeps the shipped behaviour. (#2152)