Create download_model.py

This commit is contained in:
guanjihuan 2024-03-19 07:41:51 +08:00
parent 6c24181524
commit bcb4e89f80

5
download_model.py Normal file
View File

@ -0,0 +1,5 @@
# pip install --upgrade huggingface_hub
from huggingface_hub import snapshot_download
snapshot_download(repo_id="THUDM/chatglm3-6b-32k", local_dir = './THUDM/chatglm3-6b-32k', local_dir_use_symlinks=False)