-
Notifications
You must be signed in to change notification settings - Fork 193
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
base: master
Are you sure you want to change the base?
[WIP] LoRA for FLUX #1353
Conversation
@@ -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); |
There was a problem hiding this comment.
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:
openvino.genai/src/cpp/src/image_generation/flux_pipeline.hpp
Lines 313 to 315 in aef1591
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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obsolete code
WIP: Currently implemented the vanilla naming convention only. Requires extending to a few more conventions.