drop length column for issues with eval without packing (#1711)
This commit is contained in:
@@ -459,6 +459,8 @@ class AxolotlTrainer(Trainer):
|
||||
self.data_collator = ( # pylint: disable=attribute-defined-outside-init
|
||||
self.eval_data_collator
|
||||
)
|
||||
if eval_dataset:
|
||||
eval_dataset = eval_dataset.remove_columns(["length"])
|
||||
dataloader = super().get_eval_dataloader(eval_dataset)
|
||||
self.data_collator = ( # pylint: disable=attribute-defined-outside-init
|
||||
self.train_data_collator
|
||||
|
||||
Reference in New Issue
Block a user