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.6 KB
Raw Blame
  • GRPO can use an LLM judge as its reward: training.reward_fn: judge_rank (#2047 by @ybai08 in #2117). One judge call sees all num_generations completions of a prompt together and scores each from 0 to 1 against the others, in a fresh order on every call; it also runs in an ensemble such as format,judge_rank. The judge is set with training.grpo_judge (the URL form of online_dpo_judge, checked at load) and the run must state training.grpo_judge_max_calls: after the data loads and before the model does, a run that could make more judge calls than that is refused with the count. grpo_judge_rubric, grpo_judge_max_tokens and grpo_judge_max_failure_rate are optional. A reply that is not a JSON object with one score in [0, 1] per completion is asked for once more; a group that still has none scores None instead of 0.0, is logged as judge/failed_group_rate (and groups scored all equal as judge/equal_score_group_rate), and training stops with an error naming the judge once too many training groups failed. A judge that cannot be reached ends the run. Prompts and completions are sent to the judge host. A request the judge answers with 429 or a 5xx, or that times out or loses its connection, is retried up to twice inside each counted call, so the judge host can see up to three requests per counted call. training.reward_fn: judge_rank on any task other than grpo, or with modality: vision, is now refused at load. Every new field is off by default and no existing default changes; other judge requests keep max_tokens: 1024.