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
- SimPO runs natively on Apple Silicon:
task: simpowithbackend: mlx(#1999 by @dryn85-max in #2097). It was refused at config load. Soup's own MLX loop now trains TRL 0.29.1's CPOsimpoobjective:-logsigmoid(0.1 * (a - b) - simpo_gamma)on mean completion log-probabilities, with beta fixed atCPOConfig's default 0.1 as on the transformers backend, pluscpo_alphatimes the chosen-completion NLL. No reference model is needed. Rows are tokenized as TRL's CPO trainer does, so rows that fit inmax_lengthtrain on the same tokens on either backend; ties train as in TRL. The adapter loads withmlx_lm.load.--resumerefuses a checkpoint from another task or base. A nonfinite loss stops the run.quantization: 8bit,lora.r: 0, non-text modalities and LoRA+ are refused on MLX, andtask: preferencestays refused there, now namingtask: simpo/task: orpo/task: dpo. Try:soup train --config soup.yamlwithtask: simpo,backend: mlxandbase: mlx-community/Qwen2.5-0.5B-Instruct-4bit.