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

[WIP] LoRA for FLUX #1353

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

slyalin
Copy link
Collaborator

@slyalin slyalin commented Dec 10, 2024

WIP: Currently implemented the vanilla naming convention only. Requires extending to a few more conventions.

@github-actions github-actions bot added category: text to image Text 2 image pipeline category: GenAI C++ API Changes in GenAI C++ public headers labels Dec 10, 2024
@ilya-lavrenov ilya-lavrenov added this to the 2025.0 milestone Dec 10, 2024
@ilya-lavrenov ilya-lavrenov self-assigned this Dec 10, 2024
@@ -321,6 +323,9 @@ class FluxPipeline : public DiffusionPipeline {

check_inputs(m_custom_generation_config, initial_image);

m_clip_text_encoder->set_adapters(m_custom_generation_config.adapters);
m_transformer->set_adapters(m_custom_generation_config.adapters);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, add LoRA adapters here:

void set_lora_adapters(std::optional<AdapterConfig> adapters) override {
OPENVINO_THROW("LORA adapters are not implemented for FLUX pipeline yet");
}

} else {
compiled_model = utils::singleton_core().compile_model(m_model, device, properties);
}
get_input_names(m_config.m_model_input_names, compiled_model.inputs());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

obsolete code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: GenAI C++ API Changes in GenAI C++ public headers category: text to image Text 2 image pipeline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants