Skip to content

armgit / Soup

Public Imported from GitHub
0

Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.

1.5 KB
Raw Blame
  • Layer streaming with moe_lora: true now keeps list attention targets, as resident training does, and its VRAM forecast charges what attaches. The streaming setup handed the moe_lora helper no targets and then replaced the resolved target_modules list 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 no k_proj / v_proj, attention kept only o_proj and lost q_a_proj, q_b_proj, kv_a_proj_with_mqa and kv_b_proj; on Qwen3.5-MoE the linear-attention in_proj_qkv / out_proj were dropped; and an explicit lora.target_modules list 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 what auto resolves 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 (auto on 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 without moe_lora are unchanged. (#2072)