Extensions/ComfyUI JoyCaption-Beta-GGUF Node
ComfyUI Extension

ComfyUI JoyCaption-Beta-GGUF Node

This project provides a node for ComfyUI to use the JoyCaption-Beta model in GGUF format for image captioning.

By judian17·Created about a year ago·Updated 9 months ago· 59
judian17/ComfyUI-joycaption-beta-one-GGUF
Nodes
On cloudLocal install
Stars59
Updated9 months ago
Readme

ComfyUI JoyCaption-Beta-GGUF Node

This project provides a node for ComfyUI to use the JoyCaption-Beta model in GGUF format for image captioning.

中文版说明

Acknowledgments:

This node is based on fpgaminer/joycaption_comfyui, with modifications to support the GGUF model format.

Thanks to the LayerStyleAdvance, I copied the relevant code for extra options from it.

20250802-Update:

Due to the difficulty of installing the GPU version of llama-cpp-python, I have uploaded the model to Ollama. You can now use it by installing Ollama and comfyui-ollama. Model link: https://ollama.com/aha2025/llama-joycaption-beta-one-hf-llava Meanwhile, I've separated the prompt template into a standalone node. For details, please check the ComfyUI JoyCaption-Beta-GGUF.

Usage

Installation

This node requires llama-cpp-python to be installed.

Important:

  • Installing with pip install llama-cpp-python will only enable CPU inference.
  • To utilize NVIDIA GPU acceleration, install with the following command:
    pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
    
    (Adjust cu124 according to your CUDA version)
  • For non-NVIDIA GPUs or other installation methods, please refer to the official llama-cpp-python documentation: https://llama-cpp-python.readthedocs.io/en/latest/

llama-cpp-python is not listed in requirements.txt to allow users to manually install the correct version with GPU support.

Workflow Example

You can view an example workflow image at assets/example.png.

Workflow Example

Model Download and Placement

You need to download the JoyCaption-Beta GGUF model and the corresponding mmproj model.

  1. Download the models from the following Hugging Face repositories:

  2. Place the downloaded model files into the models\llava_gguf\ folder within your ComfyUI installation directory.

Video Tutorial

You can refer to the following Bilibili video tutorial for setup and usage:

Video