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

cannot import name 'HFTransformerChat' from 'lagent.llms.huggingface #24

Closed
xjwhy opened this issue Feb 19, 2024 · 2 comments
Closed

cannot import name 'HFTransformerChat' from 'lagent.llms.huggingface #24

xjwhy opened this issue Feb 19, 2024 · 2 comments

Comments

@xjwhy
Copy link

xjwhy commented Feb 19, 2024

作者你好,跑v0.2代码的时候,报上面的错误,我看lagent里的确没有 HFTransformerChat https://github.com/InternLM/lagent/blob/main/lagent/llms/huggingface.py,如何解决?

@zehuichen123
Copy link
Collaborator

zehuichen123 commented Feb 19, 2024

目前的code还没有pr到lagent里面 在这个branch上(InternLM/lagent#157) 预计今天会合进去~如果想直接用的话可以git clone lagent,然后checkout到czh/teval分支上pip install -e .先用着~

@zehuichen123
Copy link
Collaborator

@xjwhy 已经合入了~

@xjwhy xjwhy closed this as completed Feb 20, 2024
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