Skip to main content

kitchen and panel_kitchen

comfy-kitchen is ComfyUI’s kernel library — fp8 / NVFP4 / MXFP8 / INT8 quantized tensors and GEMMs, fused RoPE and AdaLN, and its own INT8 attention, with hip / cuda / triton / eager backends. It is not a workflow library. Two tools share the same actions:
  • kitchen { action: "status" | "assess" | "apply" } — MCP clients. assess takes a workflow JSON.
  • panel_kitchen — the same actions against the live canvas, fenced like every other panel mutation.
A failed probe is unknown, never a no. A recommendation fires only when every fact it needs is known.

status — what this GPU can run

status reports: Local vs remote. --comfyui-url / Comfy Cloud gets log + /system_stats only. The import probe and model.quant stay unknown there; the tool says so rather than guessing from the filename.

assess — four recommendations

assess walks UNETLoaders. Each rec is a conjunction: MXFP8, SVDQuant, and AWQ appear in status but are not recommended until a loader path in ComfyUI exposes them.

apply — change, then prove or revert

  • Widget recs (fp8_unet_fast, nvfp4_swap) do not need confirm. kitchen mutates the supplied workflow JSON. panel_kitchen writes through graph_set_widget (Ctrl+Z).
  • Flag recs need confirm: true. restart_comfyui / panel_restart_comfyui replay the previous argv and do not inject a new flag. Apply names the flag and tells you to add it to the launch line, then restart. That is not a new restart path.
  • Proof. panel_kitchen apply queues a panel_run on the current seed after a widget change. The report shape is s/it A → B, peak VRAM C → D GB, output non-black, N widget changed, M flags changed. A black or NaN after-run, or a slower after-run, reverts the widget. kitchen apply without a runner reports proof.status: "not_run" rather than claiming a bench it did not run.
  • Pass skip_proof: true on panel_kitchen to apply without queueing a run.

Proactive hint

Once per process, when kitchen is present and rec 1 or rec 2 is certain, status / assess includes one sentence naming the gap and the tool. Nothing runs unasked.

Flags this tool can name

--use-ck-attention, --enable-triton-backend, --disable-triton-backend, --fast fp8_matrix_mult, --fast cublas_ops. On master these are ComfyUI flags. --enable-triton-backend is not SwarmUI-only.