# Using proxy to upload models

**URL:** <https://discuss.huggingface.co/t/using-proxy-to-upload-models/1946>\
**Category:** 🤗Transformers\
**Created:** [November 9, 2020, 9:09am UTC](https://discuss.huggingface.co/t/using-proxy-to-upload-models/1946 "2020-11-09T09:09:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![silver](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/silver/32/18252_2.png) [@silver](https://discuss.huggingface.co/u/silver)\
**Post date:** [November 9, 2020, 9:09am UTC](https://discuss.huggingface.co/t/using-proxy-to-upload-models/1946/1 "2020-11-09T09:09:26Z")

</div>

Hi

I am trying to upload our model using the CLI command.

However, my computer need a proxy to connect S3 server (because of the GFW):

`requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /models.huggingface.co/bert/ ***** `

Is there anyway to set a proxy?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![thomwolf](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thomwolf/32/2198_2.png) [@thomwolf](https://discuss.huggingface.co/u/thomwolf)\
**Post date:** [November 12, 2020, 1:10pm UTC](https://discuss.huggingface.co/t/using-proxy-to-upload-models/1946/2 "2020-11-12T13:10:32Z")

</div>

We have updated the way models are uploaded, please read the detailed announcement here: [[Announcement] Model Versioning: Upcoming changes to the model hub](https://discuss.huggingface.co/t/announcement-model-versioning-upcoming-changes-to-the-model-hub/1914/27)

---

<div class="post-metadata">

**Author:** ![leemgs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/leemgs/32/12439_2.png) [@leemgs](https://discuss.huggingface.co/u/leemgs)\
**Post date:** [November 7, 2022, 7:14am UTC](https://discuss.huggingface.co/t/using-proxy-to-upload-models/1946/3 "2022-11-07T07:14:15Z")

</div>

BTW, can we use proxy address officially to connect the HuggingFace hub?  
In my case, I got the SSLError issue with my proxy address.

```auto
(deepspeed) geunsik-lim@ai02:~/qtlab$ cat ./test_debian_csrc_dataset.py
#!/usr/bin/env python
from datasets import load_dataset
dataset = load_dataset("moyix/debian_csrc")
(deepspeed) geunsik-lim@ai02:~/qtlab$
(deepspeed) geunsik-lim@ai02:~/qtlab$
(deepspeed) geunsik-lim@ai02:~/qtlab$ ./test_debian_csrc_dataset.py
Traceback (most recent call last):
  File "/data/home/geunsik-lim/qtlab/./test_debian_csrc_dataset.py", line 6, in <module>
    dataset = load_dataset("moyix/debian_csrc")
  File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1719, in load_dataset
    builder_instance = load_dataset_builder(
  File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1497, in load_dataset_builder
    dataset_module = dataset_module_factory(
  File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1222, in dataset_module_factory
    raise e1 from None
  File "/home/geunsik-lim/anaconda3/envs/deepspeed/lib/python3.10/site-packages/datasets/load.py", line 1179, in dataset_module_factory
    raise ConnectionError(f"Couldn't reach '{path}' on the Hub ({type(e). __name__ })")
ConnectionError: Couldn't reach 'moyix/debian_csrc' on the Hub (SSLError)

```

---

<div class="post-metadata">

**Author:** ![leemgs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/leemgs/32/12439_2.png) [@leemgs](https://discuss.huggingface.co/u/leemgs)\
**Post date:** [November 7, 2022, 7:14am UTC](https://discuss.huggingface.co/t/using-proxy-to-upload-models/1946/4 "2022-11-07T07:14:46Z")

</div>

FYI.

- [Connection error of the HuggingFace’s dataset Hub due to SSLError with proxy · Issue #5207 · huggingface/datasets (github.com)](https://github.com/huggingface/datasets/issues/5207)

---

<div class="post-metadata">

**Author:** ![hadess1702](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hadess1702](https://discuss.huggingface.co/u/hadess1702)\
**Post date:** [October 13, 2023, 8:21am UTC](https://discuss.huggingface.co/t/using-proxy-to-upload-models/1946/5 "2023-10-13T08:21:30Z")

</div>

```
raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})")

```

ConnectionError: Couldn’t reach [http://cs.stanford.edu/people/alecmgo/trainingandtestdata.zip](http://cs.stanford.edu/people/alecmgo/trainingandtestdata.zip) (error 403)

help me how to fix this
