[GH-ISSUE #494] AttributeError: type object 'RecursiveScriptModule' has no attribute '_construct' #419

Open
opened 2026-10-31 21:14:49 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @Olimoyo on GitHub (May 7, 2025).
Original GitHub issue: https://github.com/openai/CLIP/issues/494

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?

Originally created by @Olimoyo on GitHub (May 7, 2025). Original GitHub issue: https://github.com/openai/CLIP/issues/494 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?
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#419
No description provided.