Problem loading trained keras model
I'm running the following line of code:
```
model = TFBertForSequenceClassification.from_pretrained(model_dir, num_labels=len(labels))
```
where model_dir is a directory containing a tf_model.h5 and a config.json file that was exported using the .save_pretrained() method.

However I get the following error shown below:

![image](https://user-images.githubusercontent.com/44329080/66222304-bb5d3f00-e685-11e9-9017-6d7733bd5d15.png)

Could someone help here?

It seems to me like your file is corrupted 😕<|||||>You can refresh the file in the cache with the `force_download` option (`model.from_pretrained(shortcut_name, force_download=True)`)<|||||>I think this worked @thomwolf, thanks!<|||||>Bringing this back up because it seems like the corrupted file actually happens even when it isn't in the cache. It seems like every 2/3 runs using .save_pretrained() results in a corrupted file for some reason.<|||||>Not sure we can do much about this here, we are just calling `tf.keras.Model.save_weights()` for that. Maybe ask upstream in the TensorFlow issues?<|||||>This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
