Cannot import name 'BEiTForImageClassification' from 'transformers' 
## Environment info
<!-- You can run the command `transformers-cli env` and copy-and-paste its output below.
     Don't forget to fill out the missing fields in that output! -->

Hi trying to run the BEiTForImageClassification in Google Colab and got the following error Cannot import name 'BEiTForImageClassification' from 'transformers'. Any suggestion on how to fix it?

- `transformers` version: 4.9.2
- Platform: Google Colab

Models:
- nielsr/beit-base-patch16-224


## To reproduce

Steps to reproduce the behavior:

Based on https://huggingface.co/nielsr/beit-base-patch16-224.
1. Run and using the following code
` ` ` 
from transformers import AutoTokenizer, BEiTForImageClassification  
tokenizer = AutoTokenizer.from_pretrained("nielsr/beit-base-patch16-224")
model = BEiTForImageClassification.from_pretrained("nielsr/beit-base-patch16-224")
` ` ` 

<!-- If you have code snippets, error messages, stack traces please provide them here as well.
     Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
     Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.-->

## Expected behavior

<!-- A clear and concise description of what you would expect to happen. -->
An error "Cannot import name 'BEiTForImageClassification' from 'transformers' "
I have encountered the same problem, and solved it by re-installing `transformers` from the source via the following command:
`pip install git+https://github.com/huggingface/transformers` (for further details please see https://huggingface.co/transformers/installation.html). Installing from the source resulted in a `transformers ` version of 4.10.0, and then I could import the Beit models.

Another thing that caught my attention in your code sample is that there is a little typo that might also be causing the problem, the module to be imported is written as `BEiTForImageClassification`, however it is supposed to be `BeitForImageClassification`.<|||||>Thanks it solves the problem. Also for the clarification.