D-Ogi/ComfyUI-Attention-Optimizer

Automatically benchmark and optimize attention in diffusion models. 1.5-2x speedup on RTX 4090.

40
/ 100
Emerging

Implements automatic benchmarking of multiple attention backends (PyTorch SDPA, Flash Attention, SageAttention, xFormers) within ComfyUI, detecting optimal implementations per GPU and model configuration, then applies the fastest via model patching. Caches benchmark results by model hash to eliminate repeated overhead, with support for diverse architectures (SDXL, Flux, video models) and head dimensions. Provides granular backend selection with per-GPU recommendations and detailed performance reporting.

No Package No Dependents
Maintenance 10 / 25
Adoption 7 / 25
Maturity 9 / 25
Community 14 / 25

How are scores calculated?

Stars

27

Forks

5

Language

Python

License

MIT

Last pushed

Feb 09, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/diffusion/D-Ogi/ComfyUI-Attention-Optimizer"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.