cannot load t5-base config 
Hi
Here is my two lines to get t5-config:

```
from transformers import AutoConfig
config = AutoConfig.from_pretrained('t5-base')
```

Here are the errors, is there an issue with t5-base storage?  I am really confused, thank you for your help on this.
thanks 

```
file t5-base/config.json not found
Traceback (most recent call last):
  File "/opt/conda/envs/internship/lib/python3.7/site-packages/transformers/configuration_utils.py", line 388, in get_config_dict
    local_files_only=local_files_only,
  File "/opt/conda/envs/internship/lib/python3.7/site-packages/transformers/file_utils.py", line 962, in cached_path
    raise EnvironmentError("file {} not found".format(url_or_filename))
OSError: file t5-base/config.json not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 2, in <module>
    config = AutoConfig.from_pretrained('t5-base')
  File "/opt/conda/envs/internship/lib/python3.7/site-packages/transformers/configuration_auto.py", line 333, in from_pretrained
    config_dict, _ = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
  File "/opt/conda/envs/internship/lib/python3.7/site-packages/transformers/configuration_utils.py", line 400, in get_config_dict
    raise EnvironmentError(msg)
OSError: Can't load config for 't5-base'. Make sure that:

- 't5-base' is a correct model identifier listed on 'https://huggingface.co/models'

- or 't5-base' is the correct path to a directory containing a config.json file
```


Hello, could you please fill the issue template when opening issues? Otherwise we cannot help you. Thanks.<|||||>## Environment info
     
- `transformers` version: 3.5.1
- Platform: cpu 
- Python version: 3.7
- PyTorch version (GPU?): 1.0.4
- Tensorflow version (GPU?): 
 tensorflow-datasets       4.1.0                     <pip>
tensorflow-metadata       0.25.0                    <pip>
- Using GPU in script?: - 
- Using distributed or parallel set-up in script?: - 

### Who can help

 Here is my two lines to get t5-config:

```
from transformers import AutoConfig
config = AutoConfig.from_pretrained('t5-base')
```
 Model Cards: @julien-c
 T5: @patrickvonplaten

## Information
Here are the errors, is there an issue with t5-base storage?  I am really confused, thank you for your help on this.
thanks 

```
file t5-base/config.json not found
Traceback (most recent call last):
  File "/opt/conda/envs/internship/lib/python3.7/site-packages/transformers/configuration_utils.py", line 388, in get_config_dict
    local_files_only=local_files_only,
  File "/opt/conda/envs/internship/lib/python3.7/site-packages/transformers/file_utils.py", line 962, in cached_path
    raise EnvironmentError("file {} not found".format(url_or_filename))
OSError: file t5-base/config.json not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 2, in <module>
    config = AutoConfig.from_pretrained('t5-base')
  File "/opt/conda/envs/internship/lib/python3.7/site-packages/transformers/configuration_auto.py", line 333, in from_pretrained
    config_dict, _ = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
  File "/opt/conda/envs/internship/lib/python3.7/site-packages/transformers/configuration_utils.py", line 400, in get_config_dict
    raise EnvironmentError(msg)
OSError: Can't load config for 't5-base'. Make sure that:

- 't5-base' is a correct model identifier listed on 'https://huggingface.co/models'

- or 't5-base' is the correct path to a directory containing a config.json file
```

## To reproduce
please run the two lines above.

## Expected behavior
loading the config 
<|||||>Hi, sure, done<|||||>Hi @LysandreJik  this issues is really weird and really blocking me, I greatly appreciate having a look. thanks <|||||>Hey @rabeehk - I cannot reproduce the error. I suspect the following:

You run the code from a directory that includes a local folder that is called `t5-base` which does not have a `config.json`.
Could you try to run:

```
from transformers import AutoConfig
config = AutoConfig.from_pretrained('t5-base')
```

from another folder or delete the `t5-base` folder that might be the reason? <|||||>Hi patrick
thank you for the reply, this is what happening when I call this line:

   config = T5Config.from_pretrained(
        model_args.config_name if model_args.config_name else
model_args.model_name_or_path,
    )

the code by itself creates an empty t5-base directory, I delete it and then
it recreates it.
Do you have an idea on this?
thanks
Best
Rabeeh

On Thu, Nov 19, 2020 at 9:32 PM Patrick von Platen <notifications@github.com>
wrote:

