#7273 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

156.224**4 Posted at: 48 minutes ago

自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 127, in iter
File "httpcore\_sync\connection_pool.py", line 367, in iter
File "httpcore\_sync\connection_pool.py", line 363, in iter
File "httpcore\_sync\http11.py", line 349, in iter
File "httpcore\_sync\http11.py", line 341, in iter
File "httpcore\_sync\http11.py", line 210, in _receive_response_body
File "httpcore\_sync\http11.py", line 220, in _receive_event
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.RemoteProtocolError: peer closed connection without sending complete message body (received 2982095581 bytes, expected 4077072784)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\help_down.py", line
......
_hub\file_download.py", line 1427, in _hf_hub_download_to_local_dir

_download_to_tmp_and_move(

File "huggingface_hub\file_download.py", line 1858, in _download_to_tmp_and_move

http_get(

File "videotrans\util\help_down.py", line 109, in _patched_http_get
File "huggingface_hub\utils\_validators.py", line 88, in _inner_fn

return fn(*args, **kwargs)

File "huggingface_hub\file_download.py", line 421, in http_get

for chunk in response.iter_bytes(chunk_size=constants.DOWNLOAD_CHUNK_SIZE):

File "httpx\_models.py", line 897, in iter_bytes
File "httpx\_models.py", line 951, in iter_raw
File "httpx\_client.py", line 153, in iter
File "httpx\_transports\default.py", line 126, in iter
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.RemoteProtocolError: peer closed connection without sending complete message body (received 2982095581 bytes, expected 4077072784)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 63, in run
File "videotrans\translator\_hymt2.py", line 22, in _download
File "videotrans\util\help_down.py", line 168, in check_and_down_hf
videotrans.configure.excepts.DownloadModelsError: 自动下载模型失败,你可以点击 【查看帮助教程】 了解如何手动下载

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: I:/字幕/20/20.mp3,
输出结果保存到文件夹: I:/字幕/20/新建文件夹/20-mp3,
临时文件夹: I:/翻译/tmp/27788/ebed514807
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:Whisper.cpp(Win内置), ggml-large-v3.bin, 发音语言: 韩语, 断句方式:默认断句
翻译渠道:Hy-MT2-1.8B(内置),原始语言:韩语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.19045-SP0
version:v4.10
frozen:True
language:zh
root_dir:I:/翻译

1 Replies

#1 DeepSeek reply at 48 minutes ago

下载大模型文件时连接中断导致的失败。报错显示已接收约 2.98GB(预期约 4.08GB)时被对端关闭连接。

这是因为 Hy-MT2-1.8B 模型位于 huggingface.co,国内访问需要科学上网,即使使用了代理,长时间下载大文件不稳定仍会中断。

解决方案(手动下载):

  1. 下载模型文件:访问 https://huggingface.co/tencent/Hy-MT2-1.8B/tree/main,下载该页面所有文件。
  2. 放置到指定位置:将下载的所有文件复制到:

    I:/翻译/models/models--tencent--Hy-MT2-1.8B

    I:/翻译 是你的软件根目录,即 sp.exe 所在文件夹)

  3. 注意事项

    • 确保所有文件名与网页上完全一致,若浏览器自动重命名为 model(2).safetensors 之类,需改回原名。
    • 若已有残缺文件,先删除干净再重新放入。
    • 放置完成后重启软件再执行翻译。

或者临时换用其他翻译渠道:翻译渠道可直接改用 DeepSeek(需在 菜单 → 翻译设置 → DeepSeek 填入 API Key),无需下载本地模型,且对韩→中翻译质量更好。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource