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
- The layer-streaming disk pre-flight no longer under-counts a fused MoE cache under
quantization: 4bit. It charged the NF4 rate to every parameter, but the defaultfusedexpert layout keeps the stacked routed experts at the stream dtype, so for Moonlight-16B-A3B (deepseek_v3) it charged 8.23 GB and the sharder then wrote 30.60 GB: a disk could pass the check and fill mid-shard. The cache is now sized from the source safetensors headers (no weight is loaded), tensor by tensor, by the same storage rules the sharder writes with, including the exact NF4 sidecar bytes; for Moonlight it lands within 0.01% of the cache written in bothfusedandper_expert. A striped cache splits that same figure over its drives. A dense base underquantization: 4bitis now charged more, because its embeddings, head and norms stay at the stream dtype (Llama-3.1-8B 4.14 GB -> 5.70 GB, Llama-3.2-1B 0.64 GB -> 1.03 GB), so a run that passed by less than that margin is now refused. A checkpoint the sharder would refuse is refused before anything is copied. When the files cannot be listed or a header cannot be read, the old rate is charged and the panel says "approximately", as it now also does for a qwen4_exp base that is not an oQ checkpoint. (#2039)