下载阿里云模型
2026年06月01日 16:38
from modelscope import snapshot_download
# 指定模型 ID 和本地保存路径
model_dir = snapshot_download(
'qwen/Qwen2.5-7B-Instruct',
cache_dir='./models', # 模型会下载到这里
revision='master'
)
print(f"✅ 模型下载完成,保存路径:{model_dir}")
2026年06月01日 16:38
from modelscope import snapshot_download
# 指定模型 ID 和本地保存路径
model_dir = snapshot_download(
'qwen/Qwen2.5-7B-Instruct',
cache_dir='./models', # 模型会下载到这里
revision='master'
)
print(f"✅ 模型下载完成,保存路径:{model_dir}")