# Core dependencies torch>=2.0.0 pillow>=10.0.0 numpy>=1.24.0 huggingface_hub>=0.26.0 # AI API clients anthropic groq mistralai google-genai # AutoAWQ with specific version - MUST be installed before transformers # flash-attn>=2.0.0;platform_system!="Darwin" # Optional for performance, excluded on MacOS # triton for linux triton; sys_platform == "linux" # triton for windows https://github.com/woct0rdho/triton-windows/releases/download/v3.1.0-windows.post8/triton-3.1.0-cp312-cp312-win_amd64.whl; sys_platform == "win64" and (python_version >= "3.12" and python_version < "3.13") https://github.com/woct0rdho/triton-windows/releases/download/v3.1.0-windows.post8/triton-3.1.0-cp311-cp311-win_amd64.whl; sys_platform == "win64" and (python_version >= "3.11" and python_version < "3.12") https://github.com/woct0rdho/triton-windows/releases/download/v3.1.0-windows.post8/triton-3.1.0-cp310-cp310-win_amd64.whl; sys_platform == "win64" and (python_version >= "3.10" and python_version < "3.11") https://github.com/woct0rdho/triton-windows/releases/download/v3.1.0-windows.post8/triton-3.1.0-cp38-cp38-win_amd64.whl; sys_platform == "win64" and (python_version >= "3.8" and python_version < "3.9") # autoawq # autoawq # Transformers and related transformers>=4.49.0 accelerate sentence-transformers datasets # Qwen model dependencies tokenizers>=0.15.0 safetensors>=0.3.1 # Video processing with decord for faster loading decord>=0.6.0 qwen-vl-utils[decord] opencv-python>=4.8.0 ffmpeg-python>=0.2.0 imageio_ffmpeg>=0.6.0 moviepy>=2.1.2 scenedetect>=0.6.2 # Downloading yt-dlp>=2023.3.4 # Utilities python-dotenv tqdm>=4.66.1 requests>=2.31.0 python-slugify>=8.0.1 psutil>=5.9.0 packaging>=23.1 aiohttp>=3.8.5 tiktoken pydantic rich




