c111 / download_model.py
Shengqian12138's picture
Add files using upload-large-folder tool
90b4c5e verified
Raw
History Blame Contribute Delete
929 Bytes
from modelscope import snapshot_download
# 目标模型 ID (根据你的描述应该是这个最新的 Qwen3 MoE 模型)
model_id = 'Qwen/Qwen3-8B'
# 设置缓存目录为目标路径的“父目录”
# ModelScope 会自动在里面创建 /Qwen/Qwen3-235B-A22B-Instruct-2507
download_dir = '/mnt/tidal-alsh01/usr/dawo/dawo/model_ori'
print(f"开始下载 {model_id}{download_dir} ...")
# python3 -m model_tools download --model_name DeepSeek-V3.2 --version 1 --subversion 1764759378 --user qinshengqian --token QST9280db23590123fbe42de551de0971ce --save_path /mnt/tidal-alsh01/usr/dawo/dawo/model_ori/deepseek-ai/DeepSeek-V3.2-fp8
try:
path = snapshot_download(
model_id,
cache_dir=download_dir,
#以此参数确保如果断网可以断点续传
revision='master'
)
print(f"下载成功!模型保存路径: {path}")
except Exception as e:
print(f"下载出错: {e}")