For more information (including how to compress models yourself), check out and
Modellquelle
Quellenbeschreibung
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.
Quellen
1 QuelleVerifiziert 21. Okt.
Modellartefakte
1 Artefaktflux1-krea-dev-DF11-old.safetensors
safetensors · 15,2 GB · SHA-256 f7903a0b21f5…3399 · Hugging Face
HerunterladenQuellenauszüge
3 AuszügeInstall 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.
diffusersRefer to this model instead.
This is the pattern_dict for compression:
pattern_dict_comfyui = {
r"double_blocks\.\d+": (
"img_mod.lin",
"img_attn.qkv",
"img_attn.proj",
"img_mlp.0",
"img_mlp.2",
"txt_mod.lin",
"txt_attn.qkv",
"txt_attn.proj",
"txt_mlp.0",
"txt_mlp.2",
),
r"single_blocks\.\d+": (
"linear1",
"linear2",
"modulation.lin",
),
}
--- base_model: - black-forest-labs/FLUX.1-Krea-dev base_model_relation: quantized pipeline_tag: text-to-image tags: - dfloat11 - df11 - lossless compression - 70% size, 100% accuracy - diffusion-single-file --- ## This is the fixed model for compatibility with recent ComfyUI versions. 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. ### How to Use #### ComfyUI 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. #### `diffusers` Refer to this [model](https://huggingface.co/DFloat11/FLUX.1-Krea-dev-DF11) instead. ### Compression Details This is the `pattern_dict` for compression: ```python pattern_dict_comfyui = { r"double_blocks\.\d+": ( "img_mod.lin", "img_attn.qkv", "img_attn.proj", "img_mlp.0", "img_mlp.2", "txt_mod.lin", "txt_attn.qkv", "txt_attn.proj", "txt_mlp.0", "txt_mlp.2", ), r"single_blocks\.\d+": ( "linear1", "linear2", "modulation.lin", ), } ```
Source context: 47 downloads · 1 likes · Pipeline text-to-image · Library diffusion-single-file · Repo mingyi456/FLUX.1-Krea-dev-DF11-ComfyUI
Source context: 35 downloads · 1 likes · Pipeline text-to-image · Library diffusion-single-file · Repo mingyi456/FLUX.1-Krea-dev-DF11-ComfyUI