-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
运行streamlit run main.py提示ModuleNotFoundError: No module named 'huggingface_hub.inference._text_generation' #1074
Comments
huggingface_hub根模型推理应该没关系吧 |
我看到huggingface_hub==0.19.4的名称是huggingface_hub,而huggingface-hub==0.22.2的名称是huggingface-hub,看来软件包有一定的变化,如果版本高,确实提示如此,降级到requirements.txt的最低要求,就可以了。 |
我也遇到了这个问题,huggingface_hub降到0.19.4可以解决这个问题,可以看到0.22.2版本没有_text_generation这个文件 |
python3.12
Collecting usage statistics. To deactivate, set browser.gatherUsageStats to false. 2024-07-10 10:04:38.539 Did not auto detect external IP. You can now view your Streamlit app in your browser. Local URL: http://localhost:8501 2024-07-10 10:04:58.096 Uncaught app exception |
你解决了吗 |
System Info / 系統信息
创建的conda环境完全按照requirements.txt安装环境,查看huggingface-hub为0.22.2,提示如题目的报错信息,于是调整为:
huggingface_hub==0.19.4,顺利运行。
Who can help? / 谁可以帮助到您?
No response
Information / 问题信息
Reproduction / 复现过程
创建的conda环境完全按照requirements.txt安装环境,查看huggingface-hub为0.22.2,提示如题目的报错信息,于是调整为:
huggingface_hub==0.19.4,顺利运行。
Expected behavior / 期待表现
能否不对huggingface版本有依赖,尤其是降级版本。
The text was updated successfully, but these errors were encountered: