Skip to content
New issue

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

Plans on LyCORIS support? #52

Open
JakobLS opened this issue Dec 11, 2024 · 0 comments
Open

Plans on LyCORIS support? #52

JakobLS opened this issue Dec 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@JakobLS
Copy link

JakobLS commented Dec 11, 2024

Do you have any plans on supporting LyCORIS weights as well, a part from current LoRA?

When I try to apply them on the INT4 pipeline as follows

transformer = NunchakuFluxTransformer2dModel.from_pretrained("mit-han-lab/svdq-int4-flux.1-dev")
t2i_pipe = AutoPipelineForText2Image.from_pretrained(
    "black-forest-labs/FLUX.1-dev",
    transformer=transformer,
    torch_dtype=torch.bfloat16
)

# Apply LoCORIS weights
lycoris_net, _ = create_lycoris_from_weights(1, weight_path, t2i_pipe.transformer)
lycoris_net.apply_to()

the code completes without erroring out:

2024-12-11 16:41:20|[LyCORIS]-INFO: Loading Modules from state dict...
2024-12-11 16:41:20|[LyCORIS]-INFO: 0 Modules Loaded

But 0 modules are loaded, and I get no effect at all on the resulting images.

When I apply the weights on the bf16 model, 342 modules are loaded and I do get an effect. It looks like the modules are not properly loaded onto the pipeline.

Or perhaps this is more on LYCORIS's side?

@JakobLS JakobLS changed the title LyCORIS support Plans on LyCORIS support? Dec 14, 2024
@lmxyy lmxyy added the enhancement New feature or request label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants