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
- Under
training.stream_layers, a LoRA target on the streamed embedding or head is refused while the streamed model is built, whatevertarget_modulesspelling matched it, and a tied checkpoint is no longer refused (#1048 by @ybai08 in #2082). The old check ran when the config was read and matched only the literal nameslm_headandembed_tokens. On an untied checkpoint a regex such as'.*(q_proj|lm_head)'or a dotted name such asmodel.embed_tokensloaded; the regex then failed at its first default save (Cannot copy out of meta tensor), and undertask: dpoit failed in peft during setup (Target module StreamedLargeLayer(...) is not supported). A tied checkpoint streams neither module, and its adapter saves and loads back unchanged, but it was refused anyway. The check now runs after the adapter is attached and before any streaming buffer is allocated. On an untied checkpoint it names the module or modules and the currenttarget_modules, and says to change them or train withoutstream_layers. A tied checkpoint trains and saves with the defaults. Saving or resuming an adapter on an untied checkpoint's streamed embedding or head is still not supported.