Skip to content

Commit

Permalink
support OFT
Browse files Browse the repository at this point in the history
  • Loading branch information
okotaku committed Dec 7, 2023
1 parent c32af46 commit ac0d083
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion configs/_base_/models/stable_diffusion_xl_oft.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
unet_lora_config=dict(
type="OFT",
r=8,
alpha=1,
target_modules=["to_q", "to_v", "to_k", "to_out.0"]))
2 changes: 0 additions & 2 deletions tests/test_models/test_archs.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ def test_create_peft_config():
config = dict(
type="OFT",
r=8,
alpha=2,
)
config = create_peft_config(config)
assert isinstance(config, OFTConfig)
assert config.r == 8
assert config.alpha == 2

0 comments on commit ac0d083

Please sign in to comment.