[Bugfix] Reject partially bound diffusion LoRA adapters (#8008)
Signed-off-by: Haozhe Jiang <162801044+provoke210@users.noreply.github.com>
This commit is contained in:
1 parent
98e123f3e0
commit
dbd6a35dd2
4 files changed
+146
-26
No files matched your search
@@ -710,6 +710,8 @@ def test_lora_manager_activates_native_packed_qkv(tmp_path):
|
||||
assert isinstance(packed, PackedLoRALayerWeights)
|
||||
assert len(packed.lora_b) == 3
|
||||
assert all(b.shape[0] == _TINY_QKV_SLICE for b in packed.lora_b)
|
||||
# This fixture only exposes one layer, so activate only its LoRA weights.
|
||||
lora_model.loras = {"blocks.0.attn.qkv_proj": packed}
|
||||
|
||||
class _DummyLoRALayer:
|
||||
def __init__(self):
|
||||
|
||||
Reference in new issue
Block a user