ConnectionError when downloading weights
### System Info

transformers.__version__: 4.24.0
python: 3.7.13
OS: Ubuntu 22.04.1 LTS
conda 4.12.0

### Who can help?

@LysandreJik 

### Information

- [X] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

```
from transformers import AutoTokenizer, EsmForProteinFolding

model = EsmForProteinFolding.from_pretrained("facebook/esmfold_v1")
```

Error:

```
File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/urllib3/response.py", line 443, in _error_catcher
    yield
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/urllib3/response.py", line 566, in read
    data = self._fp_read(amt) if not fp_closed else b""
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/urllib3/response.py", line 524, in _fp_read
    data = self._fp.read(chunk_amt)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/http/client.py", line 465, in read
    n = self.readinto(b)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/http/client.py", line 509, in readinto
    n = self.fp.readinto(b)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/ssl.py", line 1071, in recv_into
    return self.read(nbytes, buffer)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/ssl.py", line 929, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/requests/models.py", line 816, in generate
    yield from self.raw.stream(chunk_size, decode_content=True)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/urllib3/response.py", line 627, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/urllib3/response.py", line 592, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/urllib3/response.py", line 448, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='cdn-lfs.huggingface.co', port=443): Read timed out.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "get_esm.py", line 5, in <module>
    model = EsmForProteinFolding.from_pretrained("facebook/esmfold_v1")
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/transformers/modeling_utils.py", line 2091, in from_pretrained
    resolved_archive_file = cached_file(pretrained_model_name_or_path, filename, **cached_file_kwargs)
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/transformers/utils/hub.py", line 420, in cached_file
    local_files_only=local_files_only,
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/huggingface_hub/file_download.py", line 1231, in hf_hub_download
    headers=headers,
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/huggingface_hub/file_download.py", line 490, in http_get
    for chunk in r.iter_content(chunk_size=1024):
  File "/home/liviu/anaconda3/envs/tcr/lib/python3.7/site-packages/requests/models.py", line 822, in generate
    raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cdn-lfs.huggingface.co', port=443): Read timed out.
```

### Expected behavior

The weights are getting downloaded and at around 8-10% i get the above error. This behaviour is solved if I use my Uni VPN. 

Do I need special credentials to use ESMFold? Why would it work over VPN but not directly?
Looks like it's a connection issue on your end. There is no special credentials needed to load the model :-)<|||||>> Looks like it's a connection issue on your end. There is no special credentials needed to load the model :-)

@sgugger thanks for the fast answer. if I write like this:

`model = EsmForProteinFolding.from_pretrained("https://dl.fbaipublicfiles.com/fair-esm/models/esmfold_3B_v1.pt")`

It works just fine I get no errors, but I get the following warning

```
UserWarning: Using `from_pretrained` with the url of a file (here https://dl.fbaipublicfiles.com/fair-esm/models/esmfold_3B_v1.pt) is deprecated and won't be possible anymore in v5 of Transformers. You should host your file on the Hub (hf.co) instead and use the repository ID. Note that this is not compatible with the caching system (your file will be downloaded at each execution) or multiple processes (each process will download the file in a different temporary file).
  f"Using `from_pretrained` with the url of a file (here {url}) is deprecated and won't be possible anymore in"
```<|||||>Yes, you should use the repo ID from the Hub.<|||||>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.<|||||>adding git pull to the user.bat file fixed the issue for me, turns out automatic 1111 was out of date ( incase anyone else having same issue and sees this ) 
