We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here are code snippet below:
pipe = RegionalDiffusionXLPipeline.from_pretrained(model_id,torch_dtype=torch.float16, use_safetensors=True, variant="fp16").to("cuda") pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config,use_karras_sigmas=True) mulan_dir = "/****/sdxl_aesthetic.pth" text_encoder_path = "**/models/InternVL-14B-224px" pipe = mulankit.transform(pipe, mulan_dir,text_encoder_path=text_encoder_path)
I found the pipe not work when I transformed the pipe to mulan pipe, it raised the error:
ValueError: do not know how to get attention modules for: InternVLTextModel
but when I load lora model firstly and then transformed pipe, it works.
The text was updated successfully, but these errors were encountered:
It might be caused by that diffusers's load_lora has logic for text encoder lora, which is not compatible with InternVL.
Nonetheless, you could safely transform pipe to mulan pipe at the last step if your lora has no text encoder part.
Sorry, something went wrong.
No branches or pull requests
Here are code snippet below:
I found the pipe not work when I transformed the pipe to mulan pipe, it raised the error:
but when I load lora model firstly and then transformed pipe, it works.
The text was updated successfully, but these errors were encountered: