ComfyUI/comfy
Jedrzej Kosinski fc247150fe
Implement EasyCache and Invent LazyCache (#9496)
* Attempting a universal implementation of EasyCache, starting with flux as test; I screwed up the math a bit, but when I set it just right it works.

* Fixed math to make threshold work as expected, refactored code to use EasyCacheHolder instead of a dict wrapped by object

* Use sigmas from transformer_options instead of timesteps to be compatible with a greater amount of models, make end_percent work

* Make log statement when not skipping useful, preparing for per-cond caching

* Added DIFFUSION_MODEL wrapper around forward function for wan model

* Add subsampling for heuristic inputs

* Add subsampling to output_prev (output_prev_subsampled now)

* Properly consider conds in EasyCache logic

* Created SuperEasyCache to test what happens if caching and reuse is moved outside the scope of conds, added PREDICT_NOISE wrapper to facilitate this test

* Change max reuse_threshold to 3.0

* Mark EasyCache/SuperEasyCache as experimental (beta)

* Make Lumina2 compatible with EasyCache

* Add EasyCache support for Qwen Image

* Fix missing comma, curse you Cursor

* Add EasyCache support to AceStep

* Add EasyCache support to Chroma

* Added EasyCache support to Cosmos Predict t2i

* Make EasyCache not crash with Cosmos Predict ImagToVideo latents, but does not work well at all

* Add EasyCache support to hidream

* Added EasyCache support to hunyuan video

* Added EasyCache support to hunyuan3d

* Added EasyCache support to LTXV (not very good, but does not crash)

* Implemented EasyCache for aura_flow

* Renamed SuperEasyCache to LazyCache, hardcoded subsample_factor to 8 on nodes

* Eatra logging when verbose is true for EasyCache
2025-08-22 22:41:08 -04:00
..
cldm
comfy_types LoRA Trainer: LoRA training node in weight adapter scheme (#8446) 2025-06-13 19:25:59 -04:00
extra_samplers
image_encoders
k_diffusion Separate denoised and noise estimation in Euler CFG++ (#9008) 2025-07-23 19:47:05 -04:00
ldm Implement EasyCache and Invent LazyCache (#9496) 2025-08-22 22:41:08 -04:00
sd1_tokenizer Silence clip tokenizer warning. (#8934) 2025-07-16 14:42:07 -04:00
t2i_adapter Controlnet refactor. 2024-06-27 18:43:11 -04:00
taesd
text_encoders Disable prompt weights for qwen. (#9438) 2025-08-20 01:08:11 -04:00
weight_adapter Fixed an issue where qwenLora could not be loaded properly. (#9208) 2025-08-06 13:23:11 -04:00
checkpoint_pickle.py
cli_args.py Fix XPU iGPU regressions (#9322) 2025-08-13 19:13:35 -04:00
clip_config_bigg.json Fix potential issue with non clip text embeddings. 2024-07-30 14:41:13 -04:00
clip_model.py P2 of qwen edit model. (#9412) 2025-08-18 22:38:34 -04:00
clip_vision_config_g.json
clip_vision_config_h.json
clip_vision_config_vitl_336_llava.json Support llava clip vision model. 2025-03-06 00:24:43 -05:00
clip_vision_config_vitl_336.json
clip_vision_config_vitl.json
clip_vision_siglip_384.json
clip_vision_siglip_512.json
clip_vision.py
conds.py Add some warnings and prevent crash when cond devices don't match. (#9169) 2025-08-04 04:20:12 -04:00
context_windows.py Make step index detection much more robust (#9392) 2025-08-17 18:54:07 -04:00
controlnet.py Support InstantX Qwen controlnet. (#9488) 2025-08-22 00:53:11 -04:00
diffusers_convert.py
diffusers_load.py
float.py
gligen.py Remove some useless code. (#8812) 2025-07-06 07:07:39 -04:00
hooks.py
latent_formats.py Wan 2.2 support. (#9080) 2025-07-28 08:00:23 -04:00
lora_convert.py Support the wan fun reward loras. 2025-04-07 05:01:47 -04:00
lora.py Support SimpleTuner lycoris lora for Qwen-Image (#9280) 2025-08-11 16:56:16 -04:00
model_base.py P2 of qwen edit model. (#9412) 2025-08-18 22:38:34 -04:00
model_detection.py Make it easier to implement future qwen controlnets. (#9485) 2025-08-21 23:18:04 -04:00
model_management.py Support for Qwen Diffsynth Controlnets canny and depth. (#9465) 2025-08-20 22:26:37 -04:00
model_patcher.py Support for Qwen Diffsynth Controlnets canny and depth. (#9465) 2025-08-20 22:26:37 -04:00
model_sampling.py
ops.py Fix last commit not working on older pytorch. (#9346) 2025-08-14 23:44:02 -04:00
options.py
patcher_extension.py Implement EasyCache and Invent LazyCache (#9496) 2025-08-22 22:41:08 -04:00
rmsnorm.py Add warning when using old pytorch. (#9347) 2025-08-15 00:22:26 -04:00
sample.py
sampler_helpers.py Added context window support to core sampling code (#9238) 2025-08-13 21:33:05 -04:00
samplers.py Implement EasyCache and Invent LazyCache (#9496) 2025-08-22 22:41:08 -04:00
sd1_clip_config.json
sd1_clip.py Disable prompt weights for qwen. (#9438) 2025-08-20 01:08:11 -04:00
sd.py Initial support for qwen image model. (#9179) 2025-08-04 22:53:25 -04:00
sdxl_clip.py
supported_models_base.py
supported_models.py Implement wan2.2 camera model. (#9357) 2025-08-15 17:29:58 -04:00
utils.py Add WAN ATI support (#8874) 2025-07-24 20:59:19 -04:00