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

Optionally bundle joint-trained embeddings into LoRAs #278

Merged
merged 8 commits into from
May 10, 2024

Conversation

mx
Copy link
Collaborator

@mx mx commented May 2, 2024

This uses the format defined by AUTOMATIC1111/stable-diffusion-webui#13568. I tested it for SD1.5; I can't run any of the others on my machine so did not test those.

Currently A1111 only supports SD1.5/SD2/SDXL. There's no Wuerstchen or Pixart support in anything to actually use the bundled embeddings. That said, there was no reason to not extend the format to them.

I only write out the embeddings under model.additional_embeddings rather than anything in model.additional_embedding_states, with the idea that just because an embedding is present in training doesn't mean it should be shipped with the model. If I've misunderstood something about how model.additional_embedding_states is used, please correct me on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants