Add Selective LoRA Loader support for FLUX 2 Klein 9B#46
Open
diodiogod wants to merge 1 commit into
Open
Conversation
FLUX 2 Klein 9B has a smaller architecture than standard FLUX: - 8 double blocks (vs 19 in standard FLUX) - 24 single blocks (vs 38 in standard FLUX) - 32 total blocks Covers both flux-2-klein-9b (distilled) and flux-2-klein-base-9b which share the same block architecture. Changes: - selective_lora_loader.py: Add FLUXKleinSelectiveLoRALoader (V1) - lora_analyzer_v2.py: Add FLUX_KLEIN config for V2 combined node - web/js/dynamic_inputs.js: Add Klein node configs and register nodes - __init__.py: Register FLUXKleinSelectiveLoRALoader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds selective LoRA block loading support for FLUX 2 Klein 9B models.
FLUX 2 Klein 9B has a smaller architecture than standard FLUX:
Covers both
flux-2-klein-9b(distilled) andflux-2-klein-base-9b— same block architecture, same key naming conventions as standard FLUX (double_blocks.N,single_blocks.N).Changes
selective_lora_loader.py: AddFLUXKleinSelectiveLoRALoader(V1 node)lora_analyzer_v2.py: AddFLUX_KLEINconfig for V2 combined analyzer+loader nodeweb/js/dynamic_inputs.js: Register Klein nodes with correct block configs and presets__init__.py: RegisterFLUXKleinSelectiveLoRALoaderNew nodes
Note
This PR is intentionally kept minimal (Klein support only). In my fork I am merging this together with PR #30 (bidirectional sync + slider improvements). If you are interested in that feature as well, it is available there.