diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

Bug: set adapters when model is compiled

Open chenxiao111222 opened this issue 8 months ago • 0 comments

https://github.com/huggingface/diffusers/blob/7fc53b5d66867f9e59398f5a14dd3dd9fbc700dd/src/diffusers/loaders/lora_base.py#L839 I note that transformer.__class__ is changed from diffusers.models.transformers.transformer_flux.FluxTransformer2DModel to torch._dynamo.eval_frame.OptimizedModule when I use torch.compile, so I can't use set_adapters.

chenxiao111222 avatar Jun 22 '25 05:06 chenxiao111222