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.

951 B
Raw Blame
  • A Hugging Face checkpoint is the files model.safetensors.index.json names, not every *.safetensors in the directory: a consolidated.safetensors beside the shards (the mistral-inference copy Mistral's repositories ship, which transformers never loads) is no longer counted by the hardware-fit pre-flight, soup profile, soup cost and batch estimation, no longer downloaded for layer streaming and soup spectrum scan (29.0 GB for a 14.5 GB model), no longer copied out of the HF cache, no longer scored by the spectrum scan (which emitted unfrozen_parameters matching no parameter) and no longer kept resident by the layer-stream sharder. Without an index the checkpoint is model.safetensors, else the model-*-of-*.safetensors shards, else every *.safetensors except consolidated*, and the Hub download fetches by the same rule; a directory holding only a consolidated file is refused with its name (#1806 by @ndablizov in #1906)