ebb32253a9c28a50210cde5cb8366d704744b5e3
save prompt without having to preview, auto set seq len and tokens if 0 and some other stuff I already forgot, it should all work, but likely won't
ComfyUI ExLlama Nodes
A simple text generator for ComfyUI utilizing ExLlamaV2.
Installation
Make sure your ComfyUI is up to date. Clone the repository to custom_nodes and install dependencies:
git clone https://github.com/Zuellni/ComfyUI-ExLlama-Nodes
pip install -r requirements.txt
If you see any ExLlama-related errors while loading, install it manually following the instructions from here.
Nodes
| Name | Description |
|---|---|
| Loader | Used to load EXL2/GPTQ Llama models. You can find a lot of them on Hugging Face. Clone the model repository or download all the files in it and place them in an empty directory, then specify the path in model_dir. The model.safetensors file won't work on its own.ExLlama allocates memory based on max_seq_len. Lowering it is a good way to save on VRAM. It's currently not possible to offload the model to RAM. |
| Generator | Generates a string based on the given input for use with other nodes. Default values correspond to the simple-1 preset from text-generation-webui.ExLlama isn't deterministic, so the outputs may differ even with the same seed. |
| Condition | Checks if the input meets some condition, interrupts processing otherwise. |
| Format | Replaces variables enclosed in brackets, such as [a], with their values. |
| Preview | Displays generated outputs in the UI. |
Workflow
The image below can be opened in ComfyUI.
Languages
Python
89.9%
JavaScript
10.1%