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
- Layer streaming supports the DeepSeek-V3 architecture (
model_type: deepseek_v3: MLA attention, routed plus shared experts, dense first layers), gated on resident-vs-streamed parity forward and backward. The sharder stacks per-expert keys into the fused expert tensors, drops the MTP layers stored pastnum_hidden_layers, and keeps the router'se_score_correction_biasat fp32; the runtime loads that buffer from the shard (the streamed skeleton would otherwise run it at zero). FP8 checkpoints (F8_*tensors or*_scale_invblock scales) are refused by the sharder instead of being cast without their scales. Kimi K2'skimi_k2model type stays refused. (#1914)