Skip to content

Commit

Permalink
fix (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
tastelikefeet authored and Jintao-Huang committed Aug 2, 2024
1 parent bb017a8 commit 73a1b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swift/trainers/kto_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, *args, template: Template, test_oom_error=False, **kwargs):
super().__init__(*args, **kwargs)
train_ds_info = self.stat_dataset(self.train_dataset)
if self.eval_dataset is not None:
val_ds_info = self.stat_dataset(self.eval_dataset, self.is_encoder_decoder)
val_ds_info = self.stat_dataset(self.eval_dataset)
self.dataset_info = {'train_dataset': train_ds_info, 'val_dataset': val_ds_info}
else:
self.dataset_info = {'train_dataset': train_ds_info}
Expand Down

0 comments on commit 73a1b44

Please sign in to comment.