Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Simpler way to implement the #11980 loras. (#11981)

comfyanonymouse0eacb06883c
diff --git a/comfy/utils.py b/comfy/utils.py
index 2e33a4258..5e79fb449 100644
--- a/comfy/utils.py
+++ b/comfy/utils.py
@@ -639,6 +639,8 @@ def flux_to_diffusers(mmdit_config, output_prefix=""):
"proj_out.bias": "linear2.bias",
"attn.norm_q.weight": "norm.query_norm.scale",
"attn.norm_k.weight": "norm.key_norm.scale",
+ "attn.to_qkv_mlp_proj.weight": "linear1.weight", # Flux 2
+ "attn.to_out.weight": "linear2.weight", # Flux 2
}
for k in block_map: