fix #175
This commit is contained in:
1 parent
1e1358431d
commit
85c2210452
5 files changed
+38
-12
No files matched your search
@@ -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],
|
||||
|
||||
Reference in new issue
Block a user