HunyuanDiT
HunyuanDiT copied to clipboard
There is an download error came out when in China
Thanks for your error report and we appreciate it a lot.
Checklist
- I have searched related issues but cannot get the expected help.
- The bug has not been fixed in the latest version.
Describe the bug When I downloaded the model in China, an error show up A clear and concise description of what the bug is. Traceback (most recent call last):███ | 5.10G/6.07G [45:43<14:52:03, 18.1kB/s] File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 748, in _error_catcher yield File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 873, in _raw_read data = self._fp_read(amt, read1=read1) if not fp_closed else b"" File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 856, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/http/client.py", line 459, in read n = self.readinto(b) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/http/client.py", line 503, in readinto n = self.fp.readinto(b) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) socket.timeout: The read operation timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/requests/models.py", line 820, in generate yield from self.raw.stream(chunk_size, decode_content=True) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 1060, in stream data = self.read(amt=amt, decode_content=decode_content) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 949, in read data = self._raw_read(amt) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 902, in _raw_read self._fp.close() File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/contextlib.py", line 131, in exit self.gen.throw(type, value, traceback) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 753, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type] urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='cdn-lfs-us-1.hf-mirror.com', port=443): Read timed out.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 539, in http_get for chunk in r.iter_content(chunk_size=DOWNLOAD_CHUNK_SIZE): File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/requests/models.py", line 826, in generate raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cdn-lfs-us-1.hf-mirror.com', port=443): Read timed out.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 748, in _error_catcher yield File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 894, in _raw_read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) urllib3.exceptions.IncompleteRead: IncompleteRead(709376326 bytes read, 963687976 more expected)
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/requests/models.py", line 820, in generate yield from self.raw.stream(chunk_size, decode_content=True) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 1060, in stream data = self.read(amt=amt, decode_content=decode_content) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 977, in read data = self._raw_read(amt) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 902, in _raw_read self._fp.close() File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/contextlib.py", line 131, in exit self.gen.throw(type, value, traceback) File "/home/xuym/miniconda3/envs/HunyuanDiT/lib/python3.8/site-packages/urllib3/response.py", line 772, in _error_catcher raise ProtocolError(arg, e) from e urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(709376326 bytes read, 963687976 more expected)', IncompleteRead(709376326 bytes read, 963687976 more expected))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/xuym/miniconda3/envs/HunyuanDiT/bin/huggingface-cli", line 8, in
Reproduction
- What command or script did you run? HF_ENDPOINT=https://hf-mirror.com huggingface-cli download Tencent-Hunyuan/HunyuanDiT --local-dir ./ckpts
Thanks for spending time reading my issue, hope you could fix this.