Hello!
I need some help to fix my “RunTimeError” message.
The code used:
from transformers import TFAutoModel
checkpoint=“distilbert-base-uncased-finetuned-sst-2-english”
model=TFAutoModel.from_pretrained(checkpoint)
And the long error message
RuntimeError: Failed to import transformers.models.distilbert.modeling_tf_distilbert because of the following error (look up to see its traceback):
No module named ‘keras.saving.hdf5_format’
I cant see where I have done something wrong, it seems more there is something wrong with the model?