CLIP icon indicating copy to clipboard operation
CLIP copied to clipboard

AttributeError: type object 'RecursiveScriptModule' has no attribute '_construct'

Open Olimoyo opened this issue 8 months ago • 0 comments

When I load the model, I get an error from model = torch.jit.load(opened_file, map_location=device if jit else "cpu").eval():

AttributeError: type object 'RecursiveScriptModule' has no attribute '_construct'

This error only happens when I run it on AWS. Is there a way to prevent this?

Olimoyo avatar May 07 '25 21:05 Olimoyo