A TrainerCallback
that displays the progress of training or evaluation using Rich.
( prompts: List judge: BaseRankJudge trainer: Trainer generation_config: Optional = None batch_size: int = 4 )
Parameters
List[str]
) —
The prompts to generate completions for. BaseRankJudge
) —
The judge to use for comparing completions. Trainer
) —
The trainer. GenerationConfig
, optional) —
The generation config to use for generating completions. int
, optional) —
The batch size to use for generating completions. Defaults to 4. A TrainerCallback that computes the win rate of a model based on a reference.