For more information (including how to compress models yourself), check out
https://huggingface.co/DFloat11 and
https://github.com/LeanModels/DFloat11
Feel free to request for other models for compression as well, although models whose architecture I am unfamiliar with might be slightly tricky for me.
Follow the instructions here:
https://github.com/LeanModels/ComfyUI-DFloat11. Alternatively, you can install my own fork of the DF11 ComfyUI custom node:
https://github.com/mingyi456/ComfyUI-DFloat11-Extended instead. After installing the DF11 custom node, use the provided workflow
json, or simply replace the "Load Diffusion Model" node of an existing Kontext workflow with the "DFloat11 Model Loader" node. If you run into any issues, feel free to leave a comment. The workflow is also embedded in the below
png image.
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}