mingyi456 commited on
Commit
4ad3eea
·
verified ·
1 Parent(s): bf58365

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -1
README.md CHANGED
@@ -10,4 +10,41 @@ tags:
10
  base_model:
11
  - meituan-longcat/LongCat-Image-Edit
12
  base_model_relation: quantized
13
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  base_model:
11
  - meituan-longcat/LongCat-Image-Edit
12
  base_model_relation: quantized
13
+ ---
14
+ For more information (including how to compress models yourself), check out https://huggingface.co/DFloat11 and https://github.com/LeanModels/DFloat11
15
+
16
+ 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.
17
+
18
+ ### How to Use
19
+
20
+ #### ComfyUI
21
+ Install the ComfyUI DFloat11 Extended node via the ComfyUI manager. After installing, simply replace the "Load Diffusion Model" node of an existing workflow with the "Load Diffusion Model" node. If you run into any issues, feel free to leave a comment.
22
+
23
+ #### `diffusers`
24
+ Refer to this [model](https://huggingface.co/mingyi456/LongCat-Image-Edit-DF11) instead.
25
+
26
+ ### Compression Details
27
+
28
+ This is the `pattern_dict` for compression:
29
+
30
+ ```python
31
+ pattern_dict_comfyui = {
32
+ r"double_blocks\.\d+": (
33
+ "img_mod.lin",
34
+ "img_attn.qkv",
35
+ "img_attn.proj",
36
+ "img_mlp.0",
37
+ "img_mlp.2",
38
+ "txt_mod.lin",
39
+ "txt_attn.qkv",
40
+ "txt_attn.proj",
41
+ "txt_mlp.0",
42
+ "txt_mlp.2",
43
+ ),
44
+ r"single_blocks\.\d+": (
45
+ "linear1",
46
+ "linear2",
47
+ "modulation.lin",
48
+ ),
49
+ }
50
+ ```