1.进入命令行
2.pip安装modelscope
pip install modelscope
3.进入python
python
4.引入snapshot_download
from modelscope import snapshot_download
5. 下载模型,cache_dir是大模型的保存路径
model_dir = snapshot_download("ZhipuAI/chatglm3-6b-32k",cache_dir="/root/models", revision = "v1.0.0")