# Very long warning when running rag-end2end-retriever

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvery-long-warning-when-running-rag-end2end-retriever%2F22180%3E%5C
**Category:** 🤗Transformers\
**Created:** [August 26, 2022, 8:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvery-long-warning-when-running-rag-end2end-retriever%2F22180 "2022-08-26T20:20:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yicxu](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yicxu](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fyicxu)%5C
**Post date:** [August 26, 2022, 8:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvery-long-warning-when-running-rag-end2end-retriever%2F22180%2F1 "2022-08-26T20:20:17Z")

</div>

I’m trying to run rag end2end retriever as here:

> **[transformers/examples/research\_projects/rag-end2end-retriever at main ·...](https://github.com/huggingface/transformers/tree/main/examples/research_projects/rag-end2end-retriever)**
>
> main/examples/research\_projects/rag-end2end-retriever

I encountered very long warning sequences with many tokenizer mismatches. Is this normal? I pasted a part of it - there are many more following this.

My environment:  
pytorch:1.12.1-cuda11.3-cudnn8  
pytorch-lightning==1.6.4  
transformers==4.21.2

@shamanez

Some of the output:

The tokenizer class you load from this checkpoint is not the same type as the class this function is called from. It may result in unexpected tokenization.  
The tokenizer class you load from this checkpoint is ‘DPRQuestionEncoderTokenizer’.  
The class this function is called from is ‘DPRContextEncoderTokenizerFast’.

\*\*followed by tokenizer config

The tokenizer class you load from this checkpoint is not the same type as the class this function is called from. It may result in unexpected tokenization.  
The tokenizer class you load from this checkpoint is ‘RagTokenizer’.  
The class this function is called from is ‘DPRQuestionEncoderTokenizer’.  
\*\*followed by tokenizer config

The tokenizer class you load from this checkpoint is not the same type as the class this function is called from. It may result in unexpected tokenization.  
The tokenizer class you load from this checkpoint is ‘RagTokenizer’.  
The class this function is called from is ‘DPRQuestionEncoderTokenizerFast’.  
Could not locate the tokenizer configuration file, will try to use the model config instead.

---

<div class="post-metadata">

**Author:** ![shamanez](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/shamanez/32/17994_2.png) [@shamanez](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fshamanez)%5C
**Post date:** [August 26, 2022, 10:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvery-long-warning-when-running-rag-end2end-retriever%2F22180%2F2 "2022-08-26T22:43:50Z")

</div>

> [@yicxu](#):
>
> [https://github.com/huggingface/transformers/tree/main/examples/research\_projects/rag-end2end-retriever](https://github.com/huggingface/transformers/tree/main/examples/research_projects/rag-end2end-retriever)

yeah these things are normal. You’re all good 🙂
