revert: inference_mode to no_grad

This commit is contained in:
blessedcoolant
2023-07-05 16:39:15 +12:00
parent f155887b7d
commit 639d88afd6
3 changed files with 7 additions and 7 deletions

View File

@ -56,7 +56,7 @@ class CompelInvocation(BaseInvocation):
},
}
@torch.inference_mode()
@torch.no_grad()
def invoke(self, context: InvocationContext) -> CompelOutput:
tokenizer_info = context.services.model_manager.get_model(
**self.clip.tokenizer.dict(),