求助!windows平台下载llama3模型报错问题! #378
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#378
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
老师你好,
我在操作“中文llama3 仿openai api 实战”那节课所讲的内容,在windows平台利用modelscope download --model ChineseAlpacaGroup/llama-3-chinese-8b-instruct-v3命令下载llama3模型时,连续几次都是在下载到97%的时候报错,又不能用screen的方式下载,我的问题是window平台下载模型有没有更好的办法,多谢!
报错信息如下:
n.HTTPSConnection object at 0x00000211E323E220>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) will retry
2024-11-13 16:35:45,727 - modelscope - WARNING - Downloading: C:\Users\yu.cache\modelscope\hub._____temp\ChineseAlpacaGroup\llama-3-chinese-8b-instruct-v3\model-00003-of-00004.safetensors failed, reason: HTTPSConnectionPool(host='www.modelscope.cn', port=443): Max retries exceeded with url: /api/v1/models/ChineseAlpacaGroup/llama-3-chinese-8b-instruct-v3/repo?Revision=master&FilePath=model-00003-of-00004.safetensors (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000211E321F9D0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) will retry
Downloading [model-00003-of-00004.safetensors]: 97%|████████████████████████████ | 4.42G/4.58G [16:38<00:26, 6.28MB/s]Traceback (most recent call last):
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\site-packages\urllib3\response.py", line 444, in _error_catcher
yield
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\site-packages\urllib3\response.py", line 567, in read
data = self._fp_read(amt) if not fp_closed else b""
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\site-packages\urllib3\response.py", line 533, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\http\client.py", line 454, in read
n = self.readinto(b)
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\http\client.py", line 498, in readinto
n = self.fp.readinto(b)
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\ssl.py", line 1099, 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 "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\site-packages\requests\models.py", line 816, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\site-packages\urllib3\response.py", line 628, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\site-packages\urllib3\response.py", line 593, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\contextlib.py", line 131, in exit
self.gen.throw(type, value, traceback)
File "C:\Users\yu\anaconda3\envs\chinese_llama_alpaca_3\lib\site-packages\urllib3\response.py", line 449, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='www.modelscope.cn', port=443): Read timed out.
这个不是windows或者linux的问题,这个是你的网络问题,可以尝试换一个网速更稳定,速度更快的环境再下载试试。
换了个网络下载成功,多谢ray老师。