Hi, I’m having the same error. The weird thing is it works if I’m working (saving and loading) inside a Jupyter notebook but if I save the model from within a Python file and try to load it later, I’m getting the same error.
TypeError: <module '__main__'> is a built-in class
I get the same issue as you mentioned. I write a python script for loading model and run it in jupyter: %run load_model.py @z3ppj1g5aw Although it’s not the proper solution, but could be considered as a remedy.