This commit is contained in:
yumoqing 2025-06-17 07:52:35 +00:00
parent cf40c6d9a5
commit 2ada180581
2 changed files with 12 additions and 0 deletions

3
hf-cli/hf-cli Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/bash
nohup ~/py3/bin/huggingface-cli download --resume-download $1 --local-dir ~/models/$1 > ~/logs/$$.log &

9
hf-cli/md-dl Normal file
View File

@ -0,0 +1,9 @@
#!/d/ymq/py3/bin/python
import sys
import os
from modelscope.hub.snapshot_download import snapshot_download
home=os.environ['HOME']
path = sys.argv[1]
snapshot_download(path, cache_dir=f'{home}/models')