OllamaKiller is a utility node for ComfyUI designed to manage VRAM usage more efficiently by automatically terminating the ollama_llama_server.exe process. This is particularly useful for users with limited VRAM, allowing them to clear up memory after running models and improve workflow performance.
OllamaKiller is a utility node for ComfyUI designed to manage VRAM usage more efficiently by automatically terminating the ollama_llama_server.exe
process. This is particularly useful for users with limited VRAM, allowing them to clear up memory after running models and improve workflow performance.
Running ollama_llama_server.exe
in ComfyUI workflows can consume 2–3 GB of VRAM or more, depending on the model. The OllamaKiller node automatically kills this process after each use, freeing up valuable memory and enhancing performance in subsequent generations.
When any text or prompt flows through the OllamaKiller node, it searches for ollama_llama_server.exe
and terminates it if running. This frees VRAM after the model has completed its task, allowing smoother transitions between models in workflows without needing manual process management.
Clone the Repository:
Clone the OllamaKiller repository into your ComfyUI custom_nodes
directory:
git clone https://github.com/mithamunda/ComfyUI-ollama_killer.git
Restart ComfyUI: Restart ComfyUI to load the newly added node.
Verify Installation: The OllamaKiller node should now appear in the utils category in ComfyUI.
Add OllamaKiller to Your Workflow:
Insert the OllamaKiller node after any point where the ollama_llama_server.exe
process is no longer needed.
Automatic Trigger:
When any text or prompt flows through the node, it triggers the termination process for ollama_llama_server.exe
, freeing up VRAM automatically.
Benefits:
OllamaKiller
utils
ollama_llama_server.exe
.ollama_llama_server.exe
and output a success message, allowing you to continue without manual memory management.This code is open-source and free to use for VRAM optimization in ComfyUI. Contributions to enhance functionality are welcome!