Skip to content

加载CosyVoice模型失败 #3221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 3 tasks
XUANYUANRuins opened this issue Apr 10, 2025 · 0 comments
Open
1 of 3 tasks

加载CosyVoice模型失败 #3221

XUANYUANRuins opened this issue Apr 10, 2025 · 0 comments
Milestone

Comments

@XUANYUANRuins
Copy link

System Info / 系統信息

xinference的nightly-main-cpu版本加载CosyVoice失败,报错如下:
Launch model name: CosyVoice-300M with kwargs: {}
Traceback (most recent call last):
File "/opt/conda/bin/xinference", line 8, in
sys.exit(cli())
^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/xinference/deploy/cmdline.py", line 902, in model_launch
model_uid = client.launch_model(
^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/xinference/client/restful/restful_client.py", line 959, in launch_model
raise RuntimeError(
RuntimeError: Failed to launch model, detail: [address=0.0.0.0:42505, pid=1062] No module named 'tn.english'

Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?

  • docker / docker
  • pip install / 通过 pip install 安装
  • installation from source / 从源码安装

Version info / 版本信息

xinference的nightly-main-cpu版本

The command used to start Xinference / 用以启动 xinference 的命令

docker exec -it xinference /bin/bash 进入容器内执行以下命令:
xinference launch -t audio -n CosyVoice-300M

Reproduction / 复现过程

  1. docker exec -it xinference /bin/bash 进入xinference容器内
  2. 执行加载模型命令:xinference launch -t audio -n CosyVoice-300M
  3. 报错:RuntimeError: Failed to launch model, detail: [address=0.0.0.0:42505, pid=1062] No module named 'tn.english'

Expected behavior / 期待表现

正常加载CosyVoice模型

@XprobeBot XprobeBot added this to the v1.x milestone Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants