chengzeyi/Comfy-WaveSpeed

https://wavespeed.ai/ [WIP] The all in one inference optimization solution for ComfyUI, universal, flexible, and fast.

What it solves

Comfy-WaveSpeed accelerates local AI image and video generation in ComfyUI. It addresses the high computational cost of running large diffusion models by providing tools to skip redundant calculations and optimize model execution.

How it works

This project provides two primary optimization nodes for ComfyUI workflows:

  • First Block Cache (FBCache): This technique monitors the output of the first transformer block. If the change between steps is small enough, the system reuses the previous final output instead of calculating all subsequent blocks, significantly reducing the workload.
  • Enhanced torch.compile: This node optimizes the model's execution graph. It performs a one-time compilation process that caches the model's structure for faster performance in future runs, with added support for LoRAs.

Who it’s for

It is designed for ComfyUI users who want to speed up their local generation pipelines for models like FLUX, SDXL, SD3.5, LTXV, and HunyuanVideo. It is particularly useful for users with local GPUs looking to maximize their hardware efficiency.

Highlights

  • Achieves speedups of 1.5x to 3.0x using First Block Cache.
  • Compatible with a wide range of popular diffusion models.
  • Enhanced compilation node supports LoRA usage, unlike standard implementations.
  • Includes pre-built demo workflows for easy integration.
  • Provides flexible threshold settings to balance speed and image quality.

Related

  • Project
  • Project
  • Project
  • Project
  • Project