84aacde13bed77bb39eae2f34255342f68b16d97
ComfyUI-Lightning
The codes are modified from SageAttention, ComfyUI-TeaCache, comfyui-flux-accelerator and Comfy-WaveSpeed.
I use follow tips to accelerate FLUX inference speed:
- Add
TeaCacheorFBCacheorMBCache; - Skip some unnessasery blocks;
- Compile and quantize model;
- Use fast CuDNN attention kernels;
- Use SageAttention;
- Fix
AttributeError: 'SymInt' object has no attribute 'size'to speed up recompilation after a resolution change.
MBCache extends FBCache and is applied to cache multiple blocks. More details see above given repositories.
Usage
Languages
Python
99.9%

