How to download a ckpt model

These ckpt files are huge (at least 2GB and usually 4GB, they can reach up to  8GB) 

First method:

1. An easy way to get them inside of a google colab

by adding these commands inside a code snipet:

!git lfs install
!git clone https://huggingface.co/WarriorMama777/OrangeMixs

git lfs install is required to download file heavier than 100MB

and the clone command is a way to copy the huggingface.co repository 

in this example the OrangeMixs model

2. Alternative way

Using the huggingface-hub library for Python

!pip install huggingface-hub
from huggingface_hub import hf_hub_download
hf_hub_download(repo_id="WarriorMama777/OrangeMixs", filename="VAEs/orangemix.vae.pt", cache_dir="./")



No comments:

Post a Comment

Related Posts with Thumbnails