Yeah, this is a pickle problem. Independent of Ploomber, my recommendation is to check the docs in the tpot library, most likely, your model is stored in one of the attributes. For example in scikit learn, you get it using “model.best_estimator_” - you may also try with other pickling libraries like joblib or cloudpickle