add no_grad() to compel node invoke() method

This commit is contained in:
Lincoln Stein 2023-07-02 18:20:16 -04:00
parent 6935858ef3
commit fa8ccd2a94

View File

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