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.

692 B
Raw Blame
  • 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 past num_hidden_layers, and keeps the router's e_score_correction_bias at fp32; the runtime loads that buffer from the shard (the streamed skeleton would otherwise run it at zero). FP8 checkpoints (F8_* tensors or *_scale_inv block scales) are refused by the sharder instead of being cast without their scales. Kimi K2's kimi_k2 model type stays refused. (#1914)