You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(online_dpo): pin eval_loss to the batch losses and refuse compute_metrics
The three evaluate tests bounded the magnitude of eval_loss, which a
prediction_step returning any constant satisfies. They now record every
_compute_loss call made during evaluate() and pin eval_loss to the mean
of those losses weighted by batch size, as Trainer aggregates them: the
17-row split leaves a final batch of one example, so an unweighted mean
misses by 0.17 on NashMD. One call per evaluation batch, statistics off.
prediction_step returns no predictions or labels, so a compute_metrics
callback passed to these trainers was accepted and never called.
OnlineDPO, NashMD and XPO now raise a ValueError for it and the
docstrings say so.
0 commit comments