diffsynth-engine 0.7.1.dev5__py3-none-any.whl → 0.7.1.dev7__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/pipelines/qwen_image.py +1 -1
- diffsynth_engine/utils/flag.py +4 -3
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev7.dist-info}/METADATA +1 -1
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev7.dist-info}/RECORD +9 -9
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev7.dist-info}/WHEEL +1 -1
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev7.dist-info}/licenses/LICENSE +0 -0
- {diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev7.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
|
|
@@ -695,7 +695,7 @@ class QwenImagePipeline(BasePipeline):
|
|
|
695
695
|
|
|
696
696
|
if width is None and height is None:
|
|
697
697
|
width, height = 1328, 1328
|
|
698
|
-
self.validate_image_size(height, width, minimum=
|
|
698
|
+
self.validate_image_size(height, width, minimum=16, multiple_of=16)
|
|
699
699
|
|
|
700
700
|
if not isinstance(controlnet_params, list):
|
|
701
701
|
controlnet_params = [controlnet_params]
|
diffsynth_engine/utils/flag.py
CHANGED
|
@@ -8,8 +8,9 @@ logger = logging.get_logger(__name__)
|
|
|
8
8
|
|
|
9
9
|
def check_module_available(module_path: str, module_name: str = None) -> bool:
|
|
10
10
|
try:
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
importlib.import_module(module_path)
|
|
12
|
+
available = True
|
|
13
|
+
except Exception:
|
|
13
14
|
available = False
|
|
14
15
|
|
|
15
16
|
if module_name:
|
|
@@ -26,7 +27,7 @@ FLASH_ATTN_4_AVAILABLE = check_module_available("flash_attn.cute.interface", "Fl
|
|
|
26
27
|
FLASH_ATTN_3_AVAILABLE = check_module_available("flash_attn_interface", "Flash attention 3")
|
|
27
28
|
FLASH_ATTN_2_AVAILABLE = check_module_available("flash_attn", "Flash attention 2")
|
|
28
29
|
XFORMERS_AVAILABLE = check_module_available("xformers", "XFormers")
|
|
29
|
-
AITER_AVAILABLE = check_module_available("aiter", "Aiter")
|
|
30
|
+
AITER_AVAILABLE = check_module_available("aiter.flash_attn_fp8_pertensor_func", "Aiter")
|
|
30
31
|
|
|
31
32
|
SDPA_AVAILABLE = hasattr(torch.nn.functional, "scaled_dot_product_attention")
|
|
32
33
|
if SDPA_AVAILABLE:
|
|
@@ -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,10 +158,10 @@ 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
|
-
diffsynth_engine/pipelines/qwen_image.py,sha256=
|
|
164
|
+
diffsynth_engine/pipelines/qwen_image.py,sha256=0GvGoZ1Ju5MPzZcszbSp8vvVKi3IIhPg8zMw6tsFjz4,35627
|
|
165
165
|
diffsynth_engine/pipelines/sd_image.py,sha256=nr-Nhsnomq8CsUqhTM3i2l2zG01YjwXdfRXgr_bC3F0,17891
|
|
166
166
|
diffsynth_engine/pipelines/sdxl_image.py,sha256=v7ZACGPb6EcBunL6e5E9jynSQjE7GQx8etEV-ZLP91g,21704
|
|
167
167
|
diffsynth_engine/pipelines/utils.py,sha256=HZbJHErNJS1DhlwJKvZ9dY7Kh8Zdlsw3zE2e88TYGRY,2277
|
|
@@ -192,7 +192,7 @@ diffsynth_engine/utils/cache.py,sha256=Ivef22pCuhEq-4H00gSvkLS8ceVZoGis7OSitYL6g
|
|
|
192
192
|
diffsynth_engine/utils/constants.py,sha256=Tsn3EAByfZra-nGcx0NEcP9nWTPKaDGdatosE3BuPGE,3846
|
|
193
193
|
diffsynth_engine/utils/download.py,sha256=w9QQjllPfTUEY371UTREU7o_vvdMY-Q2DymDel3ZEZY,6792
|
|
194
194
|
diffsynth_engine/utils/env.py,sha256=k749eYt_qKGq38GocDiXfkhp8nZrowFefNVTZ8R755I,363
|
|
195
|
-
diffsynth_engine/utils/flag.py,sha256=
|
|
195
|
+
diffsynth_engine/utils/flag.py,sha256=PSssT1agxSMMAVRZXBnilQ1q3rZwzk8lGCGfTJgtqa4,2483
|
|
196
196
|
diffsynth_engine/utils/fp8_linear.py,sha256=k34YFWo2dc3t8aKjHaCW9CbQMOTqXxaDHk8aw8aKif4,3857
|
|
197
197
|
diffsynth_engine/utils/gguf.py,sha256=ZWvw46V4g4uVyAR_oCq-4K5nPdKVrYk3u47uXMgA9lU,14092
|
|
198
198
|
diffsynth_engine/utils/image.py,sha256=jqx-UKfdc2YRBtHoL-RP2M8yce_0h2rTIJgf6mux-aU,12695
|
|
@@ -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.dev7.dist-info/licenses/LICENSE,sha256=x7aBqQuVI0IYnftgoTPI_A0I_rjdjPPQkjnU6N2nikM,11346
|
|
213
|
+
diffsynth_engine-0.7.1.dev7.dist-info/METADATA,sha256=Tv8IEL6r7NbkQjxss_9VKtc59mXWTFyAWmWqYh5f6Nk,1163
|
|
214
|
+
diffsynth_engine-0.7.1.dev7.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
|
|
215
|
+
diffsynth_engine-0.7.1.dev7.dist-info/top_level.txt,sha256=6zgbiIzEHLbhgDKRyX0uBJOV3F6VnGGBRIQvSiYYn6w,17
|
|
216
|
+
diffsynth_engine-0.7.1.dev7.dist-info/RECORD,,
|
{diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev7.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{diffsynth_engine-0.7.1.dev5.dist-info → diffsynth_engine-0.7.1.dev7.dist-info}/top_level.txt
RENAMED
|
File without changes
|