#7471 model 'qwen2.5:7b-instruct' not foundhttp://127.0.0.1:11434/v1

120.230**1 Posted at: 1 hour ago

model 'qwen2.5:7b-instruct' not found
http://127.0.0.1:11434/v1
{'model': 'qwen2.5:7b-instruct', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 4096}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 77, in _item_task
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.NotFoundError: Error code: 404 - {'error': {'message': "model 'qwen2.5:7b-instruct' not found", 'type': 'not_found_error', 'param': None, 'code': None}}

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

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 63, in run
File "videotrans\translator\_base.py", line 68, in run
File "videotrans\translator\_base.py", line 107, in _run_text
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 82, in _item_task
videotrans.configure.excepts.StopTask: model 'qwen2.5:7b-instruct' not found
http://127.0.0.1:11434/v1
{'model': 'qwen2.5:7b-instruct', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 4096}


=
system:Windows-10-10.0.22621-SP0
version:v4.07
frozen:True
language:zh
root_dir:E:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因是:你使用的本地 Ollama 服务(http://127.0.0.1:11434/v1)中不存在名为 qwen2.5:7b-instruct 的模型,导致调用返回 404(model not found)。该模型名称与 Ollama 官方命名规范不符。

解决方案:

  1. 打开 CMD/终端,执行 ollama list 查看本地实际已下载的模型名称,核对真实名称(Ollama 中 Qwen2.5 7B 通常为 qwen2.5:7b,而非 qwen2.5:7b-instruct)。
  2. 若本地没有该模型,执行 ollama pull qwen2.5:7b 下载。
  3. 回到软件中,将翻译渠道(兼容AI/本地模型)里填写的模型名称改为 ollama list 中显示的确切名称,确保一字不差。
  4. 保存后重新测试。

补充说明:

  • 你当前版本为 v4.07,最新版本为 v4.12,建议升级,但此报错与版本无关,根源是模型名称不匹配。
  • 若使用本地小模型(7B 级),其指令跟随能力较弱,翻译时易出现空白行或输出提示词等问题,建议参考知识库提示词精简方法处理。

请查阅相关文档:

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