cannot import electratokenizer or model. It works on colabnotebook but not in python
### System Info

i have tensorflow version 2.11.0 and transformer version 4.24.0

and i cannot import TFElectraModel. It works for me in google colab but not in my pc.

from transformers import  TFElectraModel
gives me the following error

RuntimeError: Failed to import transformers.models.electra.modeling_tf_electra because of the following error (look up to see its traceback):
No module named 'keras.saving.hdf5_format'

### Who can help?

_No response_

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

in windows install python 3.10
install tensorflow
install numpy
install scikit-learn
install transformers

import tensorflow as tf
import numpy as np
import transformers
from transformers import ElectraTokenizer
from transformers import TFElectraModel

### Expected behavior

It should load the TFElectraModel, i have loaded this model a million times ins google colab and it still works there even now.
Transformers is not currently compatible with TensorFlow 2.11 (which broke a lot of things compared to the previous versions). It should be fixed on main so you can either do:
- an install of Transformers from source
- or downgrade your TensorFlow to 2.10<|||||>Hi There! I figured as much so is downgraded to tensorflow 2.10 and
installed transformers from the source

On Mon, Nov 21, 2022 at 8:29 PM Sylvain Gugger ***@***.***>
wrote:

> Transformers is not currently compatible with TensorFlow 2.11 (which broke
> a lot of things compared to the previous versions). It should be fixed on
> main so you can either do:
>
>    - an install of Transformers from source
>    - or downgrade your TensorFlow to 2.10
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/transformers/issues/20329#issuecomment-1322165802>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AYGQ4SMR5SK5XB45Y5KRPYDWJODDNANCNFSM6AAAAAASFGNBJE>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.