> Hey @rabeehk <https://github.com/rabeehk> - I cannot reproduce the error.
> I suspect the following:
>
> You run the code from a directory that includes a local folder that is
> called t5-base which does not have a config.json.
> Could you try to run:
>
> from transformers import AutoConfig
> config = AutoConfig.from_pretrained('t5-base')
>
> from another folder or delete the t5-base folder that might be the reason?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/transformers/issues/8661#issuecomment-730620761>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCGIXURMYC7WWVFZPXDSQV6GTANCNFSM4T3SASPQ>
> .
>
<|||||>Could you tell me please how to set the path when using datasets that it
does not cache in the default path?
to me there might not be space for the model and this is all happening.
Overall all the caches done in huggingface code, could you tell me how to
set the different path for them
thanks

On Fri, Nov 20, 2020 at 1:12 PM Rabeeh Karimi <rabeeh.k68@gmail.com> wrote:

> Hi patrick
> thank you for the reply, this is what happening when I call this line:
>
>    config = T5Config.from_pretrained(
>         model_args.config_name if model_args.config_name else
> model_args.model_name_or_path,
>     )
>
> the code by itself creates an empty t5-base directory, I delete it and
> then it recreates it.
> Do you have an idea on this?
> thanks
> Best
> Rabeeh
>
> On Thu, Nov 19, 2020 at 9:32 PM Patrick von Platen <
> notifications@github.com> wrote:
>
>> Hey @rabeehk <https://github.com/rabeehk> - I cannot reproduce the
>> error. I suspect the following:
>>
>> You run the code from a directory that includes a local folder that is
>> called t5-base which does not have a config.json.
>> Could you try to run:
>>
>> from transformers import AutoConfig
>> config = AutoConfig.from_pretrained('t5-base')
>>
>> from another folder or delete the t5-base folder that might be the
>> reason?
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <https://github.com/huggingface/transformers/issues/8661#issuecomment-730620761>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ABP4ZCGIXURMYC7WWVFZPXDSQV6GTANCNFSM4T3SASPQ>
>> .
>>
>
<|||||>So when I run the codes, there is caching done here
cahce dir  /idiap/home/rkarimi/.cache/huggingface/datasets
cahce dir  /idiap/home/rkarimi/.cache/huggingface/datasets/downloads

could I change this?
thanks
Best
Rabeeh

On Fri, Nov 20, 2020 at 1:44 PM Rabeeh Karimi <rabeeh.k68@gmail.com> wrote:

