New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Pick the right ComfyUI startup flags for VRAM, attention

ComfyUI launch/performance flags

by artokun · MIT license · ★ 759 on GitHub · updated Sep 21

ComfyUI launch/performance flags cover

Pick 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…

---
name: comfyui-launch-flags
description: Pick 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.
globs:
  - "**/*.json"
  - "**/packs/**"
---

# ComfyUI launch/performance flags

## Overview

CLI flags passed to `main.py` control ComfyUI's runtime behavior
(e.g. `python main.py --reserve-vram 2 --use-sage-attention`). The three that
matter most for making a graph *run* rather than OOM or crawl are the
VRAM strategy, the attention backend, and the cache mode. This skill
is the decision matrix for choosing them.

Overview

CLI flags passed to main.py control ComfyUI's runtime behavior (e.g. python main.py --reserve-vram 2 --use-sage-attention). The three that matter most for making a graph run rather than OOM or crawl are the VRAM strategy, the attention backend, and the cache mode. This skill is the decision matrix for choosing them.

Manual install (npx, ZIP)
Claude Codenpx skills add artokun/comfyui-mcp --skill comfyui-launch-flags -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/artokun/comfyui-mcp/tar.gz/1d5b12b1b499 \ | tar -xz -C ~/.claude/skills --strip-components=3 comfyui-mcp-1d5b12b1b499/plugin/skills/comfyui-launch-flags
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/fc66d312a4828b111fd0/comfyui-launch-flags.zip" -OutFile "$env:TEMP\comfyui-launch-flags.zip"; Expand-Archive "$env:TEMP\comfyui-launch-flags.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md12.3 KB
Read the files here
artokun/1d5b12b1 file
Shared references4SKILL.md reads these from elsewhere in the repo. Not in the ZIP.Get them on GitHub ↗
SKILL.md
Show the full text211 lines

ComfyUI launch/performance flags

Overview

CLI flags passed to main.py control ComfyUI's runtime behavior (e.g. python main.py --reserve-vram 2 --use-sage-attention). The three that matter most for making a graph run rather than OOM or crawl are the VRAM strategy, the attention backend, and the cache mode. This skill is the decision matrix for choosing them.

⚠️ Verification note (August 2026). Every flag below was checked against upstream comfy/cli_args.py on current master. ComfyUI adds/renames flags often — when in doubt run python main.py --help in the target install and prefer that over this list. --enable-triton-backend / --disable-triton-backend ARE ComfyUI main.py flags on master (they used to be documented as SwarmUI-only; that is stale). --use-ck-attention is kitchen INT8 attention — no sageattention wheel. A June ComfyUI checkout still pins comfy-kitchen 0.2.10 and lacks --use-ck-attention; kitchen action:"status" reports ComfyUI-side flag support, not only the kitchen version. Use kitchen / panel_kitchen to see what this GPU can actually run.

How to apply today. The MCP's restart_comfyui (with action: "start") currently replays the exact argv of the previous run. It does not compose fresh flags. So set these when you launch ComfyUI yourself (the python main.py … line, a run.bat/shell alias, or the SwarmUI backend args box), and the tool will preserve them on restart. Injecting flags through the tool is a tracked follow-up.


Decide first: which flag do you need?

Symptom                                             ▶ Flag(s) to try
─────────────────────────────────────────────────────────────────────────────
CUDA out of memory, long video (LTX 2 / WAN)        ▶ --novram  (+ --cache-none)
OOM, still want models resident when they fit       ▶ --reserve-vram N  then --disable-smart-memory
GPU slows to a crawl, spills into "shared GPU        ▶ --reserve-vram 2..4
  memory" (Windows WDDM) mid-run
RAM blows up switching between models, or a huge     ▶ --cache-none
  text encoder (FLUX 2 / Mistral) won't unload
Plenty of VRAM (48GB+), want max throughput         ▶ --gpu-only  or  --highvram
Want faster sampling on NVIDIA                       ▶ --use-ck-attention if kitchen INT8 is available (skip the sage wheel); else --use-sage-attention
Z-Image produces BLACK / wrong output               ▶ --use-pytorch-cross-attention (NOT sage)
Sage gives black output on some models              ▶ --use-pytorch-cross-attention (or fix dtype)
ROCm, kitchen present, triton ≥ 3.7                  ▶ --enable-triton-backend

