Add push_to_hub: safe_serialization=False#45
Add push_to_hub: safe_serialization=False#45zhiying318 wants to merge 1 commit intoariG23498:mainfrom
Conversation
|
Thanks for opening the PR! Could you provide more details about the issue faced? 😄 |
|
Hi, so here's a more detailed description: I meet The default case does not allow shared memory tensors to be saved. So adding |
|
Thanks for sharing the trace. I'd try to avoid this solution and find another way to do so. What the error says is that those layers share memory. Instead, it could be approached by cloning the problematic tensor. I've opened a PR #49 addressing this error. |
|
You can also see another example where |
In terms of saving the models, I have faced the same issue with safe serialization of tensors, as mentioned in #42
I also suggest changing to this: