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
- ORPO runs natively on Apple Silicon:
task: orpowithbackend: mlx(#2004 by @dryn85-max in #2073). It was refused at config load. Soup's own MLX loop now trains TRL 0.29.1's ORPO objective withtraining.orpo_beta: the stable odds-ratio term on mean completion log-probabilities, plus the chosen-sequence NLL over prompt and answer. No reference model is needed. Rows are tokenized the way TRL's ORPO trainer does, so rows that fit inmax_lengthtrain on the same tokens on either backend; over-long rows are cut with Soup's usual cap, and ties train as they do 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: 0and non-text modalities are refused on MLX, andtask: preferencestays refused there. Measured once on an M4 Pro: one epoch on 600 UltraFeedback pairs took about four minutes with Qwen2.5-0.5B-Instruct. Try:soup train --config soup.yamlwithtask: orpo,backend: mlxandbase: mlx-community/Qwen2.5-0.5B-Instruct-4bit.