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.

838 B
Raw Blame
  • training.eval_steps works on backend: mlx for SFT, counted in optimizer updates (#1990 by @dryn85-max in #2074). The field was refused on MLX. MLX SFT now evaluates after every N completed optimizer updates (after gradient accumulation, as on transformers) and once after the last one. Every validation row counts, including a tail smaller than one batch, weighted by supervised tokens. The evaluations do not move the training order or take a step. A validation split smaller than one batch is evaluated rather than skipped when the field is set, and an empty split is refused before the model loads. Unset, MLX keeps mlx-lm's own cadence. The run result reports val_loss, and adapter_config.json records the interval. Try: soup train --config soup.yaml with backend: mlx and training.eval_steps: 10.