RAG issue
## 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.8.2
- Platform:Windows 
- Python version:3.7.10
- PyTorch version (GPU?):CPU version 1.9.0
- Tensorflow version (GPU?):
- Using GPU in script?:no
- Using distributed or parallel set-up in script?:

Models:

- RAG
facebook/rag-sequence-nq

I am trying to use the retriever process of RAG mentioned in https://huggingface.co/transformers/model_doc/rag.html

I have created my own knowledge embedding using the process provided in the documentation. The process of retrieval works perfectly in transformer version transformers =4.6.1 but fails in the version 4.8.2

Issue is in the step:-tokenizer = RagTokenizer.from_pretrained(r"C:\My_Projects\code-repo\retriever\models")  ##local dir hosting the model facebook/rag-sequence-nq

ValueError: unable to parse C:\My_Projects\code-repo\retriever\models\tokenizer_config.json as a URL or as a local path.

Any help on the same would be appreciated as I have a feeling its a version issue. Do we need to implement it differently in the latest version.


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.