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
- GRPO can use an LLM judge as its reward:
training.reward_fn: judge_rank(#2047 by @ybai08 in #2117). One judge call sees allnum_generationscompletions 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 asformat,judge_rank. The judge is set withtraining.grpo_judge(the URL form ofonline_dpo_judge, checked at load) and the run must statetraining.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_tokensandgrpo_judge_max_failure_rateare 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 scoresNoneinstead of 0.0, is logged asjudge/failed_group_rate(and groups scored all equal asjudge/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_rankon any task other thangrpo, or withmodality: vision, is now refused at load. Every new field is off by default and no existing default changes; other judge requests keepmax_tokens: 1024.