hf_down.py 307 Bytes
Newer Older
chenpangpang's avatar
chenpangpang committed
1
2
3
4
5
# pip install huggingface-cli
import os
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'

model_list = [
chenpangpang's avatar
chenpangpang committed
6
        "distil-whisper/large-v2"
chenpangpang's avatar
chenpangpang committed
7
8
9
10
]

for model_path in model_list:
    os.system(f"huggingface-cli download --resume-download  {model_path} --local-dir ./{model_path} --local-dir-use-symlinks False")