fromhuggingface_hubimportsnapshot_download# 下载模型snapshot_download(repo_id='THUDM/chatglm2-6b',repo_type="model",# 可选 [dataset,model]local_dir='/home/dev/datasets/glm',# 下载到本地的路径resume_download=True,# 断点续传)# 下载数据snapshot_download(repo_id='BAAI/COIG-PC',repo_type="...
修改下载源 export HF_ENDPOINT=hf-mirror.com download datatsets HF_ENDPOINT=https://hf-mirror.com \ huggingface-cli download \ --repo-type dataset \ --force-download \ --resume-download \ --local-dir-use-symlinks False \ Skywork/SkyPile-150B \ --local-dir Skywork/SkyPile-150B downloa...