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
- A Hugging Face checkpoint is the files
model.safetensors.index.jsonnames, not every*.safetensorsin the directory: aconsolidated.safetensorsbeside 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 costand batch estimation, no longer downloaded for layer streaming andsoup 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 emittedunfrozen_parametersmatching no parameter) and no longer kept resident by the layer-stream sharder. Without an index the checkpoint ismodel.safetensors, else themodel-*-of-*.safetensorsshards, else every*.safetensorsexceptconsolidated*, 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)