下载 huggingface 的模型报错:
huggingface_hub.errors.LocalEntryNotFoundError: An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the specified revision on the local disk. Please check your internet connection and try again.
运行命令:
huggingface-cli download --resume-download BAAI/bge-m3 --local-dir ./bge-m3
清一下缓存,然后再下载即可:
# 删除Hugging Face的本地缓存(Windows)
rm -rf %USERPROFILE%\.cache\huggingface\hub\models--BAAI--bge-m3
# 或者(Linux/Mac)
rm -rf ~/.cache/huggingface/hub/models--BAAI--bge-m3