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.0 KB
Raw Blame
  • SimPO runs natively on Apple Silicon: task: simpo with backend: 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 CPO simpo objective: -logsigmoid(0.1 * (a - b) - simpo_gamma) on mean completion log-probabilities, with beta fixed at CPOConfig's default 0.1 as on the transformers backend, plus cpo_alpha times the chosen-completion NLL. No reference model is needed. Rows are tokenized as TRL's CPO trainer does, so rows that fit in max_length train on the same tokens on either backend; ties train as 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, non-text modalities and LoRA+ are refused on MLX, and task: preference stays refused there, now naming task: simpo / task: orpo / task: dpo. Try: soup train --config soup.yaml with task: simpo, backend: mlx and base: mlx-community/Qwen2.5-0.5B-Instruct-4bit.