comfyUI相关

 

pip install --upgrade pip

pip install huggingface-cli 

git config --global credential.helper store

huggingface-cli login

 

 

huggingface-cli download adept/fuyu-8b model-00001-of-00002.safetensors --local-dir .

huggingface-cli download adept/fuyu-8b --cache-dir ./path/to/cache

 

 

huggingface-cli download stabilityai/stable-cascade stage_c.safetensors ./

wget -L https://huggingface.co/stabilityai/stable-cascade/resolve/main/stage_b.safetensors?download=true

stabilityai/stable-cascade at main (huggingface.co)

 

 

 

(base) root@VM-0-7-ubuntu:~/ComfyUI/models/vae# huggingface-cli download --help
usage: huggingface-cli <command> [<args>] download [-h] [--repo-type {model,dataset,space}] [--revision REVISION] [--include [INCLUDE ...]] [--exclude [EXCLUDE ...]] [--cache-dir CACHE_DIR]
[--local-dir LOCAL_DIR] [--local-dir-use-symlinks {auto,True,False}] [--force-download] [--resume-download] [--token TOKEN] [--quiet]
repo_id [filenames ...]

positional arguments:
repo_id ID of the repo to download from (e.g. `username/repo-name`).
filenames Files to download (e.g. `config.json`, `data/metadata.jsonl`).

options:
-h, --help show this help message and exit
--repo-type {model,dataset,space}
Type of repo to download from (defaults to 'model').
--revision REVISION An optional Git revision id which can be a branch name, a tag, or a commit hash.
--include [INCLUDE ...]
Glob patterns to match files to download.
--exclude [EXCLUDE ...]
Glob patterns to exclude from files to download.
--cache-dir CACHE_DIR
Path to the directory where to save the downloaded files.
--local-dir LOCAL_DIR
If set, the downloaded file will be placed under this directory either as a symlink (default) or a regular file. Check out
https://huggingface.co/docs/huggingface_hub/guides/download#download-files-to-local-folder for more details.
--local-dir-use-symlinks {auto,True,False}
To be used with `local_dir`. If set to 'auto', the cache directory will be used and the file will be either duplicated or symlinked to the local directory depending on its size. It
set to `True`, a symlink will be created, no matter the file size. If set to `False`, the file will either be duplicated from cache (if already exists) or downloaded from the Hub
and not cached.
--force-download If True, the files will be downloaded even if they are already cached.
--resume-download If True, resume a previously interrupted download.
--token TOKEN A User Access Token generated from https://huggingface.co/settings/tokens
--quiet If True, progress bars are disabled and only the path to the download files is printed.

 

 

huggingface-cli download \
--resume-download meta-llama/Llama-2-7b-hf \
--local-dir meta-llama/Llama-2-7b-hf \
--local-dir-use-symlinks False \
--token hf_*****




Comfy Workflows workflows page

ComfyUI Workflows - Developer Community (openart.ai)

posted @ 2024-02-29 15:12  zyip  阅读(53)  评论(0编辑  收藏  举报