Feature: flux2 klein lora support #8862
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add full LoRA support for FLUX.2 Klein models (4B and 9B variants), including automatic detection, loading, key conversion, and UI integration.
Model Detection & Configuration
context_embedder,vector_in, hidden size, MLP ratio) to distinguish them from FLUX.1 LoRAsvariantfield on the configLoRA_LyCORIS_Flux2_ConfigandLoRA_Diffusers_Flux2_Configmodel configsFluxLoRAFormat.BflPeftas a new recognized LoRA formatConfig_Base.get_tag()to handleNonedefaults (needed for the optionalvariantfield)BFL PEFT LoRA Format Support
flux_bfl_peft_lora_conversion_utils.pywith full BFL PEFT format detection and conversionconvert_bfl_lora_patch_to_diffusers()for LoRAs loaded with FLUX.1 format but applied to FLUX.2 modelsLoRA Loading & Application
Flux2KleinLoRALoaderInvocationandFlux2KleinLoRACollectionLoaderinvocations for applying LoRAs to Klein's transformer and Qwen3 text encoderFrontend
addFlux2KleinLoRAs.tsgraph builder for wiring LoRAs into the Klein generation graphRelated Issues / Discussions
QA Instructions
flux2base with the correct variant (4B/9B) in the Model ManagerMerge Plan
Checklist
What's Newcopy (if doing a release after this PR)