VRAM strategy and attention backend are each mutually exclusive groups, so pass at most one from each. You can combine one VRAM flag + one attention flag + one cache flag (e.g. --novram --use-sage-attention --cache-none).


VRAM strategy (mutually exclusive)

Flag What it does Use when
--gpu-only Keep everything (incl. text encoders) on GPU 48GB+ card, single model, max speed
--highvram Keep models resident in VRAM after use High-VRAM card, repeated runs of one model
(default) ComfyUI's smart offload Most setups — try this first
--lowvram Offload text encoders / parts to CPU Mid card OOMing on load
--novram Extreme offload — minimal VRAM footprint OOM on long video / huge models; pair with --cache-none
--cpu Everything on CPU (very slow) No usable CUDA GPU only

Modifiers (combine with the above):

  • --reserve-vram N reserves N GB for the OS and other apps. It is the fix for the Windows failure mode where the GPU quietly starts using shared VRAM and throughput collapses. Typical 2 to 4; bump to 10 for heavy video decode.
  • --disable-smart-memory forces aggressive offload to regular RAM instead of keeping models cached in VRAM. Reach for this when a run gets stuck or OOMs intermittently. Slightly slower, much more reliable.
  • --async-offload enables async weight offload streams (default on where supported); --disable-async-offload turns it off if it misbehaves.

Attention backend (mutually exclusive)

Flag Notes
--use-ck-attention Comfy Kitchen INT8 attention. No sageattention wheel. Needs comfy-kitchen present and int8_attention_is_available() on this GPU. Prefer this over the sage wheel-matching install when kitchen action:"status" says INT8 is available. Restart required.
--use-sage-attention Quantized SageAttention kernel, ~20–40% faster sampling. Needs the sageattention package installed and version-matched — see triton-sageattention. Skip this dance when --use-ck-attention is available.
--use-flash-attention FlashAttention kernels. Needs flash-attn built for your torch/CUDA.
--enable-triton-backend / --disable-triton-backend Enable or disable the comfy-kitchen triton backend. ComfyUI master flags (not SwarmUI-only). ROCm hosts with kitchen + triton ≥ 3.7 want --enable-triton-backend. Restart required.
--use-pytorch-cross-attention PyTorch SDPA. Highest quality, always available, no extra deps. The safe default and the correct fallback.
--use-split-cross-attention / --use-quad-cross-attention Memory-optimized math attention for older/low-VRAM cards.

Two gotchas worth memorizing:

  1. Z-Image + Sage = broken. Z-Image (Turbo/Base) does not sample correctly under --use-sage-attention; you get black or garbled output. Launch Z-Image with --use-pytorch-cross-attention instead. See z-image-txt2img.
  2. Sage black output on other models. If a model outputs black only with Sage, either switch to --use-pytorch-cross-attention, or (SwarmUI) set Advanced Sampling → Preferred DType = Default (16-bit). Sage-on vs Sage-off also produces slightly different images, so expect non-identical seeds.

When a graph hard-crashes with No module named 'sageattention' / triton: unavailable, the fix is the sdpa / no-compile fallback in triton-sageattention, not this flag.


Cache mode (mutually exclusive)

Flag Effect
(default --cache-ram) Cache results under RAM pressure
--cache-classic Aggressive result caching
--cache-lru N Keep at most N node results (LRU)
--cache-none Cache nothing — re-executes every node; lowest RAM/VRAM. Essential when switching between dual models or when a giant text encoder (FLUX 2's Mistral) must fully unload.

Speed / precision

  • --fast enables experimental, potentially quality-degrading optimizations. Accepts specific PerformanceFeature values: fp16_accumulation, fp8_matrix_mult, cublas_ops, autotune. Bare --fast turns them all on. Test output quality before committing to it.
  • UNet/VAE/text-encoder dtype casts exist too (--fp8_e4m3fn-unet, --fp16-unet, --bf16-unet, --fp32-unet, …) for forcing a compute precision. Usually the model or loader picks the right one, so only reach for these to work around a specific dtype error.

Long video OOM (LTX 2 / WAN, 24GB):   --novram --cache-none
                                      (add --disable-smart-memory if it stalls)
Windows shared-VRAM creep:            --reserve-vram 3
FLUX 2 / huge text-encoder swaps:     --cache-none
High-VRAM throughput (48GB+):         --gpu-only        (or --highvram)
Fast NVIDIA sampling (most models):   --use-ck-attention   (if kitchen INT8 is available)
                                      --use-sage-attention (otherwise; needs the wheel)
Z-Image (any):                        --use-pytorch-cross-attention
ROCm + kitchen + triton ≥ 3.7:        --enable-triton-backend

Cross-refs: video OOM specifics in ltxv2-video / wan-t2v-video; per-model VRAM math in troubleshooting and model-compatibility.


Acceleration stack & GPU coverage (context)

The attention/compile accelerators are version-locked to your exact torch + CUDA + Python. A mismatched wheel doesn't just fail to import; it can break the torch install. A known-good, mutually-compatible stack for late-2025 / 2026 NVIDIA (including Blackwell / RTX 5000, sm_120) looks like:

Component Role Notes
Torch + CUDA base e.g. Torch 2.9.x on CUDA 12.8/13; use the wheel index matching your driver
Triton torch.compile / inductor Windows: triton-windows (woct0rdho)
SageAttention --use-sage-attention wheel matched to torch/CUDA/python
FlashAttention --use-flash-attention built per torch/CUDA/python
xFormers memory-efficient attention optional
InsightFace FaceID / IP-Adapter / ReActor onnxruntime-gpu alongside

Operational facts worth carrying:

  • No system-wide CUDA toolkit is required to run ComfyUI. An up-to-date NVIDIA driver plus prebuilt wheels is enough. A full CUDA/MSVC/cuDNN toolchain is only needed to compile kernels yourself.
  • For broad arch coverage when building wheels, TORCH_CUDA_ARCH_LIST=7.5;8.0;8.6;8.9;9.0;10.0;12.0+PTX spans RTX 20xx→50xx and datacenter (A100/H100/B200). +PTX lets newer archs JIT.
  • DeepSpeed has no wheels for Python 3.13, and several accel wheels lag the newest Python. 3.10 to 3.12 is the safe range for the full stack.
  • Clear the Triton cache (~/.triton / %USERPROFILE%\.triton and temp) when you hit stale-kernel Triton errors after an upgrade.
  • Prefer uv pip install over pip for the venv. Resolves and downloads are dramatically faster. install_comfyui already supports this via preferUv.
  • A single bad custom node can crash all of ComfyUI at startup. Install and test acceleration and new node packs on a fresh/known-good install, not before a deadline. See troubleshooting.

Quantization quick take

  • FP8-scaled (per-tensor scaled) is markedly higher quality than plain base FP8, ~half the size of BF16, and usually faster.
  • Prefer FP8-scaled over GGUF when you have enough system RAM. ComfyUI's block-swap streams from RAM, so BF16/FP8 can run on 24GB GPUs given ample RAM. Fall back to GGUF (Q8→Q4) only when RAM is the constraint.
  • NVFP4 / NVFP8 are markedly faster on Blackwell (RTX 5000) at near-BF16 quality for supported models; LoRA support on NVFP4 is still partial.

Sources

  • Official: ComfyUI CLI args at https://github.com/comfyanonymous/ComfyUI/blob/master/comfy/cli_args.py (--use-ck-attention, --enable-triton-backend, --disable-triton-backend, --fast); hardware gates in comfy/model_management.py (supports_fp8_compute SM ≥ 8.9, supports_nvfp4_compute / supports_mxfp8_compute SM ≥ 10.0); kitchen backends in the comfy-kitchen README https://github.com/Comfy-Org/comfy-kitchen
  • Empirical: operational flag/stack recipes distilled from community auto-installer changelogs (SECourses); flags cross-checked against upstream above. The SwarmUI-only note for --enable-triton-backend is retracted as of ComfyUI master.
1---
2name: comfyui-launch-flags
3description: Pick 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.
4globs:
5 - "**/*.json"
6 - "**/packs/**"
7---
8 
9# ComfyUI launch/performance flags
10 
11## Overview
12 
13CLI flags passed to `main.py` control ComfyUI's runtime behavior
14(e.g. `python main.py --reserve-vram 2 --use-sage-attention`). The three that
15matter most for making a graph *run* rather than OOM or crawl are the
16VRAM strategy, the attention backend, and the cache mode. This skill
17is the decision matrix for choosing them.
18 
19> ⚠️ **Verification note (August 2026).** Every flag below was checked against
20> upstream [`comfy/cli_args.py`](https://github.com/comfyanonymous/ComfyUI/blob/master/comfy/cli_args.py)
21> on current master. ComfyUI adds/renames flags often — when in doubt run
22> `python main.py --help` in the target install and prefer that over this list.
23> **`--enable-triton-backend` / `--disable-triton-backend` ARE ComfyUI `main.py`
24> flags on master** (they used to be documented as SwarmUI-only; that is stale).
25> `--use-ck-attention` is kitchen INT8 attention — no `sageattention` wheel.
26> A June ComfyUI checkout still pins comfy-kitchen 0.2.10 and lacks
27> `--use-ck-attention`; `kitchen` action:"status" reports ComfyUI-side flag
28> support, not only the kitchen version. Use `kitchen` / `panel_kitchen` to see
29> what this GPU can actually run.
30 
31> How to apply today. The MCP's `restart_comfyui` (with `action: "start"`)
32> currently *replays the exact argv of the previous run*. It does not compose
33> fresh flags. So set these when you launch ComfyUI yourself (the
34> `python main.py …` line, a `run.bat`/shell alias, or the SwarmUI backend args
35> box), and the tool will preserve them on restart. Injecting flags through the
36> tool is a tracked follow-up.
37 
38---
39 
40## Decide first: which flag do you need?
41 
42```
43Symptom ▶ Flag(s) to try
44─────────────────────────────────────────────────────────────────────────────
45CUDA out of memory, long video (LTX 2 / WAN) ▶ --novram (+ --cache-none)
46OOM, still want models resident when they fit ▶ --reserve-vram N then --disable-smart-memory
47GPU slows to a crawl, spills into "shared GPU ▶ --reserve-vram 2..4
48 memory" (Windows WDDM) mid-run
49RAM blows up switching between models, or a huge ▶ --cache-none
50 text encoder (FLUX 2 / Mistral) won't unload
51Plenty of VRAM (48GB+), want max throughput ▶ --gpu-only or --highvram
52Want faster sampling on NVIDIA ▶ --use-ck-attention if kitchen INT8 is available (skip the sage wheel); else --use-sage-attention
53Z-Image produces BLACK / wrong output ▶ --use-pytorch-cross-attention (NOT sage)
54Sage gives black output on some models ▶ --use-pytorch-cross-attention (or fix dtype)
55ROCm, kitchen present, triton ≥ 3.7 ▶ --enable-triton-backend
56```
57 
58VRAM strategy and attention backend are each mutually exclusive groups, so
59pass at most one from each. You can combine one VRAM flag + one attention flag +
60one cache flag (e.g. `--novram --use-sage-attention --cache-none`).
61 
62---
63 
64## VRAM strategy (mutually exclusive)
65 
66| Flag | What it does | Use when |
67|------|--------------|----------|
68| `--gpu-only` | Keep everything (incl. text encoders) on GPU | 48GB+ card, single model, max speed |
69| `--highvram` | Keep models resident in VRAM after use | High-VRAM card, repeated runs of one model |
70| *(default)* | ComfyUI's smart offload | Most setups — try this first |
71| `--lowvram` | Offload text encoders / parts to CPU | Mid card OOMing on load |
72| `--novram` | Extreme offload — minimal VRAM footprint | OOM on long video / huge models; pair with `--cache-none` |
73| `--cpu` | Everything on CPU (very slow) | No usable CUDA GPU only |
74 
75Modifiers (combine with the above):
76 
77- `--reserve-vram N` reserves N GB for the OS and other apps. It is the fix for the
78 Windows failure mode where the GPU quietly starts using shared VRAM and
79 throughput collapses. Typical `2` to `4`; bump to `10` for heavy video decode.
80- `--disable-smart-memory` forces aggressive offload to regular RAM instead
81 of keeping models cached in VRAM. Reach for this when a run gets *stuck* or
82 OOMs intermittently. Slightly slower, much more reliable.
83- `--async-offload` enables async weight offload streams (default on where
84 supported); `--disable-async-offload` turns it off if it misbehaves.
85 
86---
87 
88## Attention backend (mutually exclusive)
89 
90| Flag | Notes |
91|------|-------|
92| `--use-ck-attention` | Comfy Kitchen INT8 attention. **No `sageattention` wheel.** Needs comfy-kitchen present and `int8_attention_is_available()` on this GPU. Prefer this over the sage wheel-matching install when `kitchen` action:"status" says INT8 is available. Restart required. |
93| `--use-sage-attention` | Quantized SageAttention kernel, ~20–40% faster sampling. Needs the `sageattention` package installed and version-matched — see [`triton-sageattention`](../triton-sageattention/SKILL.md). Skip this dance when `--use-ck-attention` is available. |
94| `--use-flash-attention` | FlashAttention kernels. Needs `flash-attn` built for your torch/CUDA. |
95| `--enable-triton-backend` / `--disable-triton-backend` | Enable or disable the comfy-kitchen **triton** backend. ComfyUI master flags (not SwarmUI-only). ROCm hosts with kitchen + triton ≥ 3.7 want `--enable-triton-backend`. Restart required. |
96| `--use-pytorch-cross-attention` | PyTorch SDPA. **Highest quality, always available, no extra deps.** The safe default and the correct fallback. |
97| `--use-split-cross-attention` / `--use-quad-cross-attention` | Memory-optimized math attention for older/low-VRAM cards. |
98 
99Two gotchas worth memorizing:
100 
1011. **Z-Image + Sage = broken.** Z-Image (Turbo/Base) does not sample
102 correctly under `--use-sage-attention`; you get black or garbled output.
103 Launch Z-Image with `--use-pytorch-cross-attention` instead. See
104 [`z-image-txt2img`](../z-image-txt2img/SKILL.md).
1052. **Sage black output on other models.** If a model outputs black *only* with
106 Sage, either switch to `--use-pytorch-cross-attention`, or (SwarmUI) set
107 Advanced Sampling → Preferred DType = Default (16-bit). Sage-on vs Sage-off
108 also produces *slightly different* images, so expect non-identical seeds.
109 
110> When a graph hard-crashes with `No module named 'sageattention'` /
111> `triton: unavailable`, the fix is the sdpa / no-compile fallback in
112> [`triton-sageattention`](../triton-sageattention/SKILL.md), not this flag.
113 
114---
115 
116## Cache mode (mutually exclusive)
117 
118| Flag | Effect |
119|------|--------|
120| *(default `--cache-ram`)* | Cache results under RAM pressure |
121| `--cache-classic` | Aggressive result caching |
122| `--cache-lru N` | Keep at most N node results (LRU) |
123| `--cache-none` | Cache nothing — re-executes every node; **lowest RAM/VRAM**. Essential when switching between dual models or when a giant text encoder (FLUX 2's Mistral) must fully unload. |
124 
125---
126 
127## Speed / precision
128 
129- `--fast` enables experimental, potentially quality-degrading
130 optimizations. Accepts specific `PerformanceFeature` values:
131 `fp16_accumulation`, `fp8_matrix_mult`, `cublas_ops`, `autotune`. Bare `--fast`
132 turns them all on. Test output quality before committing to it.
133- UNet/VAE/text-encoder dtype casts exist too
134 (`--fp8_e4m3fn-unet`, `--fp16-unet`, `--bf16-unet`, `--fp32-unet`, …) for
135 forcing a compute precision. Usually the model or loader picks the right one, so
136 only reach for these to work around a specific dtype error.
137 
138---
139 
140## Recommended combos (recipes)
141 
142```
143Long video OOM (LTX 2 / WAN, 24GB): --novram --cache-none
144 (add --disable-smart-memory if it stalls)
145Windows shared-VRAM creep: --reserve-vram 3
146FLUX 2 / huge text-encoder swaps: --cache-none
147High-VRAM throughput (48GB+): --gpu-only (or --highvram)
148Fast NVIDIA sampling (most models): --use-ck-attention (if kitchen INT8 is available)
149 --use-sage-attention (otherwise; needs the wheel)
150Z-Image (any): --use-pytorch-cross-attention
151ROCm + kitchen + triton ≥ 3.7: --enable-triton-backend
152```
153 
154Cross-refs: video OOM specifics in
155[`ltxv2-video`](../ltxv2-video/SKILL.md) / [`wan-t2v-video`](../wan-t2v-video/SKILL.md);
156per-model VRAM math in [`troubleshooting`](../troubleshooting/SKILL.md) and
157[`model-compatibility`](../model-compatibility/SKILL.md).
158 
159---
160 
161## Acceleration stack & GPU coverage (context)
162 
163The attention/compile accelerators are version-locked to your exact
164torch + CUDA + Python. A mismatched wheel doesn't just fail to import; it can
165break the torch install. A known-good, mutually-compatible stack for late-2025 /
1662026 NVIDIA (including Blackwell / RTX 5000, `sm_120`) looks like:
167 
168| Component | Role | Notes |
169|-----------|------|-------|
170| Torch + CUDA | base | e.g. Torch 2.9.x on CUDA 12.8/13; use the wheel index matching your driver |
171| Triton | `torch.compile` / inductor | Windows: `triton-windows` (woct0rdho) |
172| SageAttention | `--use-sage-attention` | wheel matched to torch/CUDA/python |
173| FlashAttention | `--use-flash-attention` | built per torch/CUDA/python |
174| xFormers | memory-efficient attention | optional |
175| InsightFace | FaceID / IP-Adapter / ReActor | `onnxruntime-gpu` alongside |
176 
177Operational facts worth carrying:
178 
179- No system-wide CUDA toolkit is required to *run* ComfyUI. An up-to-date
180 NVIDIA driver plus prebuilt wheels is enough. A full CUDA/MSVC/cuDNN toolchain is
181 only needed to *compile* kernels yourself.
182- For broad arch coverage when building wheels,
183 `TORCH_CUDA_ARCH_LIST=7.5;8.0;8.6;8.9;9.0;10.0;12.0+PTX` spans RTX 20xx→50xx
184 and datacenter (A100/H100/B200). `+PTX` lets newer archs JIT.
185- DeepSpeed has no wheels for Python 3.13, and several accel wheels lag the
186 newest Python. 3.10 to 3.12 is the safe range for the full stack.
187- Clear the Triton cache (`~/.triton` / `%USERPROFILE%\.triton` and temp)
188 when you hit stale-kernel Triton errors after an upgrade.
189- Prefer `uv pip install` over pip for the venv. Resolves and downloads are
190 dramatically faster. `install_comfyui` already supports this via `preferUv`.
191- A single bad custom node can crash all of ComfyUI at startup. Install and test
192 acceleration and new node packs on a fresh/known-good install, not before a
193 deadline. See [`troubleshooting`](../troubleshooting/SKILL.md).
194 
195## Quantization quick take
196 
197- FP8-*scaled* (per-tensor scaled) is markedly higher quality than plain
198 base FP8, ~half the size of BF16, and usually faster.
199- Prefer FP8-scaled over GGUF when you have enough system RAM. ComfyUI's
200 block-swap streams from RAM, so BF16/FP8 can run on 24GB GPUs given ample RAM.
201 Fall back to GGUF (Q8→Q4) only when RAM is the constraint.
202- NVFP4 / NVFP8 are markedly faster on Blackwell (RTX 5000) at near-BF16
203 quality for supported models; LoRA support on NVFP4 is still partial.
204 
205---
206 
207## Sources
208 
209- **Official:** ComfyUI CLI args at https://github.com/comfyanonymous/ComfyUI/blob/master/comfy/cli_args.py (`--use-ck-attention`, `--enable-triton-backend`, `--disable-triton-backend`, `--fast`); hardware gates in `comfy/model_management.py` (`supports_fp8_compute` SM ≥ 8.9, `supports_nvfp4_compute` / `supports_mxfp8_compute` SM ≥ 10.0); kitchen backends in the comfy-kitchen README https://github.com/Comfy-Org/comfy-kitchen
210- **Empirical:** operational flag/stack recipes distilled from community auto-installer changelogs (SECourses); flags cross-checked against upstream above. The SwarmUI-only note for `--enable-triton-backend` is retracted as of ComfyUI master.
211 
View all files on GitHub →

Details

Updated
Sep 21, 2026
License
MIT
Stars on the repo
★ 759
Checked
Source
artokun/comfyui-mcp ↗
Creator
artokun · 44 listings
View creator

Similar skills

See all →
SkillMake Japanese TV-anime style videos with codeAnime celedenfunf/reelmimic · by edenfunfMake Japanese TV-anime style videos (MP4) with code — cel-shaded characters with tapered line art, big detailed eyes, hair clumps with a specular band, comedic anime reactions (sweat drop, anger vein, sparkle eyes, ≥< eyes, dot eyes, tears), painted skies with cumulus clouds, school/street/classroom/rooftop sets with time-of-day palettes, speed/focus lines, impact frames, dramatic zooms, smears, sakura petals and anime subtitles (CJK). Canvas 2D rendered frame by frame in headless Chrome, encoded with ffmpeg. Use when a reference video or brief calls for anime / 動畫 / 日系動畫 / アニメ / cel-shaded / slice-of-life / school romance / shōnen-style reactions, or when the video-clone router picks the anime-cel style. 2D only; characters are original (Hina, Ren) or new ones built on the same rig.★ 3.6k GitHub starsSkillDirect and produce a short film made entirely in codeLemo opuscarlemomo-ai/lemo-opuscar · by lemomo-aiDirect and produce a short film made entirely in code, in one of the styles of the Lemo-Opuscar library (e.g. Impasto Oil Painting 油画厚涂, Watercolor Brush 水彩笔刷, Ukiyo-e 浮世绘, Satellite Briefing 卫星简报, Exploded Teardown 产品拆解, Microscope Story 显微叙事). Use when the user asks for a video, film, short, promo, explainer or animation (视频、短片、动画、宣传片) in a named style, including data, science and product explainers built from real material such as satellite imagery, laser scans, CAD files or archive scans (数据解说、科普、产品拆解); when they want a film made about their own topic and haven't chosen a style (help them choose); or when they ask which film styles there are. Not for editing or converting existing video files.★ 3k GitHub starsSkillGenerate Ian-style Xiaohei illustrations for articles, postsdzhng/skills · by dzhngGenerate Ian-style Xiaohei illustrations for articles, posts, blogs, Notion documents, workflows, methods, processes, structures, states, metaphors, and opinions. Use when the user asks for weird, hand-drawn, Xiaohei, article, editorial, body illustrations, illustration ideas, shot lists, title removal, image edits, or image regeneration. By default, all image text and annotations are English, even when the source article is Chinese; only use another language when the user explicitly asks.★ 1.3k GitHub starsSkillCreating game art through Scenario MCP: spritesScenario game assetsscenario-labs/skills · by scenario-labsUse when creating game art through Scenario MCP: sprites, sprite sheets, icons, props, loot, tilesets and autotile terrain transitions, seamless tiles, isometric buildings, top-down maps, pixel art, UI buttons and panels, parallax background layers or depth planes for side-scrollers, and character or concept art; or when assets need transparent backgrounds, background removal, style-consistent variation batches, upscaling, pixel-grid cleanup, or PNG export for Unity, Godot, or Unreal.★ 854 GitHub starsSkillTrain custom LoRAs with ostris AI-ToolkitAI-Toolkit LoRA Trainer (WAN 2.2 & Z-Image)artokun/comfyui-mcp · by artokunTrain 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.★ 759 GitHub starsSkillAnime/illustration text-to-imageANIMA 1.0 (Anima Base Ultra) Text-to-Image Workflowsartokun/comfyui-mcp · by artokunAnime/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★ 759 GitHub stars

More from artokun

SkillTrain custom LoRAs with ostris AI-ToolkitAI-Toolkit LoRA Trainer (WAN 2.2 & Z-Image)artokun/comfyui-mcp · by artokunTrain 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.★ 759 GitHub starsSkillAnime/illustration text-to-imageANIMA 1.0 (Anima Base Ultra) Text-to-Image Workflowsartokun/comfyui-mcp · by artokunAnime/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★ 759 GitHub starsSkillAuthoring & Publishing ComfyUI Custom Nodesartokun/comfyui-mcp · by artokunAuthoring & publishing ComfyUI custom nodes to the Comfy Registry, covering node structure, pyproject.toml spec, comfy-cli publishing, and CI★ 759 GitHub starsSkillTrain a custom anime LoRA on the ANIMA base modelCitron Anima LoRA Trainerartokun/comfyui-mcp · by artokunTrain a custom anime LoRA on the ANIMA base model with 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★ 759 GitHub starsSkillDiscover Civitai models with the BUILT-IN downloadmodelCivitai + comfyui-mcpartokun/comfyui-mcp · by artokunDiscover Civitai models with the BUILT-IN download_model action:"search_civitai" 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).★ 759 GitHub starsSkillDiagnose and fix video/image color OBJECTIVELYColor Correction (measure, don't eyeball)artokun/comfyui-mcp · by artokunDiagnose and fix video/image color OBJECTIVELY with the get_image (action:"analyze_color") tool (scopes/stats such as 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.★ 759 GitHub stars