

TITLE
Erroneous 404 warning when using AutoTokenizer.from_pretrained

COMMENTS
1

REACTIONS
+1: 0
-1: 0
laugh: 0
hooray: 0
heart: 1
rocket: 0
eyes: 0

BODY
## Environment info

- `transformers` version: 4.12.5
- Platform: Linux-5.11.0-41-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- PyTorch version (GPU?): 1.9.0+cu111 (True)
- Tensorflow version (GPU?): 2.6.0 (False)
- Flax version (CPU?/GPU?/TPU?): 0.3.6 (cpu)
- Jax version: 0.2.24
- JaxLib version: 0.1.73
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no

### Who can help
@LysandreJik 

## Information

Model I am using (Bert, XLNet ...): any model

The problem arises when using:
* [ ] the official example scripts: (give details below)
* [ x] my own modified scripts: (give details below)

## To reproduce

Steps to reproduce the behavior:

`tokenizer = transformers.AutoTokenizer.from_pretrained("bigscience/tr3m-1B3-pile-checkpoints", revision="global_step1500")`

An erroneous warning is displayed: `404 Client Error: Not Found for url: https://huggingface.co/bigscience/tr3m-1B3-pile-checkpoints/resolve/main/config.json`, hinting that the AutoTokenizer is looking in the wrong place (the master branch), ignoring the revision argument, and not finding the file. However, the tokenizer is correctly initialized.

## Expected behavior

No warning.