225 Downloads Updated 1 week ago
ollama run artokun/gemma4-comfyui-mcp:e2b
Updated 1 week ago
1 week ago
7374e21f58e9 · 3.4GB ·
Local, offline LLMs fine-tuned to be ComfyUI experts that drive the full
comfyui-mcp tool surface — 178
tools (113 MCP server tools + 65 live-canvas panel_* tools) — in Gemma 4’s
native tool-call format. These are the free, no-API-key backends for the
comfyui-mcp Agent Panel: pick Ollama (local) in the panel and the agent
edits your live graph, generates images/video/audio, manages models and
custom nodes, and runs your workflows — entirely on your GPU.
Quickstart (Ollama, recommended):
ollama pull artokun/gemma4-comfyui-mcp:e4b # default — ~3.5 GB VRAM at q4
# also: :e2b (~2 GB VRAM) :12b (~8 GB VRAM)
Pick by VRAM budget. Every rung is the same data, same recipe — only the base size changes.
| Tag | Rung | Folder | Download (q4) | VRAM (q4) | Status |
|---|---|---|---|---|---|
:e2b |
Gemma 4 E2B (Heretic-ara) | e2b/ |
3.4 GB | ~2 GB | ✅ available |
:e4b |
Gemma 4 E4B (Heretic) | e4b/ |
5.3 GB | ~3.5 GB | ✅ available — the default |
:12b |
Gemma 4 12B (Heretic) | 12b/ |
7.4 GB | ~8 GB | ✅ available |
Each folder ships the GGUF quant(s), the LoRA adapter (r=32 — apply to the base or re-export any quant yourself), the trained chat template, and tokenizer/trainer configs.
A stock model meets comfyui-mcp’s ~200-schema catalog cold and burns its context (and your patience) learning it. These models were trained on the tool suite itself:
artokun/comfyui-mcp-trajectories.Every rung is validated in llama-server --jinja before release: native
tool-call emission (finish_reason=tool_calls), correct tool selection,
well-formed JSON arguments, and dimension/parameter extraction from
natural-language requests. Final train loss: 0.022 (e4b), 0.021 (e2b);
the 12b rung additionally passed live end-to-end panel runs.
Known behavior: :e2b reasons verbosely before calling — give it
max_tokens ≥ 512 or the call gets truncated mid-thought.
ComfyUI Agent Panel (the intended home): install
comfyui-mcp, pull a tag, pick
Ollama (local) in the panel’s backend picker. :e4b is the built-in
default — zero further config.
Plain Ollama / any OpenAI-compatible client:
ollama pull artokun/gemma4-comfyui-mcp:e4b
# tags ship num_ctx 65536 + temperature 0 + the ComfyUI agent system prompt
llama.cpp:
llama-server -m e4b/model-q4_k_m.gguf --jinja -c 16384
From the adapter (transformers + PEFT): load the base
(AutoModelForImageTextToText — Gemma 4 is the unified multimodal arch),
attach <size>/adapter_model.safetensors, merge_and_unload(). A clean
re-export path (sharded 16-bit + GGUF) ships in
finetune/train/reexport.py.
12b/ e4b/ e2b/ model-q4_k_m.gguf (+q5/q8 where built), LoRA adapter,
chat_template.jinja, tokenizer/trainer configs
finetune/ the COMPLETE pipeline: datagen (task synth + tool-surface
export), train (QLoRA + dataset prep + re-export),
arena (server-verified eval harness), package (Modelfile)
finetune/data/ train/val JSONL (1,055 trajectories) + the 178-tool surface
Tool calling is the trained strength. Vision is limited at these sizes — the
agent generates but can’t visually critique its own outputs — and hard
multi-stage graph composition (multi-output pipelines built in one shot)
remains frontier-model territory. Arena scores for the fine-tuned rungs vs
stock Gemma 4 are queued; the harness is in finetune/arena/.
Bases by p-e-w (Heretic) and coder3101; Gemma 4 by Google DeepMind (Gemma license). Fine-tune, data, and pipeline by @artokun — part of the comfyui-mcp project.