bugfix
This commit is contained in:
parent
cf40c6d9a5
commit
2ada180581
3
hf-cli/hf-cli
Executable file
3
hf-cli/hf-cli
Executable 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
9
hf-cli/md-dl
Normal 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')
|
||||
|
Loading…
Reference in New Issue
Block a user