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.1 KB
Raw Blame
  • target_modules: auto now adapts the query projection of a DeepSeek-V3 base with q_lora_rank: null, such as Moonlight-16B-A3B. DeepSeek-V3's attention builds a single q_proj when the config's q_lora_rank is null and the low-rank pair q_a_proj / q_b_proj otherwise, but the deepseek_v3 entry 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. The deepseek_v3 and kimi_k2 entries now follow q_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_dsa is unchanged: its config does not accept q_lora_rank: null. kimi_k25 is unchanged too, so a Kimi K2.5 base with q_lora_rank: null would still get no adapter on q_proj. No shipped K2.5 or K2.6 config sets it, and because the vision tower has its own q_proj the entry would have to be a regex, which moe_lora: true discards. (#2071)