1、从Huggingface下载

安装工具包

1
pip install huggingface_hub

设置镜像站点

1
export HF_ENDPOINT="https://hf-mirror.com"

开始下载

1
2
3
4
5
huggingface-cli download \
--repo-type model \
--local-dir ./Llama-3.2-3B-Chinese \
spxiong/Llama-3.2-3B-Chinese-Instruct

2、从魔搭下载

1
2
pip install modelscope
python3 -c "from modelscope import snapshot_download;snapshot_download('Qwen/Qwen2.5-3B-Instruct', cache_dir='./models/')"