mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-21 13:48:46 +00:00
fix debug map when attaching two LoRAs
(in that case return the path of the LoraAdapter)
This commit is contained in:
parent
72fa17df48
commit
ccd9414ff1
|
@ -460,6 +460,9 @@ def _auto_attach_loras(
|
|||
adapter, parent = attached
|
||||
if parent is None:
|
||||
# `adapter` is already attached and `lora` has been added to it
|
||||
if debug_map is not None:
|
||||
path = adapter.get_path()
|
||||
debug_map.append((key, path))
|
||||
continue
|
||||
if debug_map is not None:
|
||||
path = adapter.target.get_path(parent)
|
||||
|
|
Loading…
Reference in a new issue