FunAudioLLM / CosyVoice

Multi-lingual large voice generation model, providing inference, training and deployment full-stack ability.
https://funaudiollm.github.io/
Apache License 2.0
6.35k stars 679 forks source link

TransformerLM.__init__() missing 1 required positional argument: 'sampling' #334

Open codingl2k1 opened 2 months ago

codingl2k1 commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

Using the latest cosyvoice code to load the model failed:

TypeError: ('Invalid argument to class cosyvoice.llm.llm.TransformerLM', "TransformerLM.__init__() missing 1 required positional argument: 'sampling'")

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

zhangdxchn commented 2 months ago

Re-download Model. Try it. work for me.

# SDK模型下载
from modelscope import snapshot_download
snapshot_download('iic/CosyVoice-300M', local_dir='pretrained_models/CosyVoice-300M')
snapshot_download('iic/CosyVoice-300M-SFT', local_dir='pretrained_models/CosyVoice-300M-SFT')
snapshot_download('iic/CosyVoice-300M-Instruct', local_dir='pretrained_models/CosyVoice-300M-Instruct')
snapshot_download('iic/CosyVoice-ttsfrd', local_dir='pretrained_models/CosyVoice-ttsfrd')
codingl2k1 commented 2 months ago

Re-download Model. Try it. work for me.

# SDK模型下载
from modelscope import snapshot_download
snapshot_download('iic/CosyVoice-300M', local_dir='pretrained_models/CosyVoice-300M')
snapshot_download('iic/CosyVoice-300M-SFT', local_dir='pretrained_models/CosyVoice-300M-SFT')
snapshot_download('iic/CosyVoice-300M-Instruct', local_dir='pretrained_models/CosyVoice-300M-Instruct')
snapshot_download('iic/CosyVoice-ttsfrd', local_dir='pretrained_models/CosyVoice-ttsfrd')

Any updates on the models in huggingface?

codingl2k1 commented 2 months ago

The models on huggingface are outdated. image

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.