Skip to content
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

安装失败 #31

Closed
jacnmm4 opened this issue Jan 14, 2025 · 3 comments
Closed

安装失败 #31

jacnmm4 opened this issue Jan 14, 2025 · 3 comments

Comments

@jacnmm4
Copy link

jacnmm4 commented Jan 14, 2025

用两台机器安装,后端硬是没装上。。。依赖实在太多

@PaParaZz1
Copy link
Member

能贴一下具体的报错截图么,我们补充一些更详细的库版本信息。另外,你们这边可以考虑使用 docker 么?如果可以的话,我们可以做一个官方后端镜像出来。

@jacnmm4
Copy link
Author

jacnmm4 commented Jan 15, 2025

2025-01-15 14:11:50,824 - main - INFO - Warming up ParaFormerSTTHandler
INFO:main:Warming up ParaFormerSTTHandler
2025-01-15 14:11:52,456 - main - INFO - ParaFormerSTTHandler: warmed up! time: 1.630 s
INFO:main:ParaFormerSTTHandler: warmed up! time: 1.630 s
Traceback (most recent call last):
File "/usr/local/anaconda3/envs/py310-cleans2s/lib/python3.10/site-packages/transformers/utils/hub.py", line 398, in cached_file
resolved_file = hf_hub_download(
File "/usr/local/anaconda3/envs/py310-cleans2s/lib/python3.10/site-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
return f(*args, **kwargs)
File "/usr/local/anaconda3/envs/py310-cleans2s/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 106, in _inner_fn
validate_repo_id(arg_value)
File "/usr/local/anaconda3/envs/py310-cleans2s/lib/python3.10/site-packages/huggingface_hub/utils/validators.py", line 160, in validate_repo_id
raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must use alphanumeric chars or '-', '
', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''.

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

Traceback (most recent call last):
File "/home/chenkangqiang/sts/CosyVoice/CosyVoice/s2s_server_pipeline.py", line 1916, in
main(args)
File "/home/chenkangqiang/sts/CosyVoice/CosyVoice/s2s_server_pipeline.py", line 1719, in main
tts = CosyVoiceTTSHandler(
File "/home/chenkangqiang/sts/CosyVoice/CosyVoice/s2s_server_pipeline.py", line 1485, in init
self.model = CosyVoice(model_name)
File "/home/chenkangqiang/sts/CosyVoice/CosyVoice/cosyvoice/cli/cosyvoice.py", line 35, in init
configs = load_hyperpyyaml(f)
File "/usr/local/anaconda3/envs/py310-cleans2s/lib/python3.10/site-packages/hyperpyyaml/core.py", line 188, in load_hyperpyyaml
hparams = yaml.load(yaml_stream, Loader=loader)
File "/usr/local/anaconda3/envs/py310-cleans2s/lib/python3.10/site-packages/yaml/init.py", line 81, in load
return loader.get_single_data() -------------如何解决,我的模型是在modelscope下载的,并且环境下也连不上huggingface

@PaParaZz1
Copy link
Member

PaParaZz1 commented Jan 26, 2025

你从 modelscope 下载的模型,在你本地的路径是什么?看报错信息是模型路径有问题。另外,你可以单独运行这行 CosyVoice 加载模型的代码(https://github.com/opendilab/CleanS2S/blob/main/backend/s2s_server_pipeline.py#L1485 ),看如何修改让它运行成功。

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