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

Traceback (most recent call last): from fastchat.conversation import (compute_skip_echo_len, ImportError: cannot import name 'compute_skip_echo_len' from 'fastchat.conversation' (/home/a/miniconda3/envs/rag/lib/python3.9/site-packages/fastchat/conversation.py) #157

Open
shenshaowei opened this issue Mar 22, 2024 · 2 comments

Comments

@shenshaowei
Copy link

(rag) a@a-Super-Server:/media/a/DATA/LangChain-ChatGLM-Webui-master$ python3 app.py
Traceback (most recent call last):
File "/media/a/DATA/LangChain-ChatGLM-Webui-master/app.py", line 16, in
from chatllm import ChatLLM
File "/media/a/DATA/LangChain-ChatGLM-Webui-master/chatllm.py", line 5, in
from fastchat.conversation import (compute_skip_echo_len,
ImportError: cannot import name 'compute_skip_echo_len' from 'fastchat.conversation' (/home/a/miniconda3/envs/rag/lib/python3.9/site-packages/fastchat/conversation.py)
刚刚查看了fastchat,已经没这个库了怎么办

@shenshaowei
Copy link
Author

已经没这个函数了,fastchat这个库conversation.py已经没有compute_skip_echo_len和get_default_conv_template咋搞??

@damon-ldl
Copy link
Contributor

目前项目适配的应该是fschat==0.2.3这个,pip install fschat==0.2.3试试看

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