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.

723 B
Raw Blame
  • backend: mlx no longer crashes when a split is smaller than one batch (#1851 by @dryn85-max in #1857). mlx-lm trains and evaluates in whole batches. A one-row validation split, which the default val_split: 0.1 gives on the bundled 10-row alpaca_tiny.jsonl, crashed at the first evaluation with Dataset must have at least batch_size=2 examples, after the model had loaded. Such a split is now skipped with a warning that names both numbers and says val_loss will be absent, and the run trains. A training split smaller than one batch is refused before the model loads. Try: soup train --config soup.yaml with backend: mlx, data.train: examples/data/alpaca_tiny.jsonl and batch_size: 2.