下载 phi3 模型
安装 huggingface_hub 命令行工具
如果您在国内,请添加环境变量 HF_ENDPOINT=https://hf-mirror.com。
export HF_ENDPOINT=https://hf-mirror.com
pip install huggingface_hub -U
登录 huggingface_hub
- 请将下面的
<hf_xxxxxxxxxxxxxxx>
替换为您自己在 huggingface_hub 的 token: Huggingface 令牌设置
huggingface-cli login --token <hf_xxxxxxxxxxxxxxx>
注意:请保密您的 token!谁顺走了发点儿不好的东西你就狒狒了.
使用 huggingface-cli 下载 phi3 模型
cd models/
huggingface-cli download microsoft/Phi-3-mini-4k-instruct --resume-download --local-dir ../models/microsoft/Phi-3-mini-4k-instruct