Instructions to use AEmotionStudio/ComfyUI-Model-Backups with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AEmotionStudio/ComfyUI-Model-Backups with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AEmotionStudio/ComfyUI-Model-Backups", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AEmotionStudio/ComfyUI-Model-Backups 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 AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S # Run inference directly in the terminal: llama cli -hf AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S # Run inference directly in the terminal: llama cli -hf AEmotionStudio/ComfyUI-Model-Backups: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 AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf AEmotionStudio/ComfyUI-Model-Backups: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 AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S
Use Docker
docker model run hf.co/AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S
- LM Studio
- Jan
- Ollama
How to use AEmotionStudio/ComfyUI-Model-Backups with Ollama:
ollama run hf.co/AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S
- Unsloth Studio
How to use AEmotionStudio/ComfyUI-Model-Backups 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 AEmotionStudio/ComfyUI-Model-Backups 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 AEmotionStudio/ComfyUI-Model-Backups to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AEmotionStudio/ComfyUI-Model-Backups to start chatting
- Pi
How to use AEmotionStudio/ComfyUI-Model-Backups with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AEmotionStudio/ComfyUI-Model-Backups: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": "AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use AEmotionStudio/ComfyUI-Model-Backups with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AEmotionStudio/ComfyUI-Model-Backups: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 AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use AEmotionStudio/ComfyUI-Model-Backups with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AEmotionStudio/ComfyUI-Model-Backups: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 "AEmotionStudio/ComfyUI-Model-Backups: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 AEmotionStudio/ComfyUI-Model-Backups with Docker Model Runner:
docker model run hf.co/AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S
- Lemonade
How to use AEmotionStudio/ComfyUI-Model-Backups with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AEmotionStudio/ComfyUI-Model-Backups:Q4_K_S
Run and chat with the model
lemonade run user.ComfyUI-Model-Backups-Q4_K_S
List all available models
lemonade list
| license: mit | |
| # Florence-2-large-PromptGen v2.0 | |
| This upgrade is based on PromptGen 1.5 with some new features to the model: | |
| ## Features: | |
| * Improved caption quality for \<GENERATE_TAGS\>, \<DETAILED_CAPTION\> and \<MORE_DETAILED_CAPTION\>. | |
| <img style="width:100%; hight:100%" src="https://msdn.miaoshouai.com/miaoshou/bo/2024-11-05_03-15-15.png" /> | |
| <img style="width:100%; hight:100%" src="https://msdn.miaoshouai.com/miaoshou/bo/2024-11-05_03-40-29.png" /> | |
| * A new \<ANALYZE\> instruction, which helps the model to better understands the image composition of the input image. | |
| <img style="width:100%; hight:100%" src="https://msdn.miaoshouai.com/miaoshou/bo/2024-11-05_03-42-58.png" /> | |
| <img style="width:100%; hight:100%" src="https://msdn.miaoshouai.com/miaoshou/bo/2024-11-05_07-42-36.png" /> | |
| * Memory efficient compare to other models! This is a really light weight caption model that allows you to use a little more than 1G of VRAM and produce lightening fast and high quality image captions. | |
| <img style="width:100%; hight:100%" src="https://msdn.miaoshouai.com/miaoshou/bo/2024-09-05_12-56-39.png" /> | |
| * Designed to handle image captions for Flux model for both T5XXL CLIP and CLIP_L, the Miaoshou Tagger new node called "Flux CLIP Text Encode" which eliminates the need to run two separate tagger tools for caption creation. You can easily populate both CLIPs in a single generation, significantly boosting speed when working with Flux models. | |
| <img style="width:100%; hight:100%" src="https://msdn.miaoshouai.com/miaoshou/bo/2024-09-05_14-11-02.png" /> | |
| ## Instruction prompt: | |
| \<GENERATE_TAGS\> generate prompt as danbooru style tags<br> | |
| \<CAPTION\> a one line caption for the image<br> | |
| \<DETAILED_CAPTION\> a structured caption format which detects the position of the subjects in the image<br> | |
| \<MORE_DETAILED_CAPTION\> a very detailed description for the image<br> | |
| \<ANALYZE\> image composition analysis mode<br> | |
| \<MIXED_CAPTION\> a mixed caption style of more detailed caption and tags, this is extremely useful for FLUX model when using T5XXL and CLIP_L together. A new node in MiaoshouTagger ComfyUI is added to support this instruction.<br> | |
| \<MIXED_CAPTION_PLUS\> Combine the power of mixed caption with analyze.<br> | |
| ## Version History: | |
| For version 2.0, you will notice the following | |
| 1. \<ANALYZE\> along with a beta node in ComfyUI for partial image analysis | |
| 2. A new instruction for \<MIXED_CAPTION_PLUS\> | |
| 3. A much improve accuracy for \<GENERATE_TAGS\>, \<DETAILED_CAPTION\> and \<MORE_DETAILED_CAPTION\> | |
| ## How to use: | |
| To use this model, you can load it directly from the Hugging Face Model Hub: | |
| ```python | |
| model = AutoModelForCausalLM.from_pretrained("MiaoshouAI/Florence-2-large-PromptGen-v2.0", trust_remote_code=True) | |
| processor = AutoProcessor.from_pretrained("MiaoshouAI/Florence-2-large-PromptGen-v2.0", trust_remote_code=True) | |
| prompt = "<MORE_DETAILED_CAPTION>" | |
| url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/car.jpg?download=true" | |
| image = Image.open(requests.get(url, stream=True).raw) | |
| inputs = processor(text=prompt, images=image, return_tensors="pt").to(device) | |
| generated_ids = model.generate( | |
| input_ids=inputs["input_ids"], | |
| pixel_values=inputs["pixel_values"], | |
| max_new_tokens=1024, | |
| do_sample=False, | |
| num_beams=3 | |
| ) | |
| generated_text = processor.batch_decode(generated_ids, skip_special_tokens=False)[0] | |
| parsed_answer = processor.post_process_generation(generated_text, task=prompt, image_size=(image.width, image.height)) | |
| print(parsed_answer) | |
| ``` | |
| ## Use under MiaoshouAI Tagger ComfyUI | |
| If you just want to use this model, you can use it under ComfyUI-Miaoshouai-Tagger | |
| https://github.com/miaoshouai/ComfyUI-Miaoshouai-Tagger | |
| A detailed use and install instruction is already there. | |
| (If you have already installed MiaoshouAI Tagger, you need to update the node in ComfyUI Manager first or use git pull to get the latest update.) |