diffsynth-engine 0.7.1.dev5__py3-none-any.whl → 0.7.1.dev6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- diffsynth_engine/models/flux2/flux2_dit.py +2 -1
- diffsynth_engine/pipelines/flux2_klein_image.py +2 -1
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev6.dist-info}/METADATA +1 -1
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev6.dist-info}/RECORD +7 -7
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev6.dist-info}/WHEEL +0 -0
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev6.dist-info}/licenses/LICENSE +0 -0
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev6.dist-info}/top_level.txt +0 -0
|
@@ -1058,7 +1058,8 @@ class Flux2DiT(PreTrainedModel):
|
|
|
1058
1058
|
dtype: torch.dtype = torch.float32,
|
|
1059
1059
|
**kwargs,
|
|
1060
1060
|
) -> "Flux2DiT":
|
|
1061
|
-
|
|
1061
|
+
with torch.device("meta"):
|
|
1062
|
+
model = cls(device="meta", dtype=dtype, **kwargs)
|
|
1062
1063
|
model = model.requires_grad_(False)
|
|
1063
1064
|
model.load_state_dict(state_dict, assign=True)
|
|
1064
1065
|
model.to(device=device, dtype=dtype, non_blocking=True)
|
|
@@ -202,7 +202,8 @@ class Flux2KleinPipeline(BasePipeline):
|
|
|
202
202
|
else:
|
|
203
203
|
with open(FLUX2_TEXT_ENCODER_8B_CONF_PATH, "r", encoding="utf-8") as f:
|
|
204
204
|
qwen3_config = Qwen3Config(**json.load(f))
|
|
205
|
-
|
|
205
|
+
if "lm_head.weight" in state_dicts.encoder:
|
|
206
|
+
state_dicts.encoder.pop("lm_head.weight")
|
|
206
207
|
dit_config = {"guidance_embeds": False, "joint_attention_dim": 12288, "num_attention_heads": 32, "num_layers": 8, "num_single_layers": 24}
|
|
207
208
|
text_encoder = Qwen3Model.from_state_dict(
|
|
208
209
|
state_dicts.encoder, config=qwen3_config, device=init_device, dtype=config.encoder_dtype
|
|
@@ -109,7 +109,7 @@ diffsynth_engine/models/flux/flux_redux.py,sha256=-X-eu4NGEu-4PmK9hM-u4nRrWqvW6a
|
|
|
109
109
|
diffsynth_engine/models/flux/flux_text_encoder.py,sha256=ruqFICZXQfZtHUasXHw5FK6uOi-IJdFjC-_GM0m5bco,3629
|
|
110
110
|
diffsynth_engine/models/flux/flux_vae.py,sha256=lsiqqsl6eT_ry3vGkrqgLi5EVrFFXYm8wUkezspowD8,3705
|
|
111
111
|
diffsynth_engine/models/flux2/__init__.py,sha256=Vpm-oP80mBsiOA1HPHfe0Fjrva4a0i0EB5cRzebUsMk,111
|
|
112
|
-
diffsynth_engine/models/flux2/flux2_dit.py,sha256=
|
|
112
|
+
diffsynth_engine/models/flux2/flux2_dit.py,sha256=aWl7sdfKQYEKSJJmub4Bb_LlLIQeFOlsTINtX0721j8,42146
|
|
113
113
|
diffsynth_engine/models/flux2/flux2_vae.py,sha256=zQ1BQe3S2wnfTHp3t8AwRX_K0SONDZvima2w6Qd8uzE,83021
|
|
114
114
|
diffsynth_engine/models/hunyuan3d/__init__.py,sha256=iWB2mu95TBhOwDseuwQnUjDS_IQxLIZLmcuEW2-bbIg,206
|
|
115
115
|
diffsynth_engine/models/hunyuan3d/dino_image_encoder.py,sha256=KWhVNOlMjaL7sEA_W19OgoFBchauWAaShC-OfQK677k,14273
|
|
@@ -158,7 +158,7 @@ diffsynth_engine/models/z_image/z_image_dit.py,sha256=la_fcNRbLBuP7FS26ixS0hkcEo
|
|
|
158
158
|
diffsynth_engine/models/z_image/z_image_dit_omni_base.py,sha256=cfdUFTwGFYRiyBhB_4ptn0lAvYuLAulF6zf0ABqlAzs,44854
|
|
159
159
|
diffsynth_engine/pipelines/__init__.py,sha256=pcqwWR-K3jOMYiko82gSKjixYPTrfWCpZAa6qrPmdFg,880
|
|
160
160
|
diffsynth_engine/pipelines/base.py,sha256=h6xOqT1LMFGrJYoTD68_VoHcfRX04je8KUE_y3BUZfM,17279
|
|
161
|
-
diffsynth_engine/pipelines/flux2_klein_image.py,sha256=
|
|
161
|
+
diffsynth_engine/pipelines/flux2_klein_image.py,sha256=ZNdr0j_o4JlHfdKT1MaRhAiPivv3iuLF6R5tXOyl1Es,24908
|
|
162
162
|
diffsynth_engine/pipelines/flux_image.py,sha256=L0ggxpthLD8a5-zdPHu9z668uWBei9YzPb4PFVypDNU,50707
|
|
163
163
|
diffsynth_engine/pipelines/hunyuan3d_shape.py,sha256=TNV0Wr09Dj2bzzlpua9WioCClOj3YiLfE6utI9aWL8A,8164
|
|
164
164
|
diffsynth_engine/pipelines/qwen_image.py,sha256=Xc3H5LiQj2MUdi2KgFD2G2VqDwUa2ehqj4H35sr8iro,35627
|
|
@@ -209,8 +209,8 @@ diffsynth_engine/utils/video.py,sha256=8FCaeqIdUsWMgWI_6SO9SPynsToGcLCQAVYFTc4CD
|
|
|
209
209
|
diffsynth_engine/utils/memory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
210
210
|
diffsynth_engine/utils/memory/linear_regression.py,sha256=oW_EQEw13oPoyUrxiL8A7Ksa5AuJ2ynI2qhCbfAuZbg,3930
|
|
211
211
|
diffsynth_engine/utils/memory/memory_predcit_model.py,sha256=EXprSl_zlVjgfMWNXP-iw83Ot3hyMcgYaRPv-dvyL84,3943
|
|
212
|
-
diffsynth_engine-0.7.1.
|
|
213
|
-
diffsynth_engine-0.7.1.
|
|
214
|
-
diffsynth_engine-0.7.1.
|
|
215
|
-
diffsynth_engine-0.7.1.
|
|
216
|
-
diffsynth_engine-0.7.1.
|
|
212
|
+
diffsynth_engine-0.7.1.dev6.dist-info/licenses/LICENSE,sha256=x7aBqQuVI0IYnftgoTPI_A0I_rjdjPPQkjnU6N2nikM,11346
|
|
213
|
+
diffsynth_engine-0.7.1.dev6.dist-info/METADATA,sha256=rriiDgtLmHVUmFGOPEP7kuSGi6wOYR8gggOZ9EGdSG8,1163
|
|
214
|
+
diffsynth_engine-0.7.1.dev6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
215
|
+
diffsynth_engine-0.7.1.dev6.dist-info/top_level.txt,sha256=6zgbiIzEHLbhgDKRyX0uBJOV3F6VnGGBRIQvSiYYn6w,17
|
|
216
|
+
diffsynth_engine-0.7.1.dev6.dist-info/RECORD,,
|
|
File without changes
|
{diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev6.dist-info}/top_level.txt
RENAMED
|
File without changes
|