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="ComfyUI/models/text_encoders/gemma-3-12b-it-q2_k.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:Q4_K_S # Run inference directly in the terminal: llama cli -hf saik0s/comfy_backup:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf saik0s/comfy_backup:Q4_K_S # Run inference directly in the terminal: llama cli -hf saik0s/comfy_backup:Q4_K_S
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:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf saik0s/comfy_backup:Q4_K_S
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:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf saik0s/comfy_backup:Q4_K_S
Use Docker
docker model run hf.co/saik0s/comfy_backup:Q4_K_S
- LM Studio
- Jan
- Ollama
How to use saik0s/comfy_backup with Ollama:
ollama run hf.co/saik0s/comfy_backup:Q4_K_S
- 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:Q4_K_S
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:Q4_K_S" } ] } } }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:Q4_K_S
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:Q4_K_S
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:Q4_K_S
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:Q4_K_S" \ --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:Q4_K_S
- Lemonade
How to use saik0s/comfy_backup with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull saik0s/comfy_backup:Q4_K_S
Run and chat with the model
lemonade run user.comfy_backup-Q4_K_S
List all available models
lemonade list
| import torch | |
| from typing_extensions import override | |
| import comfy.model_management | |
| import node_helpers | |
| from comfy_api.latest import ComfyExtension, IO | |
| class TextEncodeAceStepAudio(IO.ComfyNode): | |
| def define_schema(cls): | |
| return IO.Schema( | |
| node_id="TextEncodeAceStepAudio", | |
| category="model/conditioning", | |
| inputs=[ | |
| IO.Clip.Input("clip"), | |
| IO.String.Input("tags", multiline=True, dynamic_prompts=True), | |
| IO.String.Input("lyrics", multiline=True, dynamic_prompts=True), | |
| IO.Float.Input("lyrics_strength", default=1.0, min=0.0, max=10.0, step=0.01), | |
| ], | |
| outputs=[IO.Conditioning.Output()], | |
| ) | |
| def execute(cls, clip, tags, lyrics, lyrics_strength) -> IO.NodeOutput: | |
| tokens = clip.tokenize(tags, lyrics=lyrics) | |
| conditioning = clip.encode_from_tokens_scheduled(tokens) | |
| conditioning = node_helpers.conditioning_set_values(conditioning, {"lyrics_strength": lyrics_strength}) | |
| return IO.NodeOutput(conditioning) | |
| class TextEncodeAceStepAudio15(IO.ComfyNode): | |
| def define_schema(cls): | |
| return IO.Schema( | |
| node_id="TextEncodeAceStepAudio1.5", | |
| category="model/conditioning", | |
| inputs=[ | |
| IO.Clip.Input("clip"), | |
| IO.String.Input("tags", multiline=True, dynamic_prompts=True), | |
| IO.String.Input("lyrics", multiline=True, dynamic_prompts=True), | |
| IO.Int.Input("seed", default=0, min=0, max=0xffffffffffffffff, control_after_generate=True), | |
| IO.Int.Input("bpm", default=120, min=10, max=300), | |
| IO.Float.Input("duration", default=120.0, min=0.0, max=2000.0, step=0.1), | |
| IO.Combo.Input("timesignature", options=['2', '3', '4', '6']), | |
| IO.Combo.Input("language", options=['ar', 'az', 'bg', 'bn', 'ca', 'cs', 'da', 'de', 'el', 'en', 'es', 'fa', 'fi', 'fr', 'he', 'hi', 'hr', 'ht', 'hu', 'id', 'is', 'it', 'ja', 'ko', 'la', 'lt', 'ms', 'ne', 'nl', 'no', 'pa', 'pl', 'pt', 'ro', 'ru', 'sa', 'sk', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tl', 'tr', 'uk', 'ur', 'vi', 'yue', 'zh', 'unknown'], default='en'), | |
| IO.Combo.Input("keyscale", options=[f"{root} {quality}" for quality in ["major", "minor"] for root in ["C", "C#", "Db", "D", "D#", "Eb", "E", "F", "F#", "Gb", "G", "G#", "Ab", "A", "A#", "Bb", "B"]]), | |
| IO.Boolean.Input("generate_audio_codes", default=True, tooltip="Enable the LLM that generates audio codes. This can be slow but will increase the quality of the generated audio. Turn this off if you are giving the model an audio reference.", advanced=True), | |
| IO.Float.Input("cfg_scale", default=2.0, min=0.0, max=100.0, step=0.1, advanced=True), | |
| IO.Float.Input("temperature", default=0.85, min=0.0, max=2.0, step=0.01, advanced=True), | |
| IO.Float.Input("top_p", default=0.9, min=0.0, max=2000.0, step=0.01, advanced=True), | |
| IO.Int.Input("top_k", default=0, min=0, max=100, advanced=True), | |
| IO.Float.Input("min_p", default=0.000, min=0.0, max=1.0, step=0.001, advanced=True), | |
| ], | |
| outputs=[IO.Conditioning.Output()], | |
| ) | |
| def execute(cls, clip, tags, lyrics, seed, bpm, duration, timesignature, language, keyscale, generate_audio_codes, cfg_scale, temperature, top_p, top_k, min_p) -> IO.NodeOutput: | |
| tokens = clip.tokenize(tags, lyrics=lyrics, bpm=bpm, duration=duration, timesignature=int(timesignature), language=language, keyscale=keyscale, seed=seed, generate_audio_codes=generate_audio_codes, cfg_scale=cfg_scale, temperature=temperature, top_p=top_p, top_k=top_k, min_p=min_p) | |
| conditioning = clip.encode_from_tokens_scheduled(tokens) | |
| return IO.NodeOutput(conditioning) | |
| class EmptyAceStepLatentAudio(IO.ComfyNode): | |
| def define_schema(cls): | |
| return IO.Schema( | |
| node_id="EmptyAceStepLatentAudio", | |
| display_name="Empty Ace Step 1.0 Latent Audio", | |
| category="model/latent/audio", | |
| inputs=[ | |
| IO.Float.Input("seconds", default=120.0, min=1.0, max=1000.0, step=0.1), | |
| IO.Int.Input( | |
| "batch_size", default=1, min=1, max=4096, tooltip="The number of latent images in the batch." | |
| ), | |
| ], | |
| outputs=[IO.Latent.Output()], | |
| ) | |
| def execute(cls, seconds, batch_size) -> IO.NodeOutput: | |
| length = int(seconds * 44100 / 512 / 8) | |
| latent = torch.zeros([batch_size, 8, 16, length], device=comfy.model_management.intermediate_device(), dtype=comfy.model_management.intermediate_dtype()) | |
| return IO.NodeOutput({"samples": latent, "type": "audio"}) | |
| class EmptyAceStep15LatentAudio(IO.ComfyNode): | |
| def define_schema(cls): | |
| return IO.Schema( | |
| node_id="EmptyAceStep1.5LatentAudio", | |
| display_name="Empty Ace Step 1.5 Latent Audio", | |
| category="model/latent/audio", | |
| inputs=[ | |
| IO.Float.Input("seconds", default=120.0, min=1.0, max=1000.0, step=0.01), | |
| IO.Int.Input( | |
| "batch_size", default=1, min=1, max=4096, tooltip="The number of latent images in the batch." | |
| ), | |
| ], | |
| outputs=[IO.Latent.Output()], | |
| ) | |
| def execute(cls, seconds, batch_size) -> IO.NodeOutput: | |
| length = round((seconds * 48000 / 1920)) | |
| latent = torch.zeros([batch_size, 64, length], device=comfy.model_management.intermediate_device(), dtype=comfy.model_management.intermediate_dtype()) | |
| return IO.NodeOutput({"samples": latent, "type": "audio", "downscale_ratio_temporal": 1764}) | |
| class ReferenceAudio(IO.ComfyNode): | |
| def define_schema(cls): | |
| return IO.Schema( | |
| node_id="ReferenceTimbreAudio", | |
| display_name="Reference Audio", | |
| category="advanced/conditioning/audio", | |
| is_experimental=True, | |
| description="This node sets the reference audio for ace step 1.5", | |
| inputs=[ | |
| IO.Conditioning.Input("conditioning"), | |
| IO.Latent.Input("latent", optional=True), | |
| ], | |
| outputs=[ | |
| IO.Conditioning.Output(), | |
| ] | |
| ) | |
| def execute(cls, conditioning, latent=None) -> IO.NodeOutput: | |
| if latent is not None: | |
| conditioning = node_helpers.conditioning_set_values(conditioning, {"reference_audio_timbre_latents": [latent["samples"]]}, append=True) | |
| return IO.NodeOutput(conditioning) | |
| class AceExtension(ComfyExtension): | |
| async def get_node_list(self) -> list[type[IO.ComfyNode]]: | |
| return [ | |
| TextEncodeAceStepAudio, | |
| EmptyAceStepLatentAudio, | |
| TextEncodeAceStepAudio15, | |
| EmptyAceStep15LatentAudio, | |
| ReferenceAudio, | |
| ] | |
| async def comfy_entrypoint() -> AceExtension: | |
| return AceExtension() | |