ViT doesnt use tokenizer, yet shown as example transformer website
Author: dmatos2012
Pull request: no

## 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! -->

- `transformers` version: 4.9.0.dev0
- Platform: Linux-5.4.0-1043-gcp-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyTorch version (GPU?): not installed (NA)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): 0.3.4 (tpu)
- Jax version: 0.2.16
- JaxLib version: 0.1.68
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no


### Who can help
<!-- Your issue will be replied to more quickly if you can figure out the right person to tag with @
 If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
 Please tag fewer than 3 people.

Models:

- albert, bert, xlm: @LysandreJik
- blenderbot, bart, marian, pegasus, encoderdecoder,  t5: @patrickvonplaten, @patil-suraj
- longformer, reformer, transfoxl, xlnet: @patrickvonplaten
- fsmt: @stas00
- funnel: @sgugger
- gpt2: @patrickvonplaten, @LysandreJik
- rag: @patrickvonplaten, @lhoestq
- tensorflow: @Rocketknight1

Library:

- benchmarks: @patrickvonplaten
- deepspeed: @stas00
- ray/raytune: @richardliaw, @amogkam
- text generation: @patrickvonplaten
- tokenizers: @LysandreJik
- trainer: @sgugger
- pipelines: @LysandreJik

Documentation: @sgugger

Model hub:

- for issues with a model report at https://discuss.huggingface.co/ and tag the model's creator.

HF projects:

- datasets: [different repo](https://github.com/huggingface/datasets)
- rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)

Examples:

- maintained examples (not research project or legacy): @sgugger, @patil-suraj
- research_projects/bert-loses-patience: @JetRunner
- research_projects/distillation: @VictorSanh

 -->

## Information

Model I am using (Bert, XLNet ...): ViT

The problem arises when using:
* [X] the official example scripts: (give details below)
* [ ] my own modified scripts: (give details below)

The tasks I am working on is:
* [ ] an official GLUE/SQUaD task: (give the name)
* [ ] my own task or dataset: (give details below)

## To reproduce

Steps to reproduce the behavior:

1. Open vit [transformer](https://huggingface.co/google/vit-base-patch16-224) website 
2. Click on "</> Use in Transformers"
3. Copy the text  and run it

<!-- 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.-->
Error trace:
```
    tokenizer = AutoTokenizer.from_pretrained("google/vit-base-patch16-224")
  File "/home/david/transformers/src/transformers/models/auto/tokenization_auto.py", line 576, in from_pretrained
    raise ValueError(
ValueError: Unrecognized configuration class <class 'transformers.models.vit.configuration_vit.ViTConfig'> to build an AutoTokenizer.
Model type should be one of RetriBertConfig, RoFormerConfig, T5Config, MT5Config, MobileBertConfig, DistilBertConfig, AlbertConfig, CamembertConfig, PegasusConfig, MBartConfig, XLMRobertaConfig, MarianConfig, BlenderbotSmallConfig, BlenderbotConfig, BartConfig, LongformerConfig, RobertaConfig, ReformerConfig, ElectraConfig, FunnelConfig, LxmertConfig, LayoutLMConfig, DPRConfig, SqueezeBertConfig, BertConfig, OpenAIGPTConfig, GPT2Config, TransfoXLConfig, XLNetConfig, FlaubertConfig, XLMConfig, CTRLConfig, FSMTConfig, BertGenerationConfig, DebertaConfig, DebertaV2Config, RagConfig, XLMProphetNetConfig, Speech2TextConfig, M2M100Config, ProphetNetConfig, MPNetConfig, TapasConfig, LEDConfig, ConvBertConfig, BigBirdConfig, IBertConfig, Wav2Vec2Config, HubertConfig, GPTNeoConfig, LukeConfig, BigBirdPegasusConfig, CanineConfig.
```

## Expected behavior
Able to load the model correctly. Also @patrickvonplaten already solved it for me saying its ViTFeatureExtractor instead, but still it should be changed in the website. Thank you! 
<!-- A clear and concise description of what you would expect to happen. -->


Comments:
cc @julien-c @LysandreJik @sgugger @patil-suraj - For Vision and Speech models we probably should create a `AutoProcessor` and adapt the default website widget to not use `AutoTokenizer` for Vision & Speech

There is the `AutoFeatureExtractor` class already for vision (since there are no processors there).

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/master/CONTRIBUTING.md) are likely to be ignored.

I am facing same problem for 'facebook/dino-vitb16' on hugging face. 
I am trying to do use transformers.onnx to convert model to onnx. 
Though, there is no tokenizer for this model, it looks for tokenizer. 
Any solution for this ?

> 

Hi @kartikpodugu Could you open a new issue with a description and a code snippet that reproduce the issue? Thank you.

@kartikpodugu @ydshieh 
I also faced same issue in `from transformers import ViTForImageClassification.`
However, I resolved this issue by upgrade the transformers version.

[Old] 4.12.0.dev0
[New] 4.29.2

@SangbumChoi Could you open a new issue with a description, your full environment information, and a code snippet that reproduce the issue? Thank you.

Tried `from transformers import ViTForImageClassification` and it works fine.