Run gcloud auth application-default login before using any files After exporting, tar the export folder with tar -czvf model.tar.gz ./1 where the .pb file is directly under the folder 1