Skip to content

Commit e265c91

Browse files
committed
up
1 parent 3f5b409 commit e265c91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/models/transformers/test_models_transformer_flux.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def test_lora_exclude_modules(self):
195195
inject_adapter_in_model(config, model, adapter_name=adapter_name, state_dict=lora_state_dict)
196196
set_peft_model_state_dict(model, lora_state_dict, adapter_name)
197197
retrieved_lora_state_dict = get_peft_model_state_dict(model, adapter_name=adapter_name)
198+
assert len(retrieved_lora_state_dict) == len(lora_state_dict)
198199
assert (retrieved_lora_state_dict["single_transformer_blocks.0.proj_out.lora_A.weight"] == 22).all()
199200
assert (retrieved_lora_state_dict["single_transformer_blocks.0.proj_out.lora_B.weight"] == 33).all()
200201

0 commit comments

Comments
 (0)