AttributeError: 'list' object has no attribute '__module__' when calling from_pretrained using file system #7610
Unanswered
dferguson992
asked this question in
Q&A
Replies: 1 comment
-
As of my investigation, one can add this (as a fast and temporary action) at the 506. line of not_compiled_module = _unwrap_model(module)
+ if isinstance(not_compiled_module, list): return (not_compiled_module[0], not_compiled_module[1])
library = not_compiled_module.__module__.split(".")[0] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I downloaded the stabilityai/stable-cascade model from HuggingFace and saved it to my file system using the following:
My plan is to deploy this to a SageMaker endpoint but am having trouble re-loading the model from the local file system. I keep getting the following error when I call
model = StableCascadeCombinedPipeline.from_pretrained("model/", variant="bf16", torch_dtype=torch.float16)
:Been at this for several days now, not sure what I'm doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions