This commit is contained in:
hiyouga committed 2023-07-17 18:07:17 +08:00
1 parent 1e1358431d
commit 85c2210452
5 files changed
+38 -12

No files matched your search

+1 -1
View File
@@ -153,7 +153,7 @@ class PPOPeftTrainer(PPOTrainer, PeftTrainer):
if self.control.should_training_stop:
break
@torch.no_grad()
@torch.inference_mode()
def generate(
self,
inputs: Dict[str, torch.Tensor],