赞
踩
以上图为例,下载chatglm-6b模型:
import os
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
from huggingface_hub import snapshot_download
# 替换为自己的存储路径
model_path = "chatglm-6b"
snapshot_download(
repo_id="THUDM/chatglm-6b",
local_dir=model_path,
max_workers=8
)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。