local-llm-free

$npx mdskill add artokun/comfyui-mcp/local-llm-free

Run the ComfyUI agent locally for free with Ollama and fine-tuned models.

  • Solves the need for free, offline, no-API-key ComfyUI agent usage.
  • Depends on Ollama and the artokun/gemma4-comfyui-mcp model.
  • Recommends the fine-tuned model based on GPU memory and tool accuracy.
  • Delivers a fully local live-canvas agent via the panel's Ollama backend.

SKILL.md

.github/skills/local-llm-freeView on GitHub ↗
---
name: local-llm-free
description: Run the ComfyUI agent locally for FREE — no subscription, no API key, fully offline — using our gemma4 models fine-tuned on the comfyui-mcp tool suite via Ollama. Use when the user asks about running locally, running for free, offline use, avoiding API costs, Ollama setup, or which local model to pick.
---

# Run the agent locally for free (Ollama + our fine-tuned models)

The answer to "can I run this for free / offline / without an API key" is
**yes**: the panel's Ollama backend drives the full live-canvas agent on a
local model — and we ship models **fine-tuned specifically for comfyui-mcp**.

## Why these models (say this when recommending them)

`artokun/gemma4-comfyui-mcp` is Google's Gemma 4 QLoRA-fine-tuned on **1,055
server-verified tool-use trajectories** generated against a live ComfyUI —
covering the **full 178-tool surface** (113 MCP tools + 65 panel live-canvas
tools). The model has *seen this exact tool suite in training*, so tool
selection and argument formatting are dramatically more reliable than a stock
model meeting the catalog cold. Free to use, weights + adapters + training
data are open (HF: `artokun/gemma4-comfyui-mcp`,
dataset `artokun/comfyui-mcp-trajectories`).

## Setup (2 steps)

1. **Install Ollama** if missing: https://ollama.com/download
   (macOS/Windows installers, or `curl -fsSL https://ollama.com/install.sh | sh` on Linux).
2. **Pull the rung that fits the user's GPU:**

```bash
ollama pull artokun/gemma4-comfyui-mcp:e4b   # DEFAULT — ~3.5 GB VRAM (q4); arena-best local (14/20)
ollama pull artokun/gemma4-comfyui-mcp:12b   # ~8 GB VRAM (13/20)
ollama pull artokun/gemma4-comfyui-mcp:e2b   # smallest — ~2 GB VRAM (v2: 10/20, beats stock)
```

Then in the ComfyUI sidebar panel: backend picker → **Ollama (local)** →
Connect. `:e4b` is the built-in default — zero further config once pulled.
(Override via the panel's model picker or `COMFYUI_MCP_OLLAMA_MODEL`.)

## Sizing guidance

| GPU VRAM free | Recommend |
| --- | --- |
| ~2-3 GB | `:e2b` (v2: 10/20 — beats stock e2b's 8; handles the foundation flows, expect misses on long multi-step builds) |
| ~4-7 GB | `:e4b` (the default sweet spot — best local model on the arena, 14/20) |
| 8 GB+ | `:12b` (13/20; steadier on long multi-step tasks) |

## Expectations to set

- Local models keep **tool calling** but have limited/no **vision** — the
  agent generates and edits workflows fine but can't visually critique its
  own outputs. Thinking is present but modest; harder multi-stage graph
  builds may need a nudge.
- First request after connect is slow (cold model load, 30s+). That's normal.
- For non-panel MCP harnesses (Hermes, OpenClaw, any Ollama-speaking client),
  pair these models with **compact tool mode** (`--compact`) — full docs:
  https://comfyui-mcp.artokun.io/docs/local-llms

More from artokun/comfyui-mcp

SkillDescription
ai-toolkit-trainerTrain custom LoRAs with ostris AI-Toolkit — covers WAN 2.2/2.1 (people, styles, video motion) and Z-Image (Turbo & Base, low-VRAM image LoRAs). Use when the user wants to train a WAN or Z-Image LoRA; covers local + RunPod setup, dataset prep, key params, and using the result in a ComfyUI workflow.
anima-baseAnime/illustration text-to-image (ANIMA 1.0, ~2B Cosmos DiT) — use for anime, manga, illustrated characters; accepts Danbooru tags + natural language; runs/trains on <6GB VRAM; includes anime inpainting via Anima-LLLite ControlNet
anima-lora-trainerTrain a custom anime LoRA on the ANIMA base model — Citron's local Gradio trainer (kohya sd-scripts), <6GB VRAM, character/style LoRAs; covers setup, dataset prep, training params, and using the result in the anima-base workflow
civitaiDiscover Civitai models with the BUILT-IN search_civitai_models tool and install/generate them locally — find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words. Optionally pair the official Civitai MCP for community features (images browsing, posting, collections).
color-correctionDiagnose and fix video/image color OBJECTIVELY with the analyze_color tool (scopes/stats — black/white points, contrast, saturation, clipping, cast) instead of eyeballing a contact sheet. Covers the "washed out" signature, why reference color-match (mkl/ColorMatch/ColorMatchAdobe) CAN'T add contrast a flat source lacks, the levels/contrast-stretch fix (core AdjustContrast / CurveEditor), the measure→fix→re-measure loop, the side-by-side sandbox pattern, and where to place the fix in a render graph (after decode, before save). Use when a render looks washed out / flat / dull / over-saturated / color-cast, or when deciding between a color-match and a contrast/levels fix.
comfyui-coreCore ComfyUI knowledge — workflow format, node types, pipeline patterns, and MCP tool usage
comfyui-frontend-extensionsAuthoring ComfyUI v2 frontend extensions with @comfyorg/extension-api — defineNode/defineExtension/defineWidget, shell UI (sidebar tabs, commands, hotkeys), typed events, and handles. Use when writing or editing ComfyUI web-UI extension code (custom node JS, sidebar panels, widgets).
comfyui-launch-flagsPick the right ComfyUI startup flags for VRAM, attention, caching, and speed — the full decision matrix for OOM (--novram / --cache-none / --disable-smart-memory), shared-VRAM creep on Windows (--reserve-vram N), model-switching with big text encoders (--cache-none), high-VRAM throughput (--gpu-only / --highvram), and attention-backend selection (--use-sage-attention for speed, --use-pytorch-cross-attention as the highest-quality / Z-Image-safe fallback). Also the acceleration-stack + Blackwell/RTX 5000 (sm_120) notes. Use when a graph OOMs (especially long video like LTX 2 / WAN), when the GPU spills into shared VRAM and slows to a crawl, when switching between models eats all RAM, when Z-Image produces black/garbled output under Sage, or when deciding which attention backend to launch with. Flag names verified against upstream comfy/cli_args.py — see Sources.
comfyui-node-registryAuthoring & publishing ComfyUI custom nodes to the Comfy Registry — node structure, pyproject.toml spec, comfy-cli publishing, and CI
debug-renderDebug a WRONG or imperfect render (not a hard error) by inspecting inputs and intermediate steps with run-to-node — render one branch up to an output, preview-tap latents/masks/preprocessor maps, localize the first bad stage, then fix. Use when a final image/video comes out wrong — artifacts, wrong subject/pose/composition/color, blur, a ControlNet/IPAdapter/mask/LoRA not taking, a two-stage refiner or upscale degrading the result — rather than the run failing with an error (for errors/OOM/missing nodes use the troubleshooting skill).