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 with
moe_lora: truenow keeps list attention targets, as resident training does, and its VRAM forecast charges what attaches. The streaming setup handed themoe_lorahelper no targets and then replaced the resolvedtarget_moduleslist with its answer (q_proj,k_proj,v_proj,o_proj, the expert FFN names and the fused expert parameters). Every name that list does not repeat lost its adapter: on DeepSeek-V3, whose attention has nok_proj/v_proj, attention kept onlyo_projand lostq_a_proj,q_b_proj,kv_a_proj_with_mqaandkv_b_proj; on Qwen3.5-MoE the linear-attentionin_proj_qkv/out_projwere dropped; and an explicitlora.target_moduleslist was dropped entirely. The setup now resolves the targets before its meta-skeleton probe and passes them to the same helper the resident trainers use, so when the targets are a list (an explicit list, or whatautoresolves to on DeepSeek-V3 and Qwen3.5-MoE) a streamed run adapts their union with the MoE targets, in the same order as a resident run of the same config. A string target (autoon qwen4_exp resolves to"all-linear", or a regex) reaches the same helper on both paths, where it keeps its meaning without the MoE routers. The pre-flight VRAM forecast now counts that union and one adapter per routed expert for each fused expert tensor, instead of the configured value:target_modules: ['o_proj']was charged one target per layer while the union and every routed expert attached. Runs withoutmoe_loraare unchanged. (#2072)