从 Hugging Face 与 ModelScope 下载模型

记录使用 Hugging Face CLI 和 ModelScope 下载模型的常用命令。

hugging face

pip install -U huggingface_hub

hf download Qwen/Qwen2.5-7B-Instruct --local-dir ./Qwen2.5-7B-Instruct

ModelScope

pip install modelscope

modelscope download --model Qwen/Qwen2.5-7B-Instruct --local_dir "D:/acode/models/"