Fully pickling a model?

Is there a way to save and load an entire model in such a way I dont need the original model code?

So I figured out how to save and load from a checkpointer with .load_from_checkpoint
I had to use self.save_hyperparameters() - not well documented at all!

but anyways. This method requires me to preserve the code used to build the model. Not ideal, though not the end of the world.

hey @klappec

this isn’t an ideal behavior. Are you getting any error if you remove self.save_hyperparameters() call during reload?

Also, we have moved the discussions to GitHub Discussions. You might want to check that out instead to get a quick response. The forums will be marked read-only soon.

Thank you