Skip to content

Commit 8aea0e3

Browse files
committed
Fix quantization for WAN2.1
1 parent 7cbb714 commit 8aea0e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maxdiffusion/pipelines/wan/wan_pipeline_2_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _load_and_init(cls, config, restored_checkpoint=None, vae_only=False, load_t
6262
@classmethod
6363
def from_pretrained(cls, config: HyperParameters, vae_only=False, load_transformer=True):
6464
pipeline , transformer = cls._load_and_init(config, None, vae_only, load_transformer)
65-
transformer = cls.quantize_transformer(config, transformer, pipeline, pipeline.mesh)
65+
pipeline.transformer = cls.quantize_transformer(config, transformer, pipeline, pipeline.mesh)
6666
return pipeline
6767

6868
@classmethod

0 commit comments

Comments
 (0)