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.

1.1 KB
Raw Blame
  • ORPO runs natively on Apple Silicon: task: orpo with backend: 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 with training.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 in max_length train 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 with mlx_lm.load. --resume refuses a checkpoint from another task or base. A nonfinite loss stops the run. quantization: 8bit, lora.r: 0 and non-text modalities are refused on MLX, and task: preference stays 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.yaml with task: orpo, backend: mlx and base: mlx-community/Qwen2.5-0.5B-Instruct-4bit.