This answer can help you: I have a question to Exam(TF certification) - #5 by Laurence_Moroney 13
and to pass model around, don’t use pickle, try saving to a saved model (maybe compress it if necessary):  Using the SavedModel format  |  TensorFlow Core 2