Views
No views yet

diffuserspattern_dict for compressing Flux-based models in ComfyUI:1pattern_dict_comfyui = {
2 "double_blocks\.\d+": (
3 "img_mod.lin",
4 "img_attn.qkv",
5 "img_attn.proj",
6 "img_mlp.0",
7 "img_mlp.2",
8 "txt_mod.lin",
9 "txt_attn.qkv",
10 "txt_attn.proj",
11 "txt_mlp.0",
12 "txt_mlp.2",
13 ),
14 "single_blocks\.\d+": (
15 "linear1",
16 "linear2",
17 "modulation.lin",
18 ),
19}