使用Hugging Face平台、魔搭社区平台(可选)和魔乐社区平台(可选)下载文档中提到的模型(至少需要下载config.json文件、model.safetensors.index.json文件),请在必要的步骤以及结果当中截图。
在开发机中,使用pip
安装modelscope
库:
pip install modelscope
然后使用modelscope
从魔搭社区下载InternLM2.5-7B-Chat
仓库中除了模型权重之外的文件,存放在/root/internlm2_5-7b-chat
目录:
modelscope download \
--model Shanghai_AI_Laboratory/internlm2_5-7b-chat \
--local_dir /root/internlm2_5-7b-chat \
--exclude *.safetensors
使用ls -lha
名称查看internlm2_5-7b-chat
目录:
ls -lha /root/internlm2_5-7b-chat/
任务完成!