fix callback

This commit is contained in:
hiyouga committed 2023-07-15 17:18:16 +08:00
1 parent f751376613
commit 22d9a9c2af
4 files changed
+9 -5

No files matched your search

+1
View File
@@ -40,6 +40,7 @@ class PPOPeftTrainer(PPOTrainer, PeftTrainer):
self.state = TrainerState()
self.control = TrainerControl()
self.data_collator = self.accelerator.prepare(kwargs["data_collator"]) # override the data collator of PPOTrainer
self._remove_log()
def ppo_train(self, max_target_length: int) -> None:
r"""