illegal hardware instruction
### System Info

```shell
i use macbookpro, and pip install transformers, but i get this error:
>>> from transformers import DistilBertConfig
zsh: illegal hardware instruction  python
could you help me?
```


### Who can help?

_No response_

### Information

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

### Tasks

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

### Reproduction

zsh: illegal hardware instruction  python

### Expected behavior

```shell
zsh: illegal hardware instruction  python
```

I think this is due to you installation of tensorflow and not necessarily the library  . 
Did you try installing with 
```
conda install -c apple  tensorflow-deps
python -m pip install tensorflow-macos
python -m pip install tensorflow-metal
```

Also it is recommended to install using [MiniForge](https://github.com/conda-forge/miniforge#miniforge3)<|||||>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.<|||||>I'm having the same issue. It happened with the same code recently after installing Big Sur.