TrOCR base-harge-stage1 Processor issue 
Author: Mohammed20201991
Pull request: no

Hi everyone,
I am trying to run [trocr large base stage1](https://huggingface.co/microsoft/trocr-large-stage1) 
code can be found [here with Google Collab ](https://drive.google.com/file/d/1_yzu2iTWW5AWpkBFv6M590rTPEY6vmbU/view?usp=sharing) 
can anyone tell what the possible ways to this issue are during loading processor for features extraction 
 
`processor_base_large_stage1 = TrOCRProcessor.from_pretrained('microsoft/trocr-large-stage1')`

the issue : 
`Exception                                 Traceback (most recent call last)
[<ipython-input-7-30e2e2fd6c43>](https://localhost:8080/#) in <module>
----> 1 processor_base_large_stage1 = TrOCRProcessor.from_pretrained('microsoft/trocr-large-stage1')

6 frames
[/usr/local/lib/python3.8/dist-packages/transformers/tokenization_utils_fast.py](https://localhost:8080/#) in __init__(self, *args, **kwargs)
    109         elif fast_tokenizer_file is not None and not from_slow:
    110             # We have a serialization from tokenizers which let us directly build the backend
--> 111             fast_tokenizer = TokenizerFast.from_file(fast_tokenizer_file)
    112         elif slow_tokenizer is not None:
    113             # We need to convert a slow tokenizer to build the backend

Exception: No such file or directory (os error 2)`

Comments:
cc @NielsRogge 

Hi,

Thanks for your interest in TrOCR! This is possibly linked to #15283

Thanks @NielsRogge & @sgugger 
In this [#15283](https://github.com/huggingface/transformers/issues/15283) Cannot solve my issue may I miss something else?
But, what about using a different processor like a small stage1 or large handwritten while they are both initialized from Beit & RoBERTa models by updating the above line with 
processor_base_large_stage1 = `TrOCRProcessor.from_pretrained('microsoft/trocr-base-stage1')`
no errors here, But does this will affect results when finetuning for a different language?

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.

The solution which is working for me I save the processor on a [collab ](https://drive.google.com/file/d/1_yzu2iTWW5AWpkBFv6M590rTPEY6vmbU/view?usp=sharing) by following `processor.save_pretrained("./processor") `   and then I am using it in my own environment (remote cluster server) 
`processor = TrOCRProcessor.from_pretrained("/processor/")  #microsoft/trocr-large-stage1`
Transformers version:  4.27.0    installed with new venv 

I see the issue occurs because that model repo doesn't have fast tokenizer files. One can load the slow (Python-based) tokenizer as follows:
```
from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("microsoft/trocr-large-stage1", use_fast=False)
```

Update, solved this issue by following the guide here: https://discuss.huggingface.co/t/convert-slow-xlmrobertatokenizer-to-fast-one/20876.

This works now!

```
from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("microsoft/trocr-large-stage1")
```