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
target_modules: autonow adapts the query projection of a DeepSeek-V3 base withq_lora_rank: null, such as Moonlight-16B-A3B. DeepSeek-V3's attention builds a singleq_projwhen the config'sq_lora_rankisnulland the low-rank pairq_a_proj/q_b_projotherwise, but thedeepseek_v3entry named only the pair. peft refuses an attach only when no target matches, so on such a base the key/value and output projections took the adapter and the query path trained none, without a warning. Thedeepseek_v3andkimi_k2entries now followq_lora_rank, read from the config the model or the layer-streaming setup has. A base whose config sets an integer, as DeepSeek-V3 and Kimi K2 do, or does not carry the field, gets the same targets as before.glm_moe_dsais unchanged: its config does not acceptq_lora_rank: null.kimi_k25is unchanged too, so a Kimi K2.5 base withq_lora_rank: nullwould still get no adapter onq_proj. No shipped K2.5 or K2.6 config sets it, and because the vision tower has its ownq_projthe entry would have to be a regex, whichmoe_lora: truediscards. (#2071)