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.2 KB
Raw Blame
  • The layer-streaming RAM check that runs before sharding (stream_source: ram) now charges what the RAM tier will hold. It charged the flat NF4 rate on the source files' size on disk. That under-counted a fused MoE base under quantization: 4bit (Moonlight-16B-A3B: about 8.2 GB against a 30.6 GB cache, whose stacked routed experts stay at the stream dtype) and an FP8 block source about 2x (one byte per weight on disk, dequantised in the cache). Such a base was refused only by the exact check after sharding, after minutes of work and about 30 GB of disk writes. The check now reuses the disk pre-flight's estimate from the source safetensors headers, so the headers are read once. It charges what the check after sharding measures: the decoder-layer files, the embedding and head and the resident extras (not the per_expert experts files, which stay on disk on every tier). It refuses by that check's rule, 70% of free RAM or 55% of physical RAM, so a base the exact check would refuse is refused before anything is sharded. When the headers cannot be listed or read, it charges the old rate and the refusal says "approximately". stream_source: auto is unchanged: nothing before sharding decides or warns on a RAM figure. (#2068)