Support block editing for loras (Hunyuan et al)#10
Open
JaredTherriault wants to merge 6 commits intoskfoo:masterfrom
Open
Support block editing for loras (Hunyuan et al)#10JaredTherriault wants to merge 6 commits intoskfoo:masterfrom
JaredTherriault wants to merge 6 commits intoskfoo:masterfrom
Conversation
…_blocks[1-10,12,13] to pass only double blocks that match indices 1 to 10 plus 12 and 13. Additionally, you can say "even" or "odd" to pass every other index for a given block section.
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.
Now blocks can be filtered in text loras.
lora:dog:1.0:double_blocks will filter in only the double blocks with model and clip weights set to 1.0.
lora:dog:1.0:0.5:single_blocks will filter in only the single blocks with model weight at 1.0 and clip weights set to 0.5.
To select only certain block indices, separate individual indices by comma (11, 12) or indicate a range with a hyphen (0-10).
<lora:dog:1.0:double_blocks[0-10, 12, 13]> to include only the numbered double blocks.
<lora:dog:1.0:double_blocks[0-10, 12, 13]:single_blocks[10,15]> to include only the numbered double and single blocks.
Blocks can be indicated in any order and no error will be thrown in the event that a block index does not exist.
Finally, one can indicate "even" or "odd" instead to select every other block in a given block section, like this:
lora:dog:1.0:double_blocks[even] to include only even double blocks.
lora:dog:1.0:single_blocks[odd] to include only odd single blocks.