> Could you tell me please how to set the path when using datasets that it
> does not cache in the default path?
> to me there might not be space for the model and this is all happening.
> Overall all the caches done in huggingface code, could you tell me how to
> set the different path for them
> thanks
>
> On Fri, Nov 20, 2020 at 1:12 PM Rabeeh Karimi <rabeeh.k68@gmail.com>
> wrote:
>
>> Hi patrick
>> thank you for the reply, this is what happening when I call this line:
>>
>>    config = T5Config.from_pretrained(
>>         model_args.config_name if model_args.config_name else
>> model_args.model_name_or_path,
>>     )
>>
>> the code by itself creates an empty t5-base directory, I delete it and
>> then it recreates it.
>> Do you have an idea on this?
>> thanks
>> Best
>> Rabeeh
>>
>> On Thu, Nov 19, 2020 at 9:32 PM Patrick von Platen <
>> notifications@github.com> wrote:
>>
>>> Hey @rabeehk <https://github.com/rabeehk> - I cannot reproduce the
>>> error. I suspect the following:
>>>
>>> You run the code from a directory that includes a local folder that is
>>> called t5-base which does not have a config.json.
>>> Could you try to run:
>>>
>>> from transformers import AutoConfig
>>> config = AutoConfig.from_pretrained('t5-base')
>>>
>>> from another folder or delete the t5-base folder that might be the
>>> reason?
>>>
>>> —
>>> You are receiving this because you were mentioned.
>>> Reply to this email directly, view it on GitHub
>>> <https://github.com/huggingface/transformers/issues/8661#issuecomment-730620761>,
>>> or unsubscribe
>>> <https://github.com/notifications/unsubscribe-auth/ABP4ZCGIXURMYC7WWVFZPXDSQV6GTANCNFSM4T3SASPQ>
>>> .
>>>
>>
<|||||>> Hi patrick thank you for the reply, this is what happening when I call this line: config = T5Config.from_pretrained( model_args.config_name if model_args.config_name else model_args.model_name_or_path, ) the code by itself creates an empty t5-base directory, I delete it and then it recreates it. Do you have an idea on this? thanks Best Rabeeh
> […](#)
> On Thu, Nov 19, 2020 at 9:32 PM Patrick von Platen ***@***.***> wrote: Hey @rabeehk <https://github.com/rabeehk> - I cannot reproduce the error. I suspect the following: You run the code from a directory that includes a local folder that is called t5-base which does not have a config.json. Could you try to run: from transformers import AutoConfig config = AutoConfig.from_pretrained('t5-base') from another folder or delete the t5-base folder that might be the reason? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <[#8661 (comment)](https://github.com/huggingface/transformers/issues/8661#issuecomment-730620761)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABP4ZCGIXURMYC7WWVFZPXDSQV6GTANCNFSM4T3SASPQ> .

I don't think `from_pretrained(...)` ever creates a directory -> this should not happen. Not sure what's going on there. Can you maybe add a colab where I can reproduce your error?<|||||>> Could you tell me please how to set the path when using datasets that it does not cache in the default path? to me there might not be space for the model and this is all happening. Overall all the caches done in huggingface code, could you tell me how to set the different path for them thanks
> […](#)
> On Fri, Nov 20, 2020 at 1:12 PM Rabeeh Karimi ***@***.***> wrote: Hi patrick thank you for the reply, this is what happening when I call this line: config = T5Config.from_pretrained( model_args.config_name if model_args.config_name else model_args.model_name_or_path, ) the code by itself creates an empty t5-base directory, I delete it and then it recreates it. Do you have an idea on this? thanks Best Rabeeh On Thu, Nov 19, 2020 at 9:32 PM Patrick von Platen < ***@***.***> wrote: > Hey @rabeehk <https://github.com/rabeehk> - I cannot reproduce the > error. I suspect the following: > > You run the code from a directory that includes a local folder that is > called t5-base which does not have a config.json. > Could you try to run: > > from transformers import AutoConfig > config = AutoConfig.from_pretrained('t5-base') > > from another folder or delete the t5-base folder that might be the > reason? > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <[#8661 (comment)](https://github.com/huggingface/transformers/issues/8661#issuecomment-730620761)>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABP4ZCGIXURMYC7WWVFZPXDSQV6GTANCNFSM4T3SASPQ> > . >

Is this issue about `t5-base` config or about datasets? I don't follow here<|||||>Hi Patrick
this is now solved, I was mistakenly choose the output_path as t5-base and
this was the reason for the creation of empty t5-base directory.
I would like to thank you so much for the help.
Best
Rabeeh

On Fri, Nov 20, 2020 at 3:01 PM Patrick von Platen <notifications@github.com>
wrote:

> Could you tell me please how to set the path when using datasets that it
> does not cache in the default path? to me there might not be space for the
> model and this is all happening. Overall all the caches done in huggingface
> code, could you tell me how to set the different path for them thanks
> … <#m_3116611502979953478_>
> On Fri, Nov 20, 2020 at 1:12 PM Rabeeh Karimi *@*.*> wrote: Hi patrick
> thank you for the reply, this is what happening when I call this line:
> config = T5Config.from_pretrained( model_args.config_name if
> model_args.config_name else model_args.model_name_or_path, ) the code by
> itself creates an empty t5-base directory, I delete it and then it
> recreates it. Do you have an idea on this? thanks Best Rabeeh On Thu, Nov
> 19, 2020 at 9:32 PM Patrick von Platen < @.*> wrote: > Hey @rabeehk
> <https://github.com/rabeehk> https://github.com/rabeehk - I cannot
> reproduce the > error. I suspect the following: > > You run the code from a
> directory that includes a local folder that is > called t5-base which does
> not have a config.json. > Could you try to run: > > from transformers
> import AutoConfig > config = AutoConfig.from_pretrained('t5-base') > > from
> another folder or delete the t5-base folder that might be the > reason? > >
> — > You are receiving this because you were mentioned. > Reply to this
> email directly, view it on GitHub > <#8661 (comment)
> <https://github.com/huggingface/transformers/issues/8661#issuecomment-730620761>>,
> > or unsubscribe >
> https://github.com/notifications/unsubscribe-auth/ABP4ZCGIXURMYC7WWVFZPXDSQV6GTANCNFSM4T3SASPQ
> > . >
>
> Is this issue about t5-base config or about datasets? I don't follow here
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/transformers/issues/8661#issuecomment-731187426>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCATGEHAA7275ZAEFZLSQZZFPANCNFSM4T3SASPQ>
> .
>
