Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.
Python cliconsumer-gpudpofine-tuningggufhuggingfacellmllmopslocal-ailocal-llmloralow-vrammachine-learningollamapeftpythonpytorchqlorasfttransformers
training.eval_stepsworks onbackend: mlxfor 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 reportsval_loss, andadapter_config.jsonrecords the interval. Try:soup train --config soup.yamlwithbackend: mlxandtraining.eval_steps: 10.