ymcui / Chinese-LLaMA-Alpaca-2

中文LLaMA-2 & Alpaca-2大模型二期项目 + 64K超长上下文模型 (Chinese LLaMA-2 & Alpaca-2 LLMs with 64K long context models)
Apache License 2.0
7.06k stars 578 forks source link

报错import name 'insecure_hashlib' from 'huggingface_hub.utils' #508

Closed Go4miii closed 8 months ago

Go4miii commented 8 months ago

提交前必须检查以下项目

问题类型

None

基础模型

None

操作系统

None

详细描述问题

报错:ImportError: cannot import name 'insecure_hashlib' from 'huggingface_hub.utils' (/root/anaconda3/envs/alpacallama/lib/python3.10/site-packages/huggingface_hub/utils/init.py) ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 227702) of binary: /root/anaconda3/envs/alpacallama/bin/python3.10

我的huggingface_hub版本是0.17.3,请问这个报错怎么解决?

依赖情况(代码类问题务必提供)

No response

运行日志或截图

No response