pretrained_models/CosyVoice3-0.5B/cosyvoice.yaml not found!
使用Cosyvoice3遇到的问题
执行命令: cd runtime/python/grpc python server.py --port 50000 --max_conc 4 --model_dir ../../../pretrained_models/CosyVoice3-0.5B
提示: 找不到CosyVoice3-0.5B里的cosyvoice.yaml和cosyvoice2.yaml
错误: 2025-12-16 16:45:18,017 - modelscope - INFO - PyTorch version 2.5.1 Found. 2025-12-16 16:45:18,017 - modelscope - INFO - Loading ast index from /home/aiworker/.cache/modelscope/ast_indexer 2025-12-16 16:45:18,046 - modelscope - INFO - Loading done! Current index file version is 1.15.0, with md5 462ec987b6c7eaade610e9ae57675b43 and a total number of 980 components indexed failed to import ttsfrd, use wetext instead Traceback (most recent call last): File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/server.py", line 37, in init self.cosyvoice = CosyVoice(args.model_dir, trt_concurrent=args.max_conc) File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/../../../cosyvoice/cli/cosyvoice.py", line 36, in init raise ValueError('{} not found!'.format(hyper_yaml_path)) ValueError: ../../../pretrained_models/CosyVoice3-0.5B/cosyvoice.yaml not found!
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/server.py", line 40, in init self.cosyvoice = CosyVoice2(args.model_dir, trt_concurrent=args.max_conc) File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/../../../cosyvoice/cli/cosyvoice.py", line 148, in init raise ValueError('{} not found!'.format(hyper_yaml_path)) ValueError: ../../../pretrained_models/CosyVoice3-0.5B/cosyvoice2.yaml not found!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/server.py", line 96, in
使用Cosyvoice3遇到的问题
执行命令: cd runtime/python/grpc python server.py --port 50000 --max_conc 4 --model_dir ../../../pretrained_models/CosyVoice3-0.5B
提示: 找不到CosyVoice3-0.5B里的cosyvoice.yaml和cosyvoice2.yaml
错误: 2025-12-16 16:45:18,017 - modelscope - INFO - PyTorch version 2.5.1 Found. 2025-12-16 16:45:18,017 - modelscope - INFO - Loading ast index from /home/aiworker/.cache/modelscope/ast_indexer 2025-12-16 16:45:18,046 - modelscope - INFO - Loading done! Current index file version is 1.15.0, with md5 462ec987b6c7eaade610e9ae57675b43 and a total number of 980 components indexed failed to import ttsfrd, use wetext instead Traceback (most recent call last): File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/server.py", line 37, in init self.cosyvoice = CosyVoice(args.model_dir, trt_concurrent=args.max_conc) File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/../../../cosyvoice/cli/cosyvoice.py", line 36, in init raise ValueError('{} not found!'.format(hyper_yaml_path)) ValueError: ../../../pretrained_models/CosyVoice3-0.5B/cosyvoice.yaml not found!
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/server.py", line 40, in init self.cosyvoice = CosyVoice2(args.model_dir, trt_concurrent=args.max_conc) File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/../../../cosyvoice/cli/cosyvoice.py", line 148, in init raise ValueError('{} not found!'.format(hyper_yaml_path)) ValueError: ../../../pretrained_models/CosyVoice3-0.5B/cosyvoice2.yaml not found!
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/server.py", line 96, in main() File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/server.py", line 76, in main cosyvoice_pb2_grpc.add_CosyVoiceServicer_to_server(CosyVoiceServiceImpl(args), grpcServer) File "/media/data/hys/CosyVoice-v3/runtime/python/grpc/server.py", line 42, in init raise TypeError('no valid model_type!') TypeError: no valid model_type!
如果是cosyvoice3,不应该对应的是cosyvoice3.yaml吗?而且模型的文件夹应该叫Fun-CosyVoice3-0.5B而不是CosyVoice3-0.5B吧
Fun-CosyVoice3-0.5B这个地方为了方便,改成了CosyVoice3-0.5B,用原来的也可以。cosyvoice3.yaml,这个地方确实没提示找不到cosyvoice3.yaml,因为有这个文件,它提示的是找不到1和2,确实是这样报错的,你看看我的报错信息
@longglecc
这个问题在使用cosyvoice2的时候也存在,它提示找不到cosyvoice.yaml
cosyvoice2 时,这个文件应该是 cosyvoice2.yaml
cosyvoice3 时,应该是这个文件
@double12gzh
代码问题,向我这样改下代码: