1. Click to enter the required model storage location in filebrowser, such as ComfyUI/models/checkpoints

Untitled

  1. Click the three dots in the upper right corner, click toggle shell to open the command line

Untitled

  1. Confirm the current directory through pwd, ls

    Untitled

  2. Download the corresponding model through the wget command and specify the name

    1. Get the model connection

      • civitai.com, make sure the link has the type=xxx&format=xxx in it. If it doesn't, then check if you are copying the right link (the one in file section with button "Download").

        Sometime it is couple of cells down,

        Screenshot 2024-05-07 at 8.44.26 PM.png

      • Huggingface, RIGHT click on the download button and select “Copy Link Address”

      Untitled

    b. Use wget to download the model

    This is the basic usage. For more information, please refer to https://www.gnu.org/software/wget/manual/.

    MAKE SURE YOU READ ALL NOTE #1, #2, #3 before you run the following wget command.

    # make sure THE_FILE_NAME_YOU_WANT_TO_SAVE only contains alphanumerical, dot, underscore and hyphen
    # make sure you don't have space in the THE_FILE_NAME_YOU_WANT_TO_SAVE
    wget -b "PUT_LINK_HERE" -O THE_FILE_NAME_YOU_WANT_TO_SAVE
    
    # For example
    wget -b "<https://civitai.com/api/download/models/344398?type=Model&format=SafeTensor&size=pruned&fp=fp16>" -O photonLCM_v10.safetensors
    

    Note #1

    Make sure to use -b with wget to run it in the background, otherwise there may be timeout issues.

    Note #2

    For Civitai models, please make sure your link looks like this, double quoted, "https://civitai.com/api/download/models/261911?type=Model&format=SafeTensor", make sure it has the type=Model&format=SafeTensor in it. If it doesn't, then check if you are copying the right address (the one in file section with button "Download")

    Note #3

    For certain models/loras, Civitai will require an token in the download link. You will notice an error in the wget-log file like “HTTP request sent, awaiting response... 401 Unauthorized Username/Password Authentication Failed.”. Please follow the Civitai token guide to get an API token and run the following command one more time,

    # replace the following xxxx with your token
    wget -b "PUT_LINK_HERE&token=xxxx" -O THE_FILE_NAME_YOU_WANT_TO_SAVE
    
    # for example, replace the "xxxx" with your token
    wget -b "<https://civitai.com/api/download/models/344398?type=Model&format=SafeTensor&size=pruned&fp=fp16&token=xxxx>" -O photonLCM_v10.safetensors
    

    Example

    civitai.com

    Screenshot 2024-03-01 at 17.35.46.png

    huggingface

    Untitled

  3. check **wget-log** for download progress

    Enter the directory where you downloaded the model and look for **wget-log** to check the progress (double click on it to open, command + down_arrow to go to the bottom of the file).

    Example

    Untitled

    Screenshot 2024-03-01 at 17.48.17.png

    1. Once the download is done, make sure you refresh the browser to see the new models in ComfyUI interface.