*It Might comflict with IF_AI_tools so if you have
it installed please remove it before installing IF_LLM
I am working on adding this tools to IF_AI_tools
so you only need one or the other*
[](https://youtu.be/0sR4hu98pDo?si=EhF24ugy7RpLvUjV)
Lighter version of ComfyUI-IF_AI_tools is a set of custom nodes to Run Local and API LLMs and LMMs, supports Ollama, LlamaCPP LMstudio, Koboldcpp, TextGen, Transformers or via APIs Anthropic, Groq, OpenAI, Google Gemini, Mistral, xAI and create your own profiles (SystemPrompts) with custom presets and muchmore
You can technically use any LLM API that you want, but for the best expirience install Ollama and set it up.
To install Ollama models just open CMD or any terminal and type the run command follow by the model name such as
ollama run llama3.2-vision
If you want to use omost
ollama run impactframes/dolphin_llama3_omost
if you need a good smol model
ollama run ollama run llama3.2
Optionally Set enviromnet variables for any of your favourite LLM API keys “XAI_API_KEY”, “GOOGLE_API_KEY”, “ANTHROPIC_API_KEY”, “MISTRAL_API_KEY”, “OPENAI_API_KEY” or “GROQ_API_KEY” with those names or otherwise
it won’t pick it up you can also use .env file to store your keys
_[NEW]_ xAI Grok Vision, Mistral, Google Gemini exp 114, Anthropic 3.5 Haiku, OpenAI 01 preview
_[NEW]_ Wildcard System
_[NEW]_ Local Models Koboldcpp, TextGen, LlamaCPP, LMstudio, Ollama
_[NEW]_ Auto prompts auto generation for Image Prompt Maker runs jobs on batches automatically
_[NEW]_ Image generation with IF_PROMPTImaGEN via Dalle3
_[NEW]_ Endpoints xAI, Transformers,
_[NEW]_ IF_profiles System Prompts with Reasoning/Reflection/Reward Templates and custom presets
_[NEW]_ WF such as GGUF and FluxRedux
LLama3 and Phi3 IF_AI Prompt mkr models released
ollama run impactframes/llama3_ifai_sd_prompt_mkr_q4km:latest
ollama run impactframes/ifai_promptmkr_dolphin_phi3:latest
https://huggingface.co/impactframes/llama3_if_ai_sdpromptmkr_q4km
https://huggingface.co/impactframes/ifai_promptmkr_dolphin_phi3_gguf
custom_nodes folder, type CMD on the address bar to open a command prompt,and run the following command to clone the repository:
“`bash
git clone https://github.com/if-ai/ComfyUI-IF_LLM.git
“`
OR
embedded_install.bat or type CMD on the address bar on the newly created custom_nodes\ComfyUI-IF_LLM folder type“`bash
H:\ComfyUI_windows_portable\python_embeded\python.exe -m pip install -r requirements.txt
“`
replace C:\ for your Drive letter where you have the ComfyUI_windows_portable directory
“`bash
cd ComfyUI-IF_LLM
python -m pip install -r requirements.txt
“`
If you want to use AWQ to save VRAM and up to 3x faster inference
you need to install triton and autoawq
“`
pip install triton
pip install –no-deps –no-build-isolation autoawq
“`
I also have precompiled wheels for
FA2 sageattention and trton for windows 10 for cu126 and pytorch 2.6.3 and python 12+
https://huggingface.co/impactframes/ComfyUI_desktop_wheels_win_cp12_cu126/tree/main
None yet
ancient Megastructure, small lone figure
You can try out these workflow examples directly in ComfyDeploy!
| Workflow | Try It |
|————–|———|
|CD_FLUX_LoRA|[](https://beta.app.comfydeploy.com/home?gpu=A10G&comfyui_version=a7fe0a94dee08754f97b0171e15c1f2271aa37be&timeout=15&nodes=if-ai%2FComfyUI-IF_LLM%40c80e379%2Ccubiq%2FComfyUI_essentials%4033ff89f&workflowLink=https%3A%2F%2Fraw.githubusercontent.com%2Fif-ai%2FIF-Animation-Workflows%2Frefs%2Fheads%2Fmain%2FCD_FLUX_LoRA.json)|
|CD_HYVid_I2V_&_T2V_Native_IFLLM|[](https://beta.app.comfydeploy.com/home?gpu=L40S&comfyui_version=a7fe0a94dee08754f97b0171e15c1f2271aa37be&timeout=15&nodes=if-ai%2FComfyUI-IF_LLM%40c80e379%2Crgthree%2Frgthree-comfy%405d771b8%2CJonseed%2FComfyUI-Detail-Daemon%4090e703d%2Ckijai%2FComfyUI-KJNodes%40a22b269%2Ccubiq%2FComfyUI_essentials%4033ff89f%2CTinyTerra%2FComfyUI_tinyterraNodes%40b292f8e%2Cchengzeyi%2FComfy-WaveSpeed%403db162b%2CTTPlanetPig%2FComfyui_TTP_Toolset%406dd3f35%2Ckijai%2FComfyUI-HunyuanVideoWrapper%409f50ed1%2CKosinkadink%2FComfyUI-VideoHelperSuite%403bfbd99%2CFannovel16%2FComfyUI-Frame-Interpolation%40c336f71%2Cfacok%2FComfyUI-HunyuanVideoMultiLora%407e3e344%2Ccity96%2FComfyUI_ExtraModels%4092f556e%2Cblepping%2FComfyUI-bleh%40850f840%2CjamesWalker55%2Fcomfyui-various%4036454f9&workflowLink=https%3A%2F%2Fraw.githubusercontent.com%2Fif-ai%2FComfyUI-IF_LLM%2Fmain%2Fworkflows%2FCD_HYVid_I2V_%26_T2V_Native_IFLLM.json)|
|CD_HYVid_I2V_&_T2V_i2VLora_Native|[](https://beta.app.comfydeploy.com/home?gpu=l40s&comfyui_version=a7fe0a94dee08754f97b0171e15c1f2271aa37be&timeout=15&nodes=if-ai/ComfyUI-IF_LLM%40c80e379%2Crgthree/rgthree-comfy%405d771b8%2CJonseed/ComfyUI-Detail-Daemon%4090e703d%2Ckijai/ComfyUI-KJNodes%40a22b269%2Ccubiq/ComfyUI_essentials%4033ff89f%2CTinyTerra/ComfyUI_tinyterraNodes%40b292f8e%2Cchengzeyi/Comfy-WaveSpeed%403db162b%2CTTPlanetPig/Comfyui_TTP_Toolset%406dd3f35%2Ckijai/ComfyUI-HunyuanVideoWrapper%409f50ed1%2CKosinkadink/ComfyUI-VideoHelperSuite%403bfbd99%2CFannovel16/ComfyUI-Frame-Interpolation%40c336f71%2Cfacok/ComfyUI-HunyuanVideoMultiLora%407e3e344&workflowLink=https%3A//raw.githubusercontent.com/if-ai/ComfyUI-IF_LLM/main/workflows/CD_HYVid_I2V_%26_T2V_i2VLora_Native.json)|
|CD_HYVid_I2V_Lora_KjWrapper|[](https://beta.app.comfydeploy.com/home?gpu=l40s&comfyui_version=a7fe0a94dee08754f97b0171e15c1f2271aa37be&timeout=15&nodes=if-ai/ComfyUI-IF_LLM%40c80e379%2Crgthree/rgthree-comfy%405d771b8%2CJonseed/ComfyUI-Detail-Daemon%4090e703d%2Ckijai/ComfyUI-KJNodes%40a22b269%2Ccubiq/ComfyUI_essentials%4033ff89f%2CTinyTerra/ComfyUI_tinyterraNodes%40b292f8e%2Cchengzeyi/Comfy-WaveSpeed%403db162b%2CTTPlanetPig/Comfyui_TTP_Toolset%406dd3f35%2Ckijai/ComfyUI-HunyuanVideoWrapper%409f50ed1%2CKosinkadink/ComfyUI-VideoHelperSuite%403bfbd99%2CFannovel16/ComfyUI-Frame-Interpolation%40c336f71%2Cfacok/ComfyUI-HunyuanVideoMultiLora%407e3e344&workflowLink=https%3A//raw.githubusercontent.com/if-ai/ComfyUI-IF_LLM/main/workflows/CD_HYVid_I2V_Lora_KjWrapper.json)|
If you find this tool useful, please consider supporting my work by:
Thank You!