Downloads · 30 days
182
35% of all-time downloads
21world/gemma4-comfyui-mcp
gemma4-comfyui-mcp is a text generation model from 21world. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
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 f…
Downloads · 30 days
182
35% of all-time downloads
All-time downloads
524
Public
Repo size
28.1 GB
Likes
0
Public
Click a slice to open those files.
.gguf26.9 GB · 96%
From the Hugging Face model README
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 |
:26b-a4b | Gemma 4 26B-A4B, NVFP4 (nvidia) | — | — | — | ⏸ parked (QLoRA+MoE routing interact poorly) |
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. The current :e2b
tag is the v2 retrain (see Arena results below).
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 (see the measured arena table below; the
harness is in finetune/arena/).
Scores on the comfyui-mcp LLM Arena — a 10-scenario ladder (health → generation → break/fix → multi-stage pipelines) where every result is verified against a live ComfyUI server, not the model's claims. Best of 3 full runs per model, RTX 4090, PASS=2/PARTIAL=1/FAIL=0:
| Model | Score | vs. stock base |
|---|---|---|
:e4b | 14/20 (13–14) — best local model we've tested | stock gemma4:e4b: 12/20 |
:12b | 13/20 (12–13) | stock 12b unbenchmarked |
:e2b v2 | 10/20 (7–10) | stock gemma4:e2b: 8/20 |
Every rung beats its stock base. For calibration, the same ladder scores frontier hosted models 19–20/20 and the best small hosted models 17–19/20 — these are honest local-tier numbers, not marketing.
e2b v2 note: the initial e2b release regressed below stock (4/20) — the
smallest rung couldn't bridge between the direct-call training format and the
deployed 6-tool router envelope, dropping call_tool's name field. v2
retrains on a dual-view mix (direct calls + the exact runtime router format +
fresh server-verified arena trajectories) — zero malformed envelopes across
all verdict runs. Details: comfyui-mcp#183.
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.