-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pydantic>=2.5 classes can't be serialized #650
Comments
I also encountered this issue. Not sure if the issue is on This the minimum code required to reproduce the error with import dill
from pydantic import BaseModel
class MyModel(BaseModel):
pass
dill.loads(dill.dumps(MyModel())) and the error:
This only occurs if the |
If earlier versions of |
Thanks for the info @mmckerns. I'll do some more tests and try to figure out what's happening. |
Also facing this issue — we use pydantic for our run configs in ML experiments, and pickling is essential since we do distributed training. Any updates would be super helpful! Thank you |
same example works with
cloudpickle
The text was updated successfully, but these errors were encountered: