Instructions to use saik0s/comfy_backup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use saik0s/comfy_backup with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="saik0s/comfy_backup", filename="models/text_encoders/Qwen3VL-8B-Uncensored-HauhauCS-Aggressive-Q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use saik0s/comfy_backup with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf saik0s/comfy_backup:Q8_0 # Run inference directly in the terminal: llama cli -hf saik0s/comfy_backup:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf saik0s/comfy_backup:Q8_0 # Run inference directly in the terminal: llama cli -hf saik0s/comfy_backup:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf saik0s/comfy_backup:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf saik0s/comfy_backup:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf saik0s/comfy_backup:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf saik0s/comfy_backup:Q8_0
Use Docker
docker model run hf.co/saik0s/comfy_backup:Q8_0
- LM Studio
- Jan
- Ollama
How to use saik0s/comfy_backup with Ollama:
ollama run hf.co/saik0s/comfy_backup:Q8_0
- Unsloth Studio
How to use saik0s/comfy_backup with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for saik0s/comfy_backup to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for saik0s/comfy_backup to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for saik0s/comfy_backup to start chatting
- Pi
How to use saik0s/comfy_backup with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf saik0s/comfy_backup:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "saik0s/comfy_backup:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use saik0s/comfy_backup with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf saik0s/comfy_backup:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default saik0s/comfy_backup:Q8_0
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use saik0s/comfy_backup with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf saik0s/comfy_backup:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "saik0s/comfy_backup:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use saik0s/comfy_backup with Docker Model Runner:
docker model run hf.co/saik0s/comfy_backup:Q8_0
- Lemonade
How to use saik0s/comfy_backup with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull saik0s/comfy_backup:Q8_0
Run and chat with the model
lemonade run user.comfy_backup-Q8_0
List all available models
lemonade list
| import torch | |
| from .helper import precision_tool | |
| class set_precision: | |
| def __init__(self): | |
| pass | |
| def INPUT_TYPES(cls): | |
| return { | |
| "required": { | |
| "latent_image": ("LATENT", ), | |
| "precision": (["16", "32", "64"], ), | |
| "set_default": ("BOOLEAN", {"default": False}) | |
| }, | |
| } | |
| RETURN_TYPES = ("LATENT",) | |
| RETURN_NAMES = ("passthrough",) | |
| FUNCTION = "main" | |
| CATEGORY = "RES4LYF/precision" | |
| def main(self, | |
| precision = "32", | |
| latent_image = None, | |
| set_default = False | |
| ): | |
| match precision: | |
| case "16": | |
| if set_default is True: | |
| torch.set_default_dtype(torch.float16) | |
| x = latent_image["samples"].to(torch.float16) | |
| case "32": | |
| if set_default is True: | |
| torch.set_default_dtype(torch.float32) | |
| x = latent_image["samples"].to(torch.float32) | |
| case "64": | |
| if set_default is True: | |
| torch.set_default_dtype(torch.float64) | |
| x = latent_image["samples"].to(torch.float64) | |
| return ({"samples": x}, ) | |
| class set_precision_universal: | |
| def __init__(self): | |
| pass | |
| def INPUT_TYPES(cls): | |
| return { | |
| "required": { | |
| "precision": (["bf16", "fp16", "fp32", "fp64", "passthrough"], {"default": "fp32"}), | |
| "set_default": ("BOOLEAN", {"default": False}) | |
| }, | |
| "optional": { | |
| "cond_pos": ("CONDITIONING",), | |
| "cond_neg": ("CONDITIONING",), | |
| "sigmas": ("SIGMAS", ), | |
| "latent_image": ("LATENT", ), | |
| }, | |
| } | |
| RETURN_TYPES = ("CONDITIONING", | |
| "CONDITIONING", | |
| "SIGMAS", | |
| "LATENT",) | |
| RETURN_NAMES = ("cond_pos", | |
| "cond_neg", | |
| "sigmas", | |
| "latent_image",) | |
| FUNCTION = "main" | |
| CATEGORY = "RES4LYF/precision" | |
| def main(self, | |
| precision = "fp32", | |
| cond_pos = None, | |
| cond_neg = None, | |
| sigmas = None, | |
| latent_image = None, | |
| set_default = False | |
| ): | |
| dtype = None | |
| match precision: | |
| case "bf16": | |
| dtype = torch.bfloat16 | |
| case "fp16": | |
| dtype = torch.float16 | |
| case "fp32": | |
| dtype = torch.float32 | |
| case "fp64": | |
| dtype = torch.float64 | |
| case "passthrough": | |
| return (cond_pos, cond_neg, sigmas, latent_image, ) | |
| if cond_pos is not None: | |
| cond_pos[0][0] = cond_pos[0][0].clone().to(dtype) | |
| cond_pos[0][1]["pooled_output"] = cond_pos[0][1]["pooled_output"].clone().to(dtype) | |
| if cond_neg is not None: | |
| cond_neg[0][0] = cond_neg[0][0].clone().to(dtype) | |
| cond_neg[0][1]["pooled_output"] = cond_neg[0][1]["pooled_output"].clone().to(dtype) | |
| if sigmas is not None: | |
| sigmas = sigmas.clone().to(dtype) | |
| if latent_image is not None: | |
| x = latent_image["samples"].clone().to(dtype) | |
| latent_image = {"samples": x} | |
| if set_default is True: | |
| torch.set_default_dtype(dtype) | |
| return (cond_pos, cond_neg, sigmas, latent_image, ) | |
| class set_precision_advanced: | |
| def __init__(self): | |
| pass | |
| def INPUT_TYPES(cls): | |
| return { | |
| "required": { | |
| "latent_image": ("LATENT", ), | |
| "global_precision": (["64", "32", "16"], ), | |
| "shark_precision": (["64", "32", "16"], ), | |
| }, | |
| } | |
| RETURN_TYPES = ("LATENT","LATENT","LATENT","LATENT","LATENT",) | |
| RETURN_NAMES = ("passthrough", | |
| "latent_cast_to_global", | |
| "latent_16", | |
| "latent_32", | |
| "latent_64", | |
| ) | |
| FUNCTION = "main" | |
| CATEGORY = "RES4LYF/precision" | |
| def main(self, | |
| global_precision = "32", | |
| shark_precision = "64", | |
| latent_image = None | |
| ): | |
| dtype_map = { | |
| "16": torch.float16, | |
| "32": torch.float32, | |
| "64": torch.float64 | |
| } | |
| precision_map = { | |
| "16": 'fp16', | |
| "32": 'fp32', | |
| "64": 'fp64' | |
| } | |
| torch.set_default_dtype(dtype_map[global_precision]) | |
| precision_tool.set_cast_type(precision_map[shark_precision]) | |
| latent_passthrough = latent_image["samples"] | |
| latent_out16 = latent_image["samples"].to(torch.float16) | |
| latent_out32 = latent_image["samples"].to(torch.float32) | |
| latent_out64 = latent_image["samples"].to(torch.float64) | |
| target_dtype = dtype_map[global_precision] | |
| if latent_image["samples"].dtype != target_dtype: | |
| latent_image["samples"] = latent_image["samples"].to(target_dtype) | |
| latent_cast_to_global = latent_image["samples"] | |
| return ({"samples": latent_passthrough}, | |
| {"samples": latent_cast_to_global}, | |
| {"samples": latent_out16}, | |
| {"samples": latent_out32}, | |
| {"samples": latent_out64} | |
| ) | |