Tooluck logoTooluck
SKILL.md

triton-sageattention

Agent skill fromartokun/comfyui-mcp

Install Triton + SageAttention to accelerate ComfyUI (the sageattn attention_mode and inductor torch.compile used by WanVideoWrapper / many video graphs). Windows-first (triton-windows + woct0rdho prebuilt SageAttention wheels matched to torch/CUDA/python into the RIGHT python), plus Linux (official triton + build) and Mac (N/A → sdpa/MPS). Also covers the SAFE sdpa / no-compile fallback so an example that assumes sageattn + torch.compile still runs when these aren't installed (video-extend TRAP 5). Use when a loader crashes with "No module named 'sageattention'" or reports triton unavailable, when asked to speed up Wan/video workflows, or when deciding whether to install acceleration vs. fall back.

How to install triton-sageattention

install triton-sageattention
# install the comfyui-mcp pack with the skills CLI
npx skills add artokun/comfyui-mcp

# or add only this skill to Claude Code: copy the folder

plugin/skills/triton-sageattention/

# into

~/.claude/skills/triton-sageattention/ (all projects)

.claude/skills/triton-sageattention/ (one project)

plugin/skills/triton-sageattention/SKILL.md

MITFull file
1# Triton + SageAttention (ComfyUI acceleration)
2
3> See also [`comfyui-launch-flags`](../comfyui-launch-flags/SKILL.md) for the full
4> attention / VRAM / cache flag matrix. Note the Z-Image exception: Z-Image is
5> broken under `--use-sage-attention`, so launch it with
6> `--use-pytorch-cross-attention` instead.
7
8## Prefer kitchen INT8 attention when it is available
9
10If `kitchen` action:"status" (or `panel_kitchen`) reports kitchen present and
11`int8_attention_is_available` on this GPU, launch with **`--use-ck-attention`**
12and **skip the sageattention wheel dance**. Kitchen INT8 attention is a ComfyUI
13flag; it does not need a version-matched `sageattention` wheel. Restart
14required, consent-gated like every restart.
15
16Only fall through to the Triton + SageAttention install below when kitchen INT8
17is **unknown** or **not available**. A failed kitchen probe is unknown, not a no.
18
19## Overview
20
21Two optional accelerators that many modern video graphs (especially kijai's
22ComfyUI-WanVideoWrapper) reference by default:
23
24- SageAttention (`import sageattention`), a quantized attention kernel.
25 Selected via a node's `attention_mode = sageattn` (WanVideoWrapper) or ComfyUI's
26 `--use-sage-attention` startup flag. ~20 to 40% faster sampling on supported
27 NVIDIA GPUs.
28- Triton, the GPU kernel compiler that inductor `torch.compile` needs.
29 WanVideoWrapper's `WanVideoTorchCompileSettings` (and any `torch.compile`/
30 inductor node) compiles the model through Triton for another speedup.
31…

Excerpt shown under the repository's MIT license.

More skills in comfyui-mcp

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates