youtu-graphrag icon indicating copy to clipboard operation
youtu-graphrag copied to clipboard

无法访问外网,all-MiniLM-L6-v2错误如何解决

Open duxingxia081 opened this issue 2 months ago • 3 comments

一直报以下错误,我如何解决,服务器是无法访问https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/config.json Retrying in 4s [Retry 3/5]. '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /sentence-transformers/all-MiniLM-L6-v2/resolve/main/config.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c13bee60>: Failed to establish a new connection: [Errno 101] Network is unreachable'))"), '(Request ID: 2ac74265-6c95-46a4-9364-126b108f6406)')' thrown while requesting HEAD https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/config.json

duxingxia081 avatar Sep 28 '25 09:09 duxingxia081

Using mirror service,set environment variables HF_ENDPOINT=https://hf-mirror.com

thundax-lyp avatar Sep 28 '25 10:09 thundax-lyp

You can manually download the model from modelscope/huggingface, and then set the "embedding model" in base_config.yaml to be your local model path. As for the setup_env.sh, you can open up the script, manually execute the installing parts and skip the huggingface downloading part.

tree2601 avatar Sep 29 '25 01:09 tree2601

使用镜像就可以了

wyw828-code avatar Oct 10 '25 01:10 wyw828-code