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.

1.2 KB
Raw Blame
  • Under training.stream_layers, a LoRA target on the streamed embedding or head is refused while the streamed model is built, whatever target_modules spelling 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 names lm_head and embed_tokens. On an untied checkpoint a regex such as '.*(q_proj|lm_head)' or a dotted name such as model.embed_tokens loaded; the regex then failed at its first default save (Cannot copy out of meta tensor), and under task: dpo it 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 current target_modules, and says to change them or train without stream_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.