Skip to content

fix: KTO evaluation iterates wrong dataloader#6405

Open
Mr-Neutr0n wants to merge 1 commit intohpcaitech:mainfrom
Mr-Neutr0n:fix/kto-eval-uses-train-dataloader
Open

fix: KTO evaluation iterates wrong dataloader#6405
Mr-Neutr0n wants to merge 1 commit intohpcaitech:mainfrom
Mr-Neutr0n:fix/kto-eval-uses-train-dataloader

Conversation

@Mr-Neutr0n
Copy link

Bug

The KTO trainer's evaluation method iterates over train_dataloader instead of eval_dataloader, causing evaluation metrics to be computed on training data rather than validation data.

Fix

Changed the evaluation loop to use eval_dataloader.

@Mr-Neutr0n Mr-Neutr0n requested a review from a team as a code owner February 11, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant