1.安装依赖
pip install "transformers>=4.36.0" "huggingface_hub>=0.19.0" -i https://pypi.tuna.tsinghua.edu.cn/simple
查看版本, 应该输出 0.36.0
python -c "import huggingface_hub; print(huggingface_hub.__version__)"
2.下载模型
# 无筛选,下载完整模型(推荐新手用)
$env:HF_ENDPOINT="https://hf-mirror.com"
hf download BAAI/bge-large-zh-v1.5 --local-dir ./bge-large-zh-v1.5
1万+

被折叠的 条评论
为什么被折叠?



