jianchang512 / ChatTTS-ui

一个简单的本地网页界面,使用ChatTTS将文字合成为语音,同时支持对外提供API接口。A simple native web interface that uses ChatTTS to synthesize text into speech, along with support for external API interfaces.
https://pyvideotrans.com
Other
5.03k stars 548 forks source link

mac python3.10 报错 lamaModel.forward() got an unexpected keyword argument 'cache_position' #84

Open cy486 opened 4 weeks ago

cy486 commented 4 weeks ago

TypeError: LlamaModel.forward() got an unexpected keyword argument 'cache_position'

cy486 commented 4 weeks ago

解决了 缺少transformers 环境 https://github.com/huggingface/transformers/blob/main/README_zh-hans.md 执行 conda install conda-forge::transformers 成了

Ansen88 commented 4 weeks ago

我也出现了这个问题,按照上面的方式安装后出现了新的问题(我的系统是 linux): Traceback (most recent call last): File "/home/anlj/work/src/ChatTTS-ui-main/app.py", line 14, in import ChatTTS File "/home/anlj/work/src/ChatTTS-ui-main/ChatTTS/init.py", line 1, in from .core import Chat File "/home/anlj/work/src/ChatTTS-ui-main/ChatTTS/core.py", line 8, in from vocos import Vocos File "/home/anlj/.local/lib/python3.11/site-packages/vocos/init.py", line 1, in from vocos.pretrained import Vocos File "/home/anlj/.local/lib/python3.11/site-packages/vocos/pretrained.py", line 7, in from huggingface_hub import hf_hub_download ImportError: cannot import name 'hf_hub_download' from 'huggingface_hub' (/home/anlj/.local/lib/python3.11/site-packages/huggingface_hub/init.py)