Commit f6c36b9
committed
Fix get_dummy_wan_inputs for two-expert Wan2.2 I2V pipeline
get_dummy_wan_inputs (used by WanPipeline.quantize_transformer) assumed a single
pipeline.transformer and the single-transformer prepare_latents() signature.
WanPipelineI2V_2_2 (Wan2.2-I2V-A14B) is two-expert: it has
low_noise_transformer / high_noise_transformer (no .transformer) and a different
prepare_latents() signature, so qwix quantization crashed with
AttributeError: 'WanPipelineI2V_2_2' object has no attribute 'transformer'
and then
TypeError: prepare_latents() got an unexpected keyword argument 'vae_scale_factor_temporal'.
When pipeline.transformer is absent, build dummy latents directly in the
(B, C, F, H, W) layout WanModel.__call__ expects, taking num_channels_latents
from an existing expert. The single-transformer path is unchanged.
Validated on Wan2.2-I2V-A14B (v6e): quantization now proceeds past these errors
into qwix.quantize_model.1 parent 08566b1 commit f6c36b9
1 file changed
Lines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
370 | 384 | | |
371 | 385 | | |
372 | 386 | | |
| |||
0 commit comments