-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
导入huggingface_hub不知道那个版本导入库没有后面的 TextGenerationStreamResponse, Token #1218
Comments
pip install "huggingface_hub<0.22.0" |
用2.22.0之前,之后的代码会更新 |
我也遇到了 |
安装huggingface_hub错误信息: 模型启动报错: 请问这个问题怎么解决呢? |
降级版本,降级到 huggingface-hub==0.19.4 transformers 降级到4.40以下,最新的代码还有这个依赖问题吗 |
composite_demo 还是这样,别的没试 |
ChatGLM3是从github拉取的最新代码,chatglm3-6b是从modelscope拉取的,basic_demo没有问题,openai_api_demo没有问题,composite_demo还是有上述问题,其他demo没有尝试。 最新代码的requirements.txt里面要求了transformers>=4.41.0,晚上我尝试下降级transformers。 感谢回复。 最新代码的requirements.txt里面要求了transformers>=4.41.0,晚上我尝试下降级transformers。 @zRzRzRzRzRzRzR 感谢回复。 |
已经改了依赖,降级一下依赖吧 |
transformers==4.40.0 |
System Info / 系統信息
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Who can help? / 谁可以帮助到您?
File "C:\Users\61397\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "D:\workspace\LegalPyChatGLM\ChatGLM3\composite_demo\main.py", line 10, in
import demo_chat, demo_ci, demo_tool
File "D:\workspace\LegalPyChatGLM\ChatGLM3\composite_demo\demo_chat.py", line 4, in
from client import get_client
File "D:\workspace\LegalPyChatGLM\ChatGLM3\composite_demo\client.py", line 9, in
from huggingface_hub.inference._text_generation import TextGenerationStreamResponse, Token
Information / 问题信息
Reproduction / 复现过程
ModuleNotFoundError: No module named 'huggingface_hub.inference._text_generation'
Traceback:
File "C:\Users\61397\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "D:\workspace\LegalPyChatGLM\ChatGLM3\composite_demo\main.py", line 10, in
import demo_chat, demo_ci, demo_tool
File "D:\workspace\LegalPyChatGLM\ChatGLM3\composite_demo\demo_chat.py", line 4, in
from client import get_client
File "D:\workspace\LegalPyChatGLM\ChatGLM3\composite_demo\client.py", line 9, in
from huggingface_hub.inference._text_generation import TextGenerationStreamResponse, Token 不知道那个版本试了好几个都不行
Expected behavior / 期待表现
ModuleNotFoundError: No module named 'huggingface_hub.inference._text_generation'
Traceback:
File "C:\Users\61397\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "D:\workspace\LegalPyChatGLM\ChatGLM3\composite_demo\main.py", line 10, in
import demo_chat, demo_ci, demo_tool
File "D:\workspace\LegalPyChatGLM\ChatGLM3\composite_demo\demo_chat.py", line 4, in
from client import get_client
File "D:\workspace\LegalPyChatGLM\ChatGLM3\composite_demo\client.py", line 9, in
from huggingface_hub.inference._text_generation import TextGenerationStreamResponse, Token 不知道那个版本试了好几个都不行
The text was updated successfully, but these errors were encountered: