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
- Add
training.stream_recompute: on | off | autofor layer streaming (SFT).offkeeps each streamed layer's activations instead of re-running its forward as the checkpoint recompute;automeasures 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 defaultonkeeps the shipped behaviour. (#2152)