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
- MLX SFT runs are reproducible:
training.seedandtraining.data_seedare applied (#1850 by @dryn85-max in #1855). mlx-lm's batch shuffle draws from numpy's global RNG, and LoRA init and dropout draw frommx.random. Soup seeded neither, so every run of onesoup.yamltrained on a different batch order, even with the seed left at the 42 the panel prints.mx.randomis now seeded before the adapter is built and numpy right before training, and theMLX backend ignores: training.seedwarning is gone. Runs started before this change cannot be reproduced. Try: runsoup train --config soup.yamltwice withbackend: mlxand compare